I am trying to import an affine transform that was computed with ANTs. I cannot attach the transform file, but it is a simple textfile with a .txt file ending. You can reproduce the error by copy&pasting the contents below into a transform.txt file and loading it into Slicer. On my system, the file was first interpreted as a “Color” file in the file loading dialog. After changing the file type to “Transform”, the error message is:
Could not create an instance of “MatrixOffsetTransformBase_double_3_3”
The usual cause of this error is not registering the transform with TransformFactory
The funny thing is that I can usually load transforms (linear and non-linear) that were generated by ANTs. Not sure why this suddenly does not work anymore (by the way, I tried Slicer 4.9.0 and the 4.11.0 nightly from 2019-06-02). Any help with this is appreciated!
Here are the contents of the transform file:
#Insight Transform File V1.0
Parameters: 1.0133883914175723 -0.007097997510931725 0.010305303746152204 0.006178933359632762 1.040581088926752 -0.05537898237481463 -0.01029277753621562 0.041969790000422336 0.9962926407286504 0.25692648074325647 0.26014893150818796 -0.08923845189838553
FixedParameters: 0.34716075829563664 0.4464191942953437 -0.7178585998314816