X-Trans CFA w/ 45° rotation - Checkerboard Demosaicing

For the X-Trans CFA with 45° rotation only. The pre-research and verification includes remosaicing and demosaicing.
2 Downloads
Updated 4 Oct 2024

View License

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 Linux
Version Published Release Notes
0.1.1

Remosaicing sampling window bug fixed.

0.1.0