Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: overlay
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Candace

Posts: 31
Registered: 10/20/12
overlay
Posted: Mar 4, 2013 7:34 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.