MATLAB: How to fusion image at pixel level

digital image processingImage Processing Toolbox

Hi,
Does someone would have a simple method to fusion images at the pixel level. I would like to display image A on 3 out of 4 pixels and image B on the fourth one. So image A on x1y1,x1y2 and x2y2. And image B on x2y1. And repeat this for an entire matrix of 640 x 480 pixels.
Thanks a lot!

Best Answer

C = A;
C(2:2:end, 2:2:end, :) = B;
provided that B is 320 x 240.
Related Question