MATLAB: 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

image intensityImage Processing Toolbox

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

Best Answer

Impixelinfo is reporting in x,y convention. You are indexing in row,col. Index A(y,x) and this should resolve the issue.