|
From: | Daniel J Sebald |
Subject: | Re: more graphics changes. |
Date: | Mon, 19 Mar 2007 13:45:20 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
Søren Hauberg wrote:
Daniel J Sebald skrev:Søren Hauberg wrote:*) The axis when showing images isn't correct. This was fixed in previous version after some discussions on the behaviour. I think you just have to flip the y-axis. The problem can be illustrated by the following code:im = zeros(50, 50); im(30, 5:15) = 1; im(25:35, 10) = 1; imshow(im) hold on; plot(10, 30, 'r*'); hold offThis should show a black image with a white cross. In the center of the white cross a red * should appear.Give the attached patch a try. If "image" or its varieties has been called when axis hold is "off" then the ydir is reversed.The coordinate system seems to be correct, but the image is now flipped upside down. Try to call "image" without any input arguments -- the baby will now be upside down.
Comes out right-side-up here. Make sure the patch worked correctly (sounds like __img__.m may not have "reverse" conditional in it). I haven't been fully retaining the directory structure in the patches and the two files are in different directories.
Dan
[Prev in Thread] | Current Thread | [Next in Thread] |