i want to know the pixel intensity value in an image but it gives different results using data cursor and command.which one is correct? and why it is showing differently?

1 回表示 (過去 30 日間)
let A is image
i want to know intensity value at (25,170).so by using command A(25,170) we can find intensity value but,using data cursor it shows different intensity value

採用された回答

Alex Taylor
Alex Taylor 2014 年 7 月 29 日
Impixelinfo is reporting in x,y convention. You are indexing in row,col. Index A(y,x) and this should resolve the issue.

その他の回答 (1 件)

Image Analyst
Image Analyst 2014 年 7 月 29 日
It might use what's on the screen instead of the actual image - I don't know. Why don't you use impixelinfo(), which is meant for that sort of thing?
  2 件のコメント
Mahesh Kumar
Mahesh Kumar 2014 年 7 月 29 日
by using impixelinfo() shows different intensity value compare with command A(x,y).A is image name itself
Image Analyst
Image Analyst 2014 年 7 月 29 日
See Alex's answer. I should have thought of that. It's a very common mistake people make - using (x,y) when they should use (y,x) or using (row, column) when they should be using (column, row). Remember x = column, and y = row.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by