Info

This question is closed. Reopen it to edit or answer.

how to find the location of the maximum neighboring pixel for each pixel ?

1 view (last 30 days)
i have found the maximum neighboring pixel for each pixel of the image and stored in a matrix. Now i have to find the location of the max pixel? can anyone help me?
  3 Comments
Ashish Uthama
Ashish Uthama on 10 Oct 2013
Sheno39, could you please elaborate? How do you define your neighborhood? (4 connected, 8 connected or something else?) Do you need the relative position of the max for each pixel or the absolute location in the image?
Image Analyst
Image Analyst on 10 Oct 2013
Jan already asked that in the duplicate (prior) question: http://www.mathworks.com/matlabcentral/answers/89643-how-to-find-the-original-index-of-stored-elements-in-an-array-of-an-image I'd also like to know what is to be done with that information, to see if it's really needed or not. For example if they're using dynamic programming checkerboard method to solve a shortest path problem or something like that where the direction from a pixel is needed.

Answers (0)

Community Treasure Hunt

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

Start Hunting!