MATLAB: How to convert pixel cordinates to spatial cordinates.?

Image Processing Toolboxpixel cordinatesspatial cordinates

I have pixel cordinates of a rectangle but imcrop require spatial coordinates of rectangle to crop...Please tell me how to switch between the two coordinate systems?

Best Answer

imcrop() uses pixel coordinates. What do you have?