MATLAB: How to pixel coordinate for a given image

pixel coordinates

I have an image. I want to get the pixel coordinates for the image. How can i get that?

Best Answer

  • The coordinate is simply the row and column. Let's say you want the intensity of an image in the 3rd row and 7th column of the image, then simply do
    pixelValue = yourImage(3, 7);