Home > ISET > imgproc > demosaic > mosaicConverter.m

mosaicConverter

PURPOSE ^

Convert one Bayer Pattern to another Bayer pattern.

SYNOPSIS ^

function [bayer_out, outBayerPattern] = mosaicConverter(bayer_in, inBayerPattern, outBayerPattern)

DESCRIPTION ^

 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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 20-Nov-2008 22:09:04 by m2html © 2003