Login  Register

Re: IJ and macros/Java code

Posted by Christian Moll on Feb 25, 2011; 9:28am
URL: http://imagej.273.s1.nabble.com/IJ-and-macros-Java-code-tp3685554p3685557.html

Hello Sebastian,

try to use Rotator instead of ip.rotate().

http://rsbweb.nih.gov/ij/developer/source/ij/plugin/filter/Rotator.java.html

Best Christian

-----------------------------------------------------------------
Christian Moll  -  Ingenieur de Recherche
[hidden email]
-----------------------------------------------------------------
CRP Henri Tudor  -  http://santec.tudor.lu
2A, rue Kalchesbrück
L-1852 Luxembourg
-----------------------------------------------------------------



From:   Sebastian Böckmann <[hidden email]>
To:     <[hidden email]>
Date:   02/25/2011 10:21 AM
Subject:        IJ and macros/Java code
Sent by:        ImageJ Interest Group <[hidden email]>



Hello,

I've the following problem:
If I use the code

IJ.run(imp, "Rotate... ", "angle=45 grid=3 interpolation=Bilinear
enlarge");

... in my Java application, then the program does not show the rotated
image and the program seems to be crashed somehow. So I tried to rebuild
the code:

ip.setInterpolationMethod(ip.BILINEAR);
ip.rotate(45);

But how do I rebuild the "enlarge" parameter to show the image properly?

Best regards
Sebastian