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 clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
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.