


Convert one Bayer Pattern to another Bayer pattern.
[bayer_out, outBayerPattern] = mosaicConverter(bayer_in,inBayerPattern, outBayerPattern);
Convert an input Bayer array (inBayerPattern) into another Bayer array
(outBayerPattern). By default the out pattern is 'gr/bg'.
We change the Bayer Array by shifting the first and last rows (or
columns) around. This process is not completely invertible.
Example:
isa = vcGetObject('sensor');
bayer_in = sensorGet(isa,'volts');
bPattern = sensorGet(isa,'colorOrder');
[bayer_out, outBayerPattern] = mosaicConverterNew(bayer_in,inBayerPattern, outBayerPattern);
Copyright ImagEval Consultants, LLC, 2005.