MATLAB: Shifting of image’s origin to the highest Y coordinates

Image Processing Toolboxshift

Hi,
I am trying to shift the origin of a image to the highest Y-coordinate of an image.
currently my image is like this with the origin at the intersection of the vertical and horizontal axis at the top left corner:
I want to shift the origin to as such:
where the intersection is the origin which is also the highest point of the outer cornea.
Is there anyway that i can do this?
Thank you very much.
Best Regards, natur3

Best Answer

Just find that point, and subtract the row and column value of the origin from all other row and column values that you measure anywhere else in your program. Let's say it's row=73, column = 631. So then let's say you have some other point, let's say row=273, column = 931. Then with respect to your new origin, you'd have a row of 273-73 = 200, and a column of 931-631 = 300 in your new coordinate system.