0
votes

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)
1
Can you build your own RGB image without using any function? For instance: rgbImage(:,:,1) = A; rgbImage(:,:,2) = 0; rgbImage(:,:,3) = B; - Zep

1 Answers

0
votes

By default imfuse uses the value 'green-magenta' for the option 'ColorChannels'. You can use 'red-cyan' instead:

c = imfuse(A, B, 'falsecolor', 'Scaling', 'joint', 'ColorChannels', 'red-cyan');