NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkDisplacementVectorCoordinateAdaptionPixelAccessor.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef itkDisplacementVectorCoordinateAdaptionPixelAccessor_h
16 #define itkDisplacementVectorCoordinateAdaptionPixelAccessor_h
17 
18 #include <itkVector.h>
19 #include <itkMatrix.h>
21 
22 /*
23  * \brief Class for performing the pixel based operation
24  *
25  */
26 template<unsigned int Dimension = 3, class VectorComponentType = float>
28 {
29  public:
30 
31  /*
32  * Some typedefs
33  */
34  typedef itk::Vector<VectorComponentType, Dimension> InternalType;
35  typedef itk::Vector<VectorComponentType, Dimension> ExternalType;
36 
37 
38  typedef double MatrixElementType;
39  typedef itk::Vector<MatrixElementType, Dimension + 1> InternalHomogenousVectorType;
40  typedef itk::Matrix< MatrixElementType, Dimension + 1, Dimension + 1 > HomogenousMatrixType;
41 
42  /*
43  * \brief Get the pixel value
44  * \details The conversion of the pixel value is performed here.
45  */
46  ExternalType Get( const InternalType & in ) const;
47 
48 
49  /*
50  * \brief Constructor
51  */
53 
54 
55  /*
56  * \brief Destructor
57  */
59 
60  /*
61  * \brief Set the homogenous matrix
62  */
63  void SetHomogenousMatrix( const HomogenousMatrixType & hohogenousMatrixIn );
64 
65  private:
66  HomogenousMatrixType m_matrix;
67 };
68 
69 #include "itkDisplacementVectorCoordinateAdaptionPixelAccessor.txx"
70 
71 #endif /* ITKDISPLACEMENTVECTORCOORDINATEADAPTIONPIXELACCESSOR_H_ */
itk::Matrix< MatrixElementType, Dimension+1, Dimension+1 > HomogenousMatrixType
Definition: itkDisplacementVectorCoordinateAdaptionPixelAccessor.h:40
double MatrixElementType
Definition: itkDisplacementVectorCoordinateAdaptionPixelAccessor.h:38
itk::Vector< VectorComponentType, Dimension > InternalType
Definition: itkDisplacementVectorCoordinateAdaptionPixelAccessor.h:34
GLuint in
Definition: glew.h:10220
Definition: itkDisplacementVectorCoordinateAdaptionPixelAccessor.h:27
itk::Vector< VectorComponentType, Dimension > ExternalType
Definition: itkDisplacementVectorCoordinateAdaptionPixelAccessor.h:35
itk::Vector< MatrixElementType, Dimension+1 > InternalHomogenousVectorType
Definition: itkDisplacementVectorCoordinateAdaptionPixelAccessor.h:39