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

1 view (last 30 days)
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 Comments
Abbie
Abbie on 26 Oct 2014
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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!