I overlapped two images A and B; The overlap image show green-magenta colors: I want blue and red. I used the following code:
c=imfuse(A,B,'falsecolor','Scaling','joint');
redChannel = c(:, :, 1);
blueChannel = c(:, :, 3);
rgbImage = cat(2,redChannel,blueChannel);
imshow (rgbImage)
rgbImage(:,:,1) = A; rgbImage(:,:,2) = 0; rgbImage(:,:,3) = B;- Zep