1 /*=========================================================================
4 Module: $RCSfile: gdcmOrientation.h,v $
6 Date: $Date: 2005/07/26 02:16:19 $
7 Version: $Revision: 1.2 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #ifndef GDCMORIENTATION_H
20 #define GDCMORIENTATION_H
33 typedef std::pair<double, double> Res;
36 //-----------------------------------------------------------------------------
38 * \brief Orientation class for dealing with DICOM image orienation
40 class GDCM_EXPORT Orientation : public Base
46 double TypeOrientation( File* file );
49 Res VerfCriterion(int typeCriterion, double criterionNew, Res const & res);
50 double CalculLikelyhood2Vec(vector3D const & refA, vector3D const & refB,
51 vector3D const & ori1, vector3D const & ori2);
52 vector3D ProductVectorial(vector3D const & vec1, vector3D const & vec2);
54 } // end namespace gdcm
55 //-----------------------------------------------------------------------------