/*========================================================================= Program: vv http://www.creatis.insa-lyon.fr/rio/vv Authors belong to: - University of LYON http://www.universite-lyon.fr/ - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the copyright notices for more information. It is distributed under dual licence - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ===========================================================================**/ #ifndef CLITKORIENTATION_H #define CLITKORIENTATION_H /** =================================================================== * @file clitkOrientation.h * @author David Sarrut * @date 01 Nov 2006 18:00:32 * @brief ===================================================================*/ // itk include #include "itkSpatialOrientation.h" #include "itkPoint.h" namespace clitk { //==================================================================== // From a letter to an SpatialOrientation::CoordinateTerms itk::SpatialOrientation::CoordinateTerms GetOrientation(char c); //==================================================================== // From three letters to an SpatialOrientation itk::SpatialOrientation::ValidCoordinateOrientationFlags GetOrientation(char a, char b, char c); itk::SpatialOrientation::ValidCoordinateOrientationFlags GetOrientation(const std::string & orient); //==================================================================== // Check that the orientations are differents bool CheckOrientation(itk::SpatialOrientation::CoordinateTerms a, itk::SpatialOrientation::CoordinateTerms b); //==================================================================== // Get orientation at position i itk::SpatialOrientation::CoordinateTerms GetOrientation(const int i, const itk::SpatialOrientation::ValidCoordinateOrientationFlags orient); //==================================================================== // Find where is the dimension Dim in this orientaof orientation int WhereIsDimInThisOrientation(const int dim, const itk::SpatialOrientation::ValidCoordinateOrientationFlags flag); //==================================================================== // Flip point coordinate void FlipPoint(const itk::Point in, const itk::SpatialOrientation::ValidCoordinateOrientationFlags inFlag, const itk::SpatialOrientation::ValidCoordinateOrientationFlags outFlag, const itk::Point & imageSize, itk::Point & out); //==================================================================== // Get the dimension of this term int GetDim(const itk::SpatialOrientation::CoordinateTerms t); } // end namespace #endif /* end #define CLITKORIENTATION_H */