RGB Commands

+RGB x y z

    Add x to the red, y to the green, and z to the blue part of the current (assumed RGB) image in the buffer.


-RGB x y z

    Subtract x from the red, y from the green, and z from the blue part of the current (assumed RGB) image in the buffer.


*RGB x y z

    For the current (assumed RGB) image in the buffer, multiply the red part by x, the green part by y, and the blue part by z.


/RGB x y z

    For the current (assumed RGB) image in the buffer, divide the red part by x, the green part by y, and the blue part by z.


BLOCKRGB n [m]

    Group the RGB image data into n x m blocks. This command reduces the size of the data buffer. The values are averaged or summed, depending on the flag specified with the BLKAVE command.


CROPRGB

    Use the current rectangle to crop the (assumed RGB) image in the buffer.


DRGB [string]

    Opens a window and displays the contents of the current image buffer as an RGB image -- the first third of the image is taken as values for the red bit plane, the second third of the image represents the green bit plane, followed by the blue. This is the ordering of data read in from RAW or JPG images. The CMINMX command and "+" and "-" buttons in the status window work as for single-bit-plane images.


GETBLUE <filename>

    Open the blue part of a digital camera RAW image specified by the filename. The extension should be given in the filename (it does not use the suffix). This uses Dave Coffin's very slick dcraw.c code. This command can also open the blue plane of ".jpg" files.


GETGRN <filename>

    Open the green part of a digital camera RAW image specified by the filename. The extension should be given in the filename (it does not use the suffix). This uses Dave Coffin's very slick dcraw.c code. This command can also open the green plane of ".jpg" files.


GETRED <filename>

    Open the red part of a digital camera RAW image specified by the filename. The extension should be given in the filename (it does not use the suffix). This uses Dave Coffin's very slick dcraw.c code. This command can also open the red plane of ".jpg" files.


GETRGB <filename>

    Open a digital camera RAW image specified by the filename. The extension should be given in the filename (it does not use the suffix). The red, green, and blue images are staked one on top of the other in a single image. This uses Dave Coffin's very slick dcraw.c code. This command can also open ".jpg" files.


GTIFF <filename> [n]

    Loads the file specified in 'filename' into the OMA image buffer. Three-plane, 8-bit per pixel images can be loaded (use DRGB for color display). Files up to 1-bit grey scale can be read. The optional argument [n] (default=0) specifies the page number (IFD) of the image to be read from TIFF files that have more than one image within a file. The first IFD is number 0.


KRRGB <filename>

    Saves a subset of the current rgb data buffer in a specified file. The subset is specified by the current selection rectangle.


RGB2GREY [red_mult green_mult blue_mult]

    Convert an RGB image to a monochrome image by adding the red, green, and blue components. If the optional multipliers are specified, each component will be scaled before the components are summed.


RGB2RED

    Extract the red component of an RGB image.


RGB2GREEN

    Extract the green component of an RGB image.


RGB2BLUE

    Extract the blue component of an RGB image.