Prev: why doesn't turning off handle visibility work in clabel?
Next: How to retrieve values from cell array of character type?
From: M Paheerathan on 26 Jul 2010 07:34 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 26 Jul 2010 08:24 "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 26 Jul 2010 17:00
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. |