[Insight-developers] TCL Wrapping

Vincent A. Magnotta vincent-magnotta at uiowa.edu
Thu, 12 Feb 2004 15:44:29 -0600


Luis,

Actually the problem is not related to the CastImageFilter directly, but
to the ImageToImageFilter. The CastImageFilter defines types of filters
that are not defined in ImageToImageFilter wrapping therefore once you
allocate the filter all methods are not available to you. For example, I
can allocate a new cast filter

set myCaster [itkCastImageFilterUC3F3_New]

however it will not have a SetInput method.

Vince


On Wed, 2004-02-11 at 12:20, Luis Ibanez wrote:
> Hi Vince,
> 
> This was recently fixed.
> 
> In January 30th we commited separate files for 2D and 3D
> for the CastImageFilter because the number of instantiations
> was hitting some compiler limit.
> 
> 
> Could you please give it a try updating your CVS checkout  ?
> 
> 
> You should find new files
> 
>     - wrap_itkCastImageFilter_2D.cxx
>     - wrap_itkCastImageFilter_3D.cxx
> 
> In Insight/Wrapping/CSwig/BasicFilter.
> 
> They now have the same number of combinations for
> the instantiations.
> 
> Please let us konw if you find any problems.
> 
> 
>     Thanks
> 
> 
>        Luis
> 
> 
> -----------------------------------
> Vincent A. Magnotta wrote:
> 
> > I was getting some strange behavior with wrapping. I am working on a
> > couple of TCL scripts that use the TCL wrapping. I have been trying to
> > use the itkCastImageFilter. Here is the problem that I am seeing. If I
> > create a cast filter from F3 to F3 I have an SetInput method. If I
> > create a cast filter from UC3 to F3 I do not have a SetInput method.
> > 
> > I looked at the wrapping for the ImageToImageFilter and this has been
> > wrapped for only a very tiny subset of types. Actually  it is only
> > wrapped for float to float and unsigned short to unsigned short and some
> > potential conversion between 2D and 3D. I believe that we may want to
> > expand greatly the types in this file to match all of the types and
> > conversions between the valid image types wrapped for itkImage. If we
> > don't, this is going to repeatedly be an issue. 
> > 
> > 
> > Vince
> > 
> > 
> 
> 
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
-- 
Assistant Professor
Department of Radiology
0437 JCP
E-mail: vincent-magnotta at uiowa.edu
Phone: 319-356-8255
Fax: 319-353-6275
Website: http://www.radiology.uiowa.edu