[Insight-developers] itkImageMapper & Tcl Wrapping
Luis Ibanez
ibanez@choroid.cs.unc.edu
Sat, 5 Jan 2002 14:52:51 -0500 (EST)
Hi Brad,
The problem with the Tcl wrapping of the itk::ImageMapper
was related with a couple of default options in the template
parameters.
1) Affine transform is by defauld : 3D
So the definition of AffineTransform<float> results in
AffineTransform<float,3>. A mapper was being defined with
a 2D image and a 3D transform.
2) The affine transform was instatiated with <float> but the
Interpolator that it is used by the mapper is by default
instantiated over <double>. That resulted in a mismatch
between Point<double,3> and Point<float,3> in the Evaluate()
method.
So, a "TransformDouble" == AffineTransform<double> was added
to Insight/Testing/Code/Algorithms/CMakeListsTcl.txt, and
the ImageMapper was instantiated over: Image3D and TransformDouble.
With this changes, the ImageMapper wrapping is working under
Linux 2.2.18 and gcc 2.95.2.
Additionally, a test for itkImageMapper was added under
Insight/Code/Algorithms/itkImageMapperTest.cxx
Luis