added traits for 4d images.

As elastix also allows for 4d images, we need these traits. Btw: is there no easier way to write this once for a variable dimension?
Done.

 

From: Arnaud Gelas [mailto:notifications@github.com] 
Sent: Dienstag, 17. Juni 2014 12:53
To: statismo/statismo
Cc: tom-albrecht
Subject: Re: [statismo] added traits for 4d images. (#46)

 

In Representers/ITK/itkStandardImageRepresenterTraits.h:

>  template<>
> +struct RepresenterTraits<itk::Image<itk::Vector<float, 4u>, 4u> > {
> +
> +    typedef itk::Image<itk::Vector<float, 3u>, 3u> VectorImageType;
> +    typedef VectorImageType::Pointer DatasetPointerType;
> +    typedef VectorImageType::Pointer DatasetConstPointerType;
> +    typedef VectorImageType::PointType PointType;
> +    typedef VectorImageType::PixelType ValueType;
> +};template<>

minor comment: can you stick template keyword to the struct, please?

};
 
template<>
struct …

—
Reply to this email directly or view it on GitHub <https://github.com/statismo/statismo/pull/46/files#r13852652> .  <https://github.com/notifications/beacon/4539251__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxODYyMTU5OSwiZGF0YSI6eyJpZCI6MzQ4MzM1NjR9fQ==--d87a849441ae470f341496401802fa44273ef98b.gif>