[Insight-developers] Cannot read BSpline Deformable Transforms with itk::TransformFileReader

Vincent A. Magnotta vincent-magnotta at uiowa.edu
Fri Mar 21 10:17:21 EDT 2008


Karthik,

You need to set the fixed parameters before setting the parameters with
the BSpline transform. The fixed parameters specify the grid dimensions
for this transform. I use this on a routine basis without any issues.

Vince


On Fri, 2008-03-21 at 02:11 -0400, Karthik Krishnan wrote:
> Hello:
>  
> It appears that the BSpline Deformable transforms can't be read in via
> the Transform File Reader. I get an exception stating that the that
> the transform is not registered with the factory. Error message is
> below.
>  
> Manually registering with the factory also ends up with an exception
> since the BSpline transform requires me to set the Grid dimensions
> prior to setting the parameters due to the sanity check in the
> BSplineTransform and the TransformFileReader being generic enough for
> all transforms does not take care of that that.
>  
> Thanks
> --
> karthik
>  
> itk::ERROR: TransformFileReader(12491498): Could not create an
> instance of BSplineDeformableTransform_double_3_3
> The usual cause of this error is not registering the transform with
> TransformFactory
> Currently registered Transforms: 
>         "AffineTransform_double_2_2"
>         "AffineTransform_double_3_3"
>         "AffineTransform_float_2_2"
>         "AffineTransform_float_3_3"
>         "CenteredAffineTransform_double_2_2"
>         "CenteredAffineTransform_double_3_3"
>         "CenteredAffineTransform_float_2_2"
>         "CenteredAffineTransform_float_3_3"
>         "CenteredEuler3DTransform_double_3_3"
>         "CenteredEuler3DTransform_float_3_3"
>         "CenteredRigid2DTransform_float_2_2"
>         "CenteredSimilarity2DTransform_double_2_2"
>         "CenteredSimilarity2DTransform_float_2_2"
>         "Euler2DTransform_double_2_2"
>         "Euler2DTransform_float_2_2"
>         "Euler3DTransform_double_3_3"
>         "Euler3DTransform_float_3_3"
>         "FixedCenterOfRotationAffineTransform_double_3_3"
>         "FixedCenterOfRotationAffineTransform_float_3_3"
>         "IdentityTransform_double_2_2"
>         "IdentityTransform_double_3_3"
>         "IdentityTransform_float_2_2"
>         "IdentityTransform_float_3_3"
>         "QuaternionRigidTransform_double_3_3"
>         "QuaternionRigidTransform_float_3_3"
>         "Rigid2DTransform_double_2_2"
>         "Rigid2DTransform_float_2_2"
>         "Rigid3DPerspectiveTransform_double_3_2"
>         "Rigid3DPerspectiveTransform_float_3_2"
>         "Rigid3DTransform_double_3_3"
>         "Rigid3DTransform_float_3_3"
>         "ScalableAffineTransform_double_3_3"
>         "ScalableAffineTransform_float_3_3"
>         "ScaleLogarithmicTransform_double_3_3"
>         "ScaleLogarithmicTransform_float_3_3"
>         "ScaleSkewVersor3DTransform_double_3_3"
>         "ScaleSkewVersor3DTransform_float_3_3"
>         "ScaleTransform_double_2_2"
>         "ScaleTransform_double_2_2"
>         "ScaleTransform_double_3_3"
>         "ScaleTransform_float_2_2"
>         "ScaleTransform_float_2_2"
>         "ScaleTransform_float_3_3"
>         "TranslationTransform_double_3_3"
>         "TranslationTransform_float_3_3"
>         "VersorRigid3DTransform_double_3_3"
>         "VersorRigid3DTransform_float_3_3"
>         "VersorTransform_double_3_3"
>         "VersorTransform_float_3_3"
> 
>  
> 
> 
> 
> -- 
> Karthik Krishnan
> R&D Engineer,
> Kitware Inc.
> Ph: 518 371 3971 x119
>       518 698 3045 (cell)
> Fax: 518 371 3971 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
-- 
Assistant Professor
Department of Radiology
0453-D JCP
200 Hawkins Drive
Iowa City, IA 52242
E-mail: vincent-magnotta at uiowa.edu
Phone: 319-356-8255
Fax: 319-353-6275
Website: http://www.radiology.uiowa.edu


More information about the Insight-developers mailing list