


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: