Home > ISET > imgproc > Demosaic > mosaicConverter.m

mosaicConverter

PURPOSE ^

Convert Bayer pattern mosaic to grbg format

SYNOPSIS ^

function [newMosaic, bPattern] = mosaicConverter(bayer_in,bPattern)

DESCRIPTION ^

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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003