Creating images of native type

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


Rats, typing too quickly. I meant to say that you can create images of native form like this:

itkImage<float,2>::Pointer if2 = itkImage<float,2>::New();

Will


At 08:39 AM 5/3/00 -0400, you wrote:

>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