Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
overlay

Subject: overlay

From: Jessica

Date: 5 Mar, 2013 00:34:09

Message: 1 of 1

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!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us