1 #ifndef CLITKORIENTATION_H
2 #define CLITKORIENTATION_H
4 ===================================================================
5 * @file clitkOrientation.h
6 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
7 * @date 01 Nov 2006 18:00:32
11 ===================================================================*/
14 #include "itkSpatialOrientation.h"
19 //====================================================================
20 // From a letter to an SpatialOrientation::CoordinateTerms
21 itk::SpatialOrientation::CoordinateTerms GetOrientation(char c);
23 //====================================================================
24 // From three letters to an SpatialOrientation
25 itk::SpatialOrientation::ValidCoordinateOrientationFlags GetOrientation(char a, char b, char c);
26 itk::SpatialOrientation::ValidCoordinateOrientationFlags GetOrientation(const std::string & orient);
28 //====================================================================
29 // Check that the orientations are differents
30 bool CheckOrientation(itk::SpatialOrientation::CoordinateTerms a, itk::SpatialOrientation::CoordinateTerms b);
32 //====================================================================
33 // Get orientation at position i
34 itk::SpatialOrientation::CoordinateTerms GetOrientation(const int i, const itk::SpatialOrientation::ValidCoordinateOrientationFlags orient);
36 //====================================================================
37 // Find where is the dimension Dim in this orientaof orientation
38 int WhereIsDimInThisOrientation(const int dim, const itk::SpatialOrientation::ValidCoordinateOrientationFlags flag);
40 //====================================================================
41 // Flip point coordinate
42 void FlipPoint(const itk::Point<double, 3> in,
43 const itk::SpatialOrientation::ValidCoordinateOrientationFlags inFlag,
44 const itk::SpatialOrientation::ValidCoordinateOrientationFlags outFlag,
45 const itk::Point<double, 3> & imageSize,
46 itk::Point<double, 3> & out);
48 //====================================================================
49 // Get the dimension of this term
50 int GetDim(const itk::SpatialOrientation::CoordinateTerms t);
54 #endif /* end #define CLITKORIENTATION_H */