Dear IJ list,
I am trying to rotate a stack step by step using a macro. The angle
depends on the orientation of the sample which gets measured and stored in
the "Result" table:
a = getResult("Angle", 0)
selectWindow("stack")
run("Rotate... ", "angle=a grid=1 interpolation=Bicubic fill enlarge stack");
The first step works fine. But if I want to apply exactly the same
rotation again, just in the next line:
run("Rotate... ", "angle=a grid=1 interpolation=Bicubic fill enlarge stack");
IJ complains:
"Macro error: Numeric value expected in run() function. Dialog box title:
'Rotate' key: 'angle (degrees):' Value or variable name: 'a'"
Why? Any ideas? It works in the first run. Am I missing something
fundamental? I also tried the TJ Rotate plugin, but that does not seem to
accept variables at all.
cheers,
Michael
_____________
Michael Weber, B.Sc.
Tomancak lab
Max Planck Institute of
Molecular Cell Biology and Genetics
Pfotenhauerstrasse 108
01307 Dresden
Imaging Facility Network
https://ifn.mpi-cbg.de