


Converts a sensor data plane of data into a (row,col,color) RGB image [mosaic, cfaVals] = plane2mosaic(img,ISA,[val]) This conversion routine is used as part of demosaic'ing algorithms. The data in the sensor are planar and each entry represents a color type. This routine transforms that representation into an RGB image. In the RGB image each plane represents one color in the color filter array (cfa). For example, the input img is (row,col) and contains red, green and blue pixels. The returned mosaic is (row,col,3) with each of the image planes containing the red, green or blue data values. Empty (unfilled) color entries in the RGB image are assigned the value 'val'. The default is val = NaN. If the user wants the cfaVals returned, just ask. Example: mosaic = plane2mosaic(img,ISA,0); mosaic = plane2mosaic(img,ISA); imagescRGB(mosaic); Copyright ImagEval Consultants, LLC, 2005.
