Program: gdcm
Module: $RCSfile: gdcmSerieHelper.cxx,v $
Language: C++
- Date: $Date: 2005/10/23 15:04:26 $
- Version: $Revision: 1.28 $
+ Date: $Date: 2005/10/25 12:40:03 $
+ Version: $Revision: 1.29 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
if (nb == 0 )
return CoherentFileSet;
float iop[6];
- std::ostringstream ossOrient;
+
std::string strOrient;
-
+ std::ostringstream ossOrient;
FileList::const_iterator it = fileSet->begin();
it ++;
for ( ;
// Let's build again the 'cosines' string, to be sure of it's format
(*it)->GetImageOrientationPatient(iop);
+
ossOrient << iop[0];
for (int i = 1; i < 6; i++)
{
ossOrient << iop[i];
}
strOrient = ossOrient.str();
-
+ ossOrient.str("");
+ // FIXME : is it a 'cleaner' way to initialize an ostringstream?
+
if ( CoherentFileSet.count(strOrient) == 0 )
{
gdcmDebugMacro(" New Orientation :[" << strOrient << "]");
}
/**
- * \brief Splits a Single SerieUID Fileset according to the Positions
+ * \brief Splits a 'Single SerieUID' Fileset according to the Positions
* @param fileSet File Set to be splitted
* \return std::map of 'Xcoherent' File sets
*/
}
/**
- * \brief Splits a SingleSerieUID File set Coherent according to the
+ * \brief Splits a 'Single SerieUID' File set Coherent according to the
* value of a given Tag
* @param fileSet File Set to be splitted
* @param group group number of the target Element
* \note Works only on bona fide files (i.e image number is a character string
* corresponding to an integer)
* within a bona fide serie (i.e image numbers are consecutive)
- * @param fileList Coherent File list (same Serie UID) to sort
+ * @param fileList File set (same Serie UID) to sort
* @return false if non bona fide stuff encountered
*/
bool SerieHelper::ImageNumberOrdering(FileList *fileList)