Arbitrary rotation ( 20 or 30 degree rotation)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Arbitrary rotation ( 20 or 30 degree rotation)

Veeranjaneyulu TOka
Hi All,

I need to create an algorithm to rotate an image arbitrarily ( even 20 or
30 or whatever degrees user wants to rotate), one more thing is that for
example if user wants to rotate 30 degrees, then image may get cropped if
both src and destination buffers are of same size. But i need to create an
algorithm where it retains the entire image even after rotation also. could
somebody help me in this regard plz?

Thanks,
Veeru.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Arbitrary rotation ( 20 or 30 degree rotation)

Herbie-2
Veeru,

ImageJ provides all you need.

If you should like to code it yourself, you may have a look at the
ImageJ Java source code. The maths for rotations is trivial, that for
good interpolation is not.

Best

Herbie


On 22.10.12 14:47, Veeranjaneyulu TOka wrote:

> Hi All,
>
> I need to create an algorithm to rotate an image arbitrarily ( even 20 or
> 30 or whatever degrees user wants to rotate), one more thing is that for
> example if user wants to rotate 30 degrees, then image may get cropped if
> both src and destination buffers are of same size. But i need to create an
> algorithm where it retains the entire image even after rotation also. could
> somebody help me in this regard plz?
>
> Thanks,
> Veeru.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Arbitrary rotation ( 20 or 30 degree rotation)

Michael Schmid
In reply to this post by Veeranjaneyulu TOka
Hi Veeru,

The Image>Transform>Rotate command can enlarge the image to make it fit.
Enlarging is not possible if the image has a selection, because only the selection is rotated in such a case.
So just run Edit>Selection>'Select None' before rotating, than you can enlarge it.

Michael
________________________________________________________________

On Oct 22, 2012, at 14:47, Veeranjaneyulu TOka wrote:

> Hi All,
>
> I need to create an algorithm to rotate an image arbitrarily ( even 20 or
> 30 or whatever degrees user wants to rotate), one more thing is that for
> example if user wants to rotate 30 degrees, then image may get cropped if
> both src and destination buffers are of same size. But i need to create an
> algorithm where it retains the entire image even after rotation also. could
> somebody help me in this regard plz?
>
> Thanks,
> Veeru.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html