Login  Register

Re: Straightening and cropping images

Posted by Michael Schmid on Jan 16, 2013; 2:47pm
URL: http://imagej.273.s1.nabble.com/Straightening-and-cropping-images-tp5001414p5001439.html

On Jan 16, 2013, at 10:10, Gabriel Landini wrote:

> In my setup, however, the macro rotates the image but the angle seems to have
> the wrong sign.


Hi everone,

after some off-list discussion with Gabriel:
My macro [see previous post
  https://list.nih.gov/cgi-bin/wa.exe?A2=ind1301&L=IMAGEJ&F=&S=&P=78980   ]
needs the current version of the PolarTransformer from the ImageJ web site.

With the old version (early 2008 or previous) it rotates in the wrong direction.

If the images have a white background, and you don't have it like this by default, add the following at the beginning:
  setBackgroundColor(255,255,255);

Michael
________________________________________________________________
Michael Schmid                    email: [hidden email]
Institut für Angewandte Physik, Technische Universität Wien
Wiedner Hauptstr. 8-10/E134, A 1040 Wien, Austria
Tel. +43 1 58801-13452 or -13453, Fax +43 1 58801 13499
________________________________________________________________

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