How to get value and matrix index at a given (x;y) point?

but in this case (as you can see from the screenshot) the coordinate to lookup is very close to the center of (what I thought was ) a pixel…