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

1 回表示 (過去 30 日間)
NANDITA Joshi
NANDITA Joshi 2014 年 2 月 26 日
コメント済み: Rajiv Ghosh-Roy 2014 年 2 月 27 日
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 件のコメント
NANDITA Joshi
NANDITA Joshi 2014 年 2 月 26 日
I don't want to do it with a mouse. I need to use that value later in the program.
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 Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by