Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Candace
Posts:
13
Registered:
10/20/12
|
|
overlay
Posted:
Mar 4, 2013 7:34 PM
|
|
I have two images. The first image is imported from a .jpeg file. The second image is a color map (double: 2220x3336). I overlay the colormap atop the first image to create the "final image":
ibg2 = image(this,'XData',[0 1],'YData',[0 1]); %jpeg image hold on iim2 = image(heatmx*255,'XData',[0 1],'YData',[0 1]); %colormap set(iim2,'AlphaData',.75); set(iim2,'CDataMapping','scaled')
My problem is that the colormap image is mostly blue (representing no data at those locations). Therefore, my "final image" is mostly blue as well. I was wondering whether it is possible to remove all the blue so that the overlaid color map doesn't have any blue and final image only shows the actual image for pixels for which there was no data.
Thanks!
|
|
|
|