From: M Paheerathan on
I would like to rotate an image which is loaded in MatLAB axes GUI.
After rotating it should be displayed in the GUI axes

Pl provide a sample code


Regards,
Pahe
From: us on
"M Paheerathan" <mp.mscproject(a)yahoo.com> wrote in message <i2jrrc$eg0$1(a)fred.mathworks.com>...
> I would like to rotate an image which is loaded in MatLAB axes GUI.
> After rotating it should be displayed in the GUI axes
>
> Pl provide a sample code
>
>
> Regards,
> Pahe

a hint:
- requires the img proc tbx...

help imrotate;

us
From: Walter Roberson on
us wrote:
> "M Paheerathan" <mp.mscproject(a)yahoo.com> wrote in message
> <i2jrrc$eg0$1(a)fred.mathworks.com>...
>> I would like to rotate an image which is loaded in MatLAB axes GUI.
>> After rotating it should be displayed in the GUI axes
>>
>> Pl provide a sample code
>>
>>
>> Regards,
>> Pahe
>
> a hint:
> - requires the img proc tbx...
>
> help imrotate;

As the image is known to be on an axes, but is not known to be available as a
matrix, using imrotate could require that the image data be pulled back from
the image object by fetching the object's CData property.

An alternative would be to create an hgtransform, parent the image to it,
create a rotation matrix using makehgtform, and set the Matrix property the
hgtransform object to the rotation matrix. "doc hgtransform" for an example.