MATLAB: Shifting origin

axisorigin

Hey guys !
I want to move the origin of my axis at (x,y) of the non-standard coordinate space .. How do I go about it ? I know the function is axis (x,y) but nothing seems to be happening ..
I want to move the origin at (73, 941) of the image .. Got it from the the impixelinfo () ..

Best Answer

I actually did this finally. I scan the image left-to-right and top-to-bottom and stop the moment I find a different pixel than the background. Since I am using im2bw(); the background is white and the character pixel are black.
The moment I find the first black pixel, I store the pixel co-ordinates in 2 variables fr and fc. I then use these variables for further computation (i.e. constructing the grid)