X-Trans CFA w/ 45° rotation - Checkerboard Demosaicing
Version 0.1.1 (94.9 KB) by
Rainbow-Johnny-Johnny-Image-Processing-Lim
For the X-Trans CFA with 45° rotation only. The pre-research and verification includes remosaicing and demosaicing.
Based on Fuji's previous development of Super CCD HR, Super CCD EXR, and EXR CMOS with rotating pixels, the pre-research and verification includes remosaicing and demosaicing.
For remosaicing, you can select sharp sampling for a natural image or an image with a low-pass filter. if a sharp downsampled image is input, set sharp = 1 to simulate the low-pass effect of the rotation pixels.
raw = simple_en_xtrans(color, sharp)
if sharp
disp('Sharp.');
else
color = imfilter(color, [0,1,0;1,4,1;0,1,0]/8, 'same');
disp('Soft.');
end
Cite As
Rainbow-Johnny-Johnny-Image-Processing-Lim (2026). X-Trans CFA w/ 45° rotation - Checkerboard Demosaicing (https://www.mathworks.com/matlabcentral/fileexchange/173440-x-trans-cfa-w-45-rotation-checkerboard-demosaicing), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
