필터 지우기
필터 지우기

how can i show two images with different range with imagesc

조회 수: 2 (최근 30일)
Efstathios Kontolatis
Efstathios Kontolatis 2016년 11월 8일
댓글: LauraLee Austin 2016년 11월 8일
I have two uint16 images with different range, let's say the one has a range from 0 to 1800 and the other from 0 to 2500. In order to see them I use imagesc but this will make the range between 0 to 65535 to both the images.Because I want to see the difference between them I use
caxis=[0,2500]
to both the images. But when I put a legend in the image the legend in the first image is from 0 to 1800, which means that the range of the shown image has the brighter parts at 1800. What am I doing wrong?
  댓글 수: 2
Adam
Adam 2016년 11월 8일
imagesc should automatically scale your plot to the min-max range of the data, bit the data type. So a 0 to 1800 plot should show a colorbar and caxis range that is already 0 to 1800 unless you have a rogue 65535 value in there somewhere as well.
I'm not sure what you mean about the legend. Legends have nothing to do with the color range. Do you mean a colourbar?
LauraLee Austin
LauraLee Austin 2016년 11월 8일
If you wish to see the differences between the images, why not just subtract one image from the other and display the new image using imagesc.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by