So that was a bit painful to make this run on windows, but it looks like it worked. Here’s the output of the script:
comparing transformix and itc implementation
apply with transformix
transformix is started at Wed Dec 4 15:33:24 2019.
which transformix: C:\elastix-4.9.0-win64\elastix-4.9.0-win64\transformix.exe
transformix runs at: SV-01-099
Windows Professional (x64), (Build 9200)
with 65451 MB memory, and 8 cores @ 3599 MHz.
Running transformix with parameter file "D:/pyimglib2/image-transform-converters/src/test/resources/elastix/TransformParameters.BSpline3D.txt".
Reading the elastix parameters from file ...
Installing all components.
InstallingComponents was successful.
ELASTIX version: 4.900
Command line options from ElastixBase:
-in unspecified, so no input image specified
-threads unspecified, so all available threads are used
-jac unspecified, so no det(dT/dx) computed
-jacmat unspecified, so no dT/dx computed
Calling all ReadFromFile()'s ...
WARNING: The parameter "InitialTransformParametersFileName", requested at entry number 0, does not exist at all.
The default value "NoInitialTransform" is used instead.
WARNING: The parameter "HowToCombineTransforms", requested at entry number 0, does not exist at all.
The default value "Compose" is used instead.
Calling all ReadFromFile()'s took 0.001765 s
Transforming points ...
The transform is evaluated on some points, specified in the input point file.
Reading input point file: bsplinePointSamples.txt
Input points are specified in world coordinates.
Number of specified input points: 2197
The input points are transformed.
The transformed points are saved in: D:\pyimglib2\image-transform-converters\src\scripts\/outputpoints.txt
Transforming points done, it took 0.03s
Compute determinant of spatial Jacobian ...
The command-line option "-jac" is not used, so no det(dT/dx) computed.
Computing determinant of spatial Jacobian done, it took 0.00s
Compute spatial Jacobian (full matrix) ...
The command-line option "-jacmat" is not used, so no dT/dx computed.
Computing spatial Jacobian done, it took 0.00s
transformix has finished at Wed Dec 4 15:33:25 2019.
Total time elapsed: 0.5s.
apply with imglib2
maximum distance: 1e-06