Replicate peaks from graph into image

Hello,
I have a distance plot in which maxima and minima are already detected. Maxima labelled as red asterix and minima as green.
From there, how do I plot these maxima and minima into a grayscale image.
Thank You.

2 Comments

Post some screenshots at http://snag.gy, and post some code.
You can use plot() to put symbols into the overlay:
hold on;
plot(x, y, 'r*'); % x = column of the image, y = row, not vice versa!

Sign in to comment.

Answers (0)

Asked:

on 27 Jun 2013

Community Treasure Hunt

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

Start Hunting!