marking a pixel on an image

9 views (last 30 days)
Ekta Shah
Ekta Shah on 8 Apr 2012
hello, I am working with hyperspectral images.After certain calculations on latitude longitude values i got back the pixel values.Now i want to mark those pixels on the image.Can you please help me??
Thank you!! Ekta Shah

Answers (1)

Image Analyst
Image Analyst on 8 Apr 2012
Use
hold on;
plot(longitude, latitude, 'r+', 'MarkerSize', 5, 'LineWidth', 3);
or other parameters in plot() to get it looking the way you want.
(longitude, latitude) are the (x,y) values (i.e., column, row) values of your image.

Community Treasure Hunt

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

Start Hunting!