


Convert Bayer pattern mosaic to grbg format
[newMosaic, bPattern] = mosaicConverter(bayer_in,bPattern);
We convert several different types of Bayer arrays into a grbg array by
shifting the first and last rows (or columns) around. This process is
not completely invertible.
The GRBG, RGGB and BGGR conversions are implemented. GBRG involves a
rotation and is not yet implemented.
Example:
isa = vcGetObject('sensor');
bayer_in = sensorGet(isa,'volts');
bPattern = sensorGet(isa,'colorOrder');
[newMosaic, bPattern] = mosaicConverter(bayer_in,bPattern);
Copyright ImagEval Consultants, LLC, 2005.