How do I find the X and Y coordinates of a particular pixel in an image?

1 次查看(过去 30 天)
I want to perform some transformations on the pixel coordinates.

回答(1 个)

Rajiv Ghosh-Roy
Rajiv Ghosh-Roy 2014-2-26
If you want to do it interactively (e.g. with a mouse), use the function ginput.
  2 个评论
Rajiv Ghosh-Roy
Rajiv Ghosh-Roy 2014-2-27
In that case, how would you determine which one the "particular pixel" is? Are the coordinates just the position within the image, or are there other coordinates you are trying to correlate to?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by