Image with a channel for each sensor element, returned as an
(M/2)-by-(N/2)-by-4 numeric array of the same
data type as cfa
.
The order of the channels in the output image depends on the Bayer pattern of the
CFA: the order of the red, green, and blue sensors. The 2-by-2 grid of pixels in the
upper-left corner of the CFA image describes the channel order, from left-to-right,
top-to-bottom. I(:,:,1)
corresponds to the sensor at
cfa(1,1)
, I(:,:,2)
to the sensor at
cfa(1,2)
, I(:,:,3)
to the sensor at
cfa(2,1)
, and I(:,:,4)
to the sensor at
cfa(2,2)
.