Login  Register

Re: Apply bUnwarpJ in macro

Posted by ctrueden on May 09, 2016; 9:17pm
URL: http://imagej.273.s1.nabble.com/Apply-bUnwarpJ-in-macro-tp5016374p5016375.html

Hi Neil,

> Does anybody know how to apply the transformation created using
> bUnwarpJ.  I saved the transform txt files, both forward and backward,
> but I'm a little lost on how to apply this to other images in a macro.

According to the documentation at
http://imagej.net/BUnwarpJ#Macro_call

    if we want to apply an elastic deformation stored in the file
    A_direct_transf.txt to the source image A.jpg with target image
    B.jpg and save the result in output.tif, we call:

        call( "bunwarpj.bUnwarpJ_.elasticTransformImageMacro",
"My_path/A.jpg",
              "My_path/B.jpg", "My_path/A_direct_transf.txt",
"My_path/output.tif" );

Regards,
Curtis

--
Curtis Rueden
LOCI software architect - http://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
Did you know ImageJ has a forum? http://forum.imagej.net/


On Mon, May 9, 2016 at 3:10 PM, nellypledge <[hidden email]> wrote:

> Hi all,
> Does anybody know how to apply the transformation created using bUnwarpJ.
> I
> saved the transform txt files, both forward and backward, but I'm a little
> lost on how to apply this to other images in a macro.
>
> Thanks in advance for your time.
> Neil
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Apply-bUnwarpJ-in-macro-tp5016374.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html