cfa = planar2raw(I)
combines the individual sensor element images, stored as channels of the input image
I, into a complete Bayer pattern color filter array (CFA) image,
cfa.
CFA image, returned as a (2*M)-by-(2*N)
numeric matrix of the same class as I.
planar2raw constructs the CFA image by placing
I(:,:,1) starting at cfa(1,1), placing
I(:,:,2) starting at cfa(1,2), placing
I(:,:,3) starting at cfa(2,1), and placing
I(:,:,4) starting at cfa(2,2).
Extended Capabilities
Thread-Based Environment Run code in the background using MATLAB® backgroundPool or accelerate code with Parallel Computing Toolbox™ ThreadPool.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.