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?
显示 更早的评论
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
采纳的回答
更多回答(1 个)
Image Analyst
2014-7-29
0 个投票
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
2014-7-29
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Images 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!