Home > ISET > imgproc > demosaic > demosaicMultichannel.m

demosaicMultichannel

PURPOSE ^

Bilinear demosaic each of the channels independently

SYNOPSIS ^

function mcRGB = demosaicMultichannel(mcSampled,sensor,method)

DESCRIPTION ^

Bilinear demosaic each of the channels independently

   mcRGB = demosaicMultichannel(mcSampled,sensor,method)

 Function for a multiple channel bilinear CFA interpolation. The returned
 variable is a row x col x nChannel matrix.
 Note that to display this you need to compress the multiple channels down to 3.

  - mcSampled is a sampled multi-channel image, row x col x nBand
  - mcRGB is the interpolated image; each channel is interpolated separately
  - method is either 'mean' (default) or 'median'. 
  - wSize is a scalar. We only do square windows at this time. It makes
    sense to have large window sizes for CFAs with a greater number of
    channels becuase of the sparsity. Default is a 4 x 4 window.


  Example:

CROSS-REFERENCE INFORMATION ^

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