Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Chris
Posts:
1
Registered:
12/12/12


Superimpose different colormap figures over eachother on same figure
Posted:
Dec 12, 2012 4:50 PM


Hello Everyone, I've searched everywhere and can't figure out a solution to my problem. I have 2 240x240 matrices one called IM which is the original image, and the second is a mask called MAP (it is a T2 map of the values from an MRI) of different values from 2550. I want to have the original image IM as a grayscale then have the MAP as a colormap(jet) superimposed on top of the image keeping everywhere where the MAP has 0's as the greyscaled image has given by IM along with the colorscale given on the side of the image.
This is what I have tried among many other ways but still no luck.
figure, imagesc(im), colormap('gray'); hold on; imagesc(MAP), colormap(jet);
Any help would be greatly appreciated



