Colorrat User Guide
Descriptions - colorrat.exe
Colorrat.exe calculates the ratios of red/green2, green1/green2 and blue/green2 over an area in the center of an image.
Command line parameters
Integer parameters can be given in decimal or hex with 0x prefix.
-input <filename>
Specify a filename or wildcard for input image(s). Any number of filenames and/or wildcards may be supplied.
-bayer <pattern>
Indicates the input image is a Bayer pattern and specifies the pattern. (Default is Gr)
The <pattern> can be one of:
- gr (default)
- r (or rg)
- b (or bg)
- gb
-width <w>
Specify the width of the area to analyze. Centered in the image.
-height <w>
Specify the height of the area to analyze. Centered in the image.
-black <n>
Specify the black level in the input image. Default 42 (on a 10-bit scale) for Bayer and 0 for RGB image data.
-imagewidth <w>
Specify the width of the whole image. Normally it can be determined from the file, but this option is provided as an override.
-imageheight <h>
Specify the height of the whole image. Normally it can be determined from the file, but this option is provided as an override.
-imagedepth <d>
Specify the depth, in bits, of the image. Normally it can be determined from the file, but this option is provided as an override.
-output <filename>
File name of the output data, a comma-separated data table.
The "-input" and "-output" prefixing the filenames are optional. You can just list all the filenames on the command line. The last filename is taken to be the output file, all the rest are inputs.