Re: turboreg stack transformation
Posted by
seb-7 on
Nov 27, 2007; 1:23pm
URL: http://imagej.273.s1.nabble.com/turboreg-stack-transformation-tp3697915p3697916.html
Tony Lien wrote:
[snip]
> To implement #2, I call turboReg in the "transform" mode and load the source
> and target landmark coordinates from the registration performed in #1. This
> does not work on a stack however, so I am doing it frame by frame.
> Unfortunately the whole process is quite slow and I suspect it might be due
> to the constant redrawing of windows and all the "duplicate" calls. Is
> there a way I can improve the speed?
Hello Tony,
I think you're right.
Have you tried the "setBatchMode" function?
http://rsb.info.nih.gov/ij/developer/macro/functions.html#setBatchModebefore your big loop:
setBatchMode(true);
for(i=1; i <=numSlices; i++) { //for each slice
....//do something
}
....
setBatchMode(false);
updateDisplay();
this might speed up your macro.
sebastien