fiji / bUnwarpJ

ImageJ/Fiji plugin for consistent elastic registration of 2D images
http://imagej.net/BUnwarpJ
GNU General Public License v3.0
23 stars 10 forks source link

Make Transformation object from intervals, cx[][] and cy[][] #2

Closed StephanPreibisch closed 9 years ago

StephanPreibisch commented 9 years ago

Hi @iarganda,

not sure if this is really an issue, but here it is more visible if other people experience the same problem. I apply the non-rigid transformation myself using Transformation.transform( u, v, l, true );

This works great, however, if I want to save and load the transformation, I end up with: int intervals; double[][] cx, double[][] cy;

How do I create a Transformation object out of that in order to use the above method in order to apply it?

Thanks so much, Stephan

iarganda commented 9 years ago

So you would like to have a couple of methods to save/load transformations from file without using the GUI, right? We run into that problem before for the Register Virtual Stack Slices plugin and as a solution we created a new class (https://github.com/trakem2/TrakEM2/blob/master/TrakEM2_/src/main/java/bunwarpj/trakem2/transform/CubicBSplineTransform.java). But I guess it makes more sense to create the methods in the Transformation class itself.

I'm working on the bug you reported so I'll do it now. Give me a few minutes.

iarganda commented 9 years ago

Done!