From: Tom on
Hi,

I am loading in an image, using imshow and then I want to plot the greyscale profile along two (unconnected) arbeitary lines using the improfile tool. At the moment I have been sucessful along one line, and have noticed that you can draw a "polyline" but I want to plot two discrete lines on the same greyscale plot.

My current implementation:

imshow stream1.jpg
improfile

Any thoughts or techniques? Its almost like I need to use the hold on function .....

Regards,
Tom
From: ImageAnalyst on
Tom:
Are you using improfile interactively, or passing in the endpoint
coordinates? To plot the lines, just display your image, then set
hold on, then use the line() function to plot the two lines in the
graphical overlay on top of your image.
Regards,
ImageAnalyst