Posted by
Colin Poczatek on
Mar 25, 2010; 2:53pm
URL: http://imagej.273.s1.nabble.com/Image-Stabilizer-StackReg-plugins-feature-request-tp3688797p3688800.html
Apparently emails with attached .java files bounce...
Let me know if you want the file...
>> Colin do you still have the modified Stackreg code? Does anyone else have
>> any ideas?
>>
You're not the guy that emailed me a few weeks ago? I must be getting
popular. :)
If you want to use TurboReg and not something else short answer: use
this plugin
http://www.stanford.edu/~bbusse/work/downloads.htmlChanging the code I've attached might be a little bit of a pain...
This is what I said to him:
------------------------------------------------------
Sorry I didn't get back to you sooner. I've attached a copy of the
modified StackReg.java, however our code is pretty complicated since
we're trying to do multithreaded things and keep track of state and
such. But if you look at the return values of the track() method in what
I've attached gives you then need to do something like:
double[][] translations = AutoTrack.track(imagePlus);
deltax = (-1.0) * translations[i][0];
deltay = (-1.0) * translations[i][1];
loop over all images[] in an array
images[k].killRoi();
images[k].setSlice(plane);
images[k].getProcessor().translate(0.0, deltay);
images[k].getProcessor().translate(deltax, 0.0);
end loop
But that being said it would probably be easier to use the MultiStackReg
plugin some one pointed out to me last week. It can save any
transformation StackReg generates in a file which can then be applied to
other images.
http://www.stanford.edu/~bbusse/work/downloads.htmlCollin
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.