[Insight-developers] vector dimension

Ying Zhuge zhuge@mipg.upenn.edu
Wed, 28 Nov 2001 15:29:07 -0500


Can I use following sentence in my class definition,
enum {VectorDimension = 
TInputImage::PixelType::VectorType::VectorDimension};
because I want to use that to specify the matrix dimension.

Thanks

Ying


----------------------------------------------------------
template <class TInputImage, class TOutputImage>
class VectorFuzzyConnectednessImageFilter:
  public ImageToImageFilter<TInputImage,TOutputImage>
{
public:
...

  enum {ImageDimension = TInputImage::ImageDimension };
  enum {VectorDimension = 
TInputImage::PixelType::VectorType::VectorDimension};

...
typedef   itk::Matrix<double,VectorDimension,VectorDimension>           
    MatrixType;

...
}