Creating images of native type

Will Schroeder will.schroeder at kitware.com
Wed May 3 08:39:57 EDT 2000


Hi Luis-

Thanks for the feedback.

>in the code from
>
>.../Testing/Code/Common/itkBasicArchitectureTest.cxx
>
>itk images are created using:
>
>itkImage< itkScalar< float > , 3 >::Pointer myImage;
>
>we were naively using something like:
>
>itkImage< float, 3 > *myImage
>
>is the use of "itkScalar" and "itkVector"
>something mandatory when creating images ?


I modified the code (especially the itkPixelTraits class) to support the creation of images of native type. So now you can do:

itkImage< itkScalar< float > , 3 >::Pointer myImage;

as you suggested. (You can also use itkScalar, itkVector, or other user-defined types as before.)

Will






More information about the Insight-developers mailing list