|
Thanks for your reply Wayne, and yes now I see my question isn't clear enough.
I have an image that I should mark some specific points on it. I have some input data such as (x,y) = (-30,30).
My x,y data is between (-68,68) and (-41,47) in turn. When I use
axis([xmin xmax ymin ymax])
the graph is centered at (0,0) point but the image slides away, with its left top corner is placed near but not exactly (0,0) point, with its bounds ascending through +x and -y direction.
So I don't use 'axis' command for my input bound. instead I try to normalize the input data with the image.
I mean I use c=imread('FRONT.jpg');
image(c);
hold on
plot (x+385 , -y+385 ,'g.','MarkerSize',1);
to make my (x,y) = (0,0) point corresponds to the center of the image (image is 770x770). But it does not!!!
I discovered that when I choose (x,y) = (0,0) to (5,5) the points are not shown in the graph. after (x,y) = (6,6), the points begin to appear in the graph. this is the problem!!! because I cannot assign input points to their exact points in the graph.
I know that it seems a little complicated, but the problem is basic.
thanks for your interests again.
|