MATLAB Answers

Superimpose two intensity images with some transparency and different colormaps

조회 수: 90(최근 30일)
Alexander
Alexander 29 Jul 2015
답변: Image Analyst 29 Jul 2015
I have two intensity images (A and B). I want to superimpose image B on top of image A. The top image (image B) should have some degree of transparency (I want to be able to control the degree of transparency). The bottom image (image A) will have the 'gray' colormap {i.e. colormap(gray(256)} while the top image (image B) will have the 'jet' colormap {i.e. colormap(jet(256)}.
Please advice. Thanks!

  댓글 수: 0

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

답변(2개)

Walter Roberson
Walter Roberson 29 Jul 2015
Create two axes and put one image in each. With R2014b or later you can have one colormap per axes.
Before R2014b, you would need to convert one of the colormapped images into a truecolor image to deal with the limitation then-existing of one colormap per figure. The File Exchange utility freezeColors can help with that.

  댓글 수: 0

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


Community Treasure Hunt

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

Start Hunting!

Translated by