Program: gdcm
Module: $RCSfile: gdcmSerieHelper.cxx,v $
Language: C++
- Date: $Date: 2011/03/29 07:36:00 $
- Version: $Revision: 1.71 $
+ Date: $Date: 2011/04/04 17:33:58 $
+ Version: $Revision: 1.73 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
if ( SerieHelper::UserLessThanFunction )
{
- gdcmDebugMacro("Use UserLessThanFunction");
+ gdcmDebugMacro("Use UserLessThanFunction");
UserOrdering( fileSet );
return;
}
strTagValue = (*it)->GetEntryString(group,element);
dTagValue = atof( strTagValue.c_str());
- iTagValue = dTagValue;
+ iTagValue = dTagValue*10000.;
sprintf(cTagValue, "%010d", iTagValue);
strTagValue = cTagValue;
}
}
// Eliminate non-alphanum characters, including whitespace.
-
unsigned int s_size = s.size();
if(s_size == 0)
{ // to avoid further troubles when wild anonymization was performed
s.replace(i, 1, "_"); // ImagePositionPatient related stuff will be more human readable
}
}
- // deal with Dicom strings trailing '\0'
+ // deal with Dicom strings trailing '\0'
if(s[s_size-1] == '_')
s.erase(s_size-1, 1);
}