MATLAB: How to get pixel value of given point

image processingImage Processing Toolbox

I need to know how to get pixel value for given x and y coordination?

Best Answer

Right after you call imshow(), call
impixelinfo();
Look for a status line at the bottom left of your figure that will show you the current location and color of the image you're mousing over.
Or call imtool() with your image.