[Insight-users] ITK filter dimensions.
Fabian Torres
fabian.trobles at gmail.com
Mon Mar 3 13:32:57 EST 2014
Hi all.
I´m making a filter in ITK for surface enhancement. This filter is an
itkImageToImageFilter.
Sometimes I will use this filter with 2D images an sometimes with 3D
images. The thing is that inside this filter I have to use some other itk
components and I need to specify the number of dimensions I´m using. So
this is a problem since itk does not let me use variables to specify this.
I´m using the next for 3D:
typedef itk::Vector< PixelType, 3 > VectorPixelType;
typedef itk::Vector< VectorPixelType, 3 > MatrixPixelType;
typedef itk::SymmetricSecondRankTensor< PixelType, 3 > TensorPixelType;
typedef itk::Image< TensorPixelType, 3 > TensorImageType;
but I also need to work with 2D and use the same filter.
Is there a way to know the number of dimensions of the filter input image,
and declare the typedefs using this value?
--
Fabián Torres Robles
Maestria en Ciencias en Ingeniería Electrónica
Ingeniería en Sistemas Electrónicos
tel. 58081280, 0445534661338
e-mail fabian.trobles at gmail.com, dae.wong at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140303/ebf93fdc/attachment.html>
More information about the Insight-users
mailing list