Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

coordinate system

0 views
Skip to first unread message

Jonathan Lane

unread,
Aug 29, 2003, 7:59:43 AM8/29/03
to
Hi all,


why does matlab take it upon itself to move the origin to the upper
left corner of an image when you display it? Why does it reverse the
y direction as well?


I have used the command 'axis xy' to make it revert to the
traditional origin an y direction but it turns my images upside down.
I can then rotate the image to make it look right, but is there a
simpler solution? It's silly!


Regards,
Jonathan Lane

Steven Lord

unread,
Aug 29, 2003, 8:09:21 AM8/29/03
to
Jonathan Lane wrote:
> Hi all,
>
>
> why does matlab take it upon itself to move the origin to the upper
> left corner of an image when you display it? Why does it reverse the
> y direction as well?

I don't know the answer to this one.

> I have used the command 'axis xy' to make it revert to the
> traditional origin an y direction but it turns my images upside down.
> I can then rotate the image to make it look right, but is there a
> simpler solution? It's silly!

set(HandleToImage,'CData',flipud(get(HandleToImage, 'CData'))) should do it.

--
Steve Lord
sl...@mathworks.com


0 new messages