The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: overlay
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 41
Registered: 10/20/12
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

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.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.