imfuse with different colormaps?

조회 수: 3 (최근 30일)
alok pandey
alok pandey 2021년 3월 29일
댓글: alok pandey 2021년 3월 29일
Hello,
So, I've two image matrices (figure 1 and 2) and one can use imfuse to obtain the composite image (figure 3). I'm wondering if it is possible to have figure 1 and figure 2 plotted with different colormaps and have these different colormaps retained while utilizing imfuse.
For your reference, the two image matrices are also attched.
Thank you very much in advance.
Cheers!
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 3월 29일
How are you calling imfuse() ?
alok pandey
alok pandey 2021년 3월 29일
new_img = imfuse(img_1,img_2,'blend','Scaling','joint');

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2021년 3월 29일
x_rgb = ind2rgb(im2uint8(new_img_x),parula(256));
y_rgb = ind2rgb(im2uint8(new_img_y),copper(256));
new_img = imfuse(x_rgb, y_rgb, 'blend','Scaling', 'joint');
image(new_img)
  댓글 수: 1
alok pandey
alok pandey 2021년 3월 29일
Thank you very much for your rapid response. It works.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by