How can I superimpose 1D streamline (color) on 2D grayscale image?

Hi,
I have a 2D grayscale image (128x128 double) and a 1D streamline with color (400x1 double). I can overlay the streamline color on the 2D grayscale image, but the streamline color would change to grayscale too.
I check that function imoverlay can do this but it requires both inputs in 2D. Anyone can help me to superimpose the 1D streamline color on 2D grayscale image by having different colormap?
Thanks.

2 Commenti

You forgot to attach/insert the images. I'll check back tomorrow. In the meantime, see http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/
Thanks for ur comment. Here I attached the figures (Figures.jpg) that I generated from my program (Run.m). Figure 1 superimposes streamline on an image but the streamline is not obvious because it appears in grayscale, same as background image. Figure 2 is what the streamline (color) should look like. The attached files m-files are image (ImageA.mat) and variables for streamline (Info.mat) which I used to generate the figure.

Accedi per commentare.

Risposte (0)

Categorie

Richiesto:

il 25 Ott 2014

Commentato:

il 26 Ott 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by