Program: gdcm
Module: $RCSfile: gdcmOrientation.cxx,v $
Language: C++
- Date: $Date: 2005/09/16 16:47:56 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2005/09/19 09:48:27 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
gdcmErrorMacro( "No Image Orientation (0020,0037) found in the file, cannot proceed." )
return 0;
}
-
+/*
+std::cout << " iop : ";
+for(int i=0;i<6;i++)
+ std::cout << iop[i] << " ";
+std::cout << std::endl;
+*/
vector3D ori1;
vector3D ori2;
double criterion = in.second;
if (criterionNew < criterion)
{
- res.first = criterionNew;
- res.second = typeCriterion;
+ res.first = typeCriterion;;
+ res.second = criterionNew;
}
/*
// type = res[0]
// ---------------------------------------------------------------------------
-// Here is the original code, in Python, kindly supllied by THERALYS
+// Here is the original Python code, kindly supplied by THERALYS
//
// C++ code doesn't give good results
// --> FIXME
res=self.VerfCriterion( -i , self.CalculLikelyhood2Vec(refB,refA,ori1,ori2) , res )
return res[0]
-except KeyError:
+ except KeyError:
return 0