Program: gdcm
Module: $RCSfile: PrintFile.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 10:55:00 $
- Version: $Revision: 1.74 $
+ Date: $Date: 2005/11/28 11:54:45 $
+ Version: $Revision: 1.75 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
f->AddForceLoadElement((uint32_t)elemsToForceLoad[2*ri],
(uint32_t)elemsToForceLoad[2*ri+1] );
}
+// TODO : find why such a polution
+// To avoid polluting the output with messages
+// 'Last system error was : No such file or directory'
+
+errno = 0;
+
bool res = f->Load();
// gdcm::File::IsReadable() is no usable here, because we deal with
Program: gdcm
Module: $RCSfile: TestFileAccessors.cxx,v $
Language: C++
- Date: $Date: 2005/11/25 15:56:31 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2005/11/28 11:54:46 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
int i = 0;
- double iop[6];
+ float iop[6];
while( gdcmDataImages[i] != 0 )
{
////////////////////////////////////////////////
// Redefine all types used
-typedef char int8_t;
-typedef unsigned char uint8_t;
-typedef short int16_t;
-typedef unsigned short uint16_t;
-typedef int int32_t;
-typedef unsigned int uint32_t;
-typedef long long int64_t;
+typedef char int8_t;
+typedef unsigned char uint8_t;
+typedef short int16_t;
+typedef unsigned short uint16_t;
+typedef int int32_t;
+typedef unsigned int uint32_t;
+typedef long long int64_t;
typedef unsigned long long uint64_t;
////////////////////////////////////////////////
Program: gdcm
Module: $RCSfile: gdcmFile.cxx,v $
Language: C++
- Date: $Date: 2005/11/25 13:56:31 $
- Version: $Revision: 1.309 $
+ Date: $Date: 2005/11/28 11:54:51 $
+ Version: $Revision: 1.310 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @return true when one of the tag is found
* false when nothing is found
*/
-bool File::GetImageOrientationPatient( double iop[6] )
+bool File::GetImageOrientationPatient( float iop[6] )
{
std::string strImOriPat;
- //iop is supposed to be double[6]
+ //iop is supposed to be float[6]
iop[0] = iop[4] = 1.;
iop[1] = iop[2] = iop[3] = iop[5] = 0.;
Program: gdcm
Module: $RCSfile: gdcmFile.h,v $
Language: C++
- Date: $Date: 2005/11/25 13:56:31 $
- Version: $Revision: 1.121 $
+ Date: $Date: 2005/11/28 11:54:51 $
+ Version: $Revision: 1.122 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
float GetYOrigin();
float GetZOrigin();
- bool GetImageOrientationPatient( double iop[6] );
+ bool GetImageOrientationPatient( float iop[6] );
int GetBitsStored();
int GetBitsAllocated();
Program: gdcm
Module: $RCSfile: gdcmOrientation.cxx,v $
Language: C++
- Date: $Date: 2005/11/25 13:56:32 $
- Version: $Revision: 1.20 $
+ Date: $Date: 2005/11/28 11:54:51 $
+ Version: $Revision: 1.21 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/// (Axial, Coronal, Sagital, ...) of the image
OrientationType Orientation::GetOrientationType( File *f )
{
- double iop[6];
+ float iop[6];
bool succ = f->GetImageOrientationPatient( iop );
if ( !succ )
{
*/
std::string Orientation::GetOrientation ( File *f )
{
- double iop[6];
+ float iop[6];
if ( !f->GetImageOrientationPatient( iop ) )
return GDCM_UNFOUND;
}
-std::string Orientation::GetSingleOrientation ( double *iop)
+std::string Orientation::GetSingleOrientation ( float *iop)
{
std::string orientation;
Program: gdcm
Module: $RCSfile: gdcmOrientation.h,v $
Language: C++
- Date: $Date: 2005/11/25 13:56:32 $
- Version: $Revision: 1.14 $
+ Date: $Date: 2005/11/28 11:54:51 $
+ Version: $Revision: 1.15 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
double CalculLikelyhood2Vec(vector3D const &refA, vector3D const &refB,
vector3D const &ori1, vector3D const &ori2);
vector3D ProductVectorial(vector3D const &vec1, vector3D const &vec2);
- std::string GetSingleOrientation ( double *iop);
+ std::string GetSingleOrientation ( float *iop);
};
} // end namespace gdcm
//-----------------------------------------------------------------------------
Program: gdcm
Module: $RCSfile: gdcmSerieHelper.cxx,v $
Language: C++
- Date: $Date: 2005/11/25 13:56:32 $
- Version: $Revision: 1.36 $
+ Date: $Date: 2005/11/28 11:54:51 $
+ Version: $Revision: 1.37 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
int nb = fileSet->size();
if (nb == 0 )
return CoherentFileSet;
- double iop[6];
+ float iop[6];
std::string strOrient;
std::ostringstream ossOrient;
//based on Jolinda Smith's algorithm
{
//iop is calculated based on the file file
- double cosines[6];
- double normal[3];
- double ipp[3];
- double dist;
- double min = 0, max = 0;
+ float cosines[6];
+ float normal[3];
+ float ipp[3];
+ float dist;
+ float min = 0, max = 0;
bool first = true;
- std::multimap<double,File *> distmultimap;
+ std::multimap<float,File *> distmultimap;
// Use a multimap to sort the distances from 0,0,0
for ( FileList::const_iterator
it = fileList->begin();
dist += normal[i]*ipp[i];
}
- distmultimap.insert(std::pair<const double,File *>(dist, *it));
+ distmultimap.insert(std::pair<const float,File *>(dist, *it));
max = min = dist;
first = false;
dist += normal[i]*ipp[i];
}
- distmultimap.insert(std::pair<const double,File *>(dist, *it));
+ distmultimap.insert(std::pair<const float,File *>(dist, *it));
min = (min < dist) ? min : dist;
max = (max > dist) ? max : dist;
// Check to see if image shares a common position
bool ok = true;
- for (std::multimap<double, File *>::iterator it2 = distmultimap.begin();
+ for (std::multimap<float, File *>::iterator it2 = distmultimap.begin();
it2 != distmultimap.end();
++it2)
{
if (DirectOrder)
{
- for (std::multimap<double, File *>::iterator it3 = distmultimap.begin();
+ for (std::multimap<float, File *>::iterator it3 = distmultimap.begin();
it3 != distmultimap.end();
++it3)
{
}
else // user asked for reverse order
{
- std::multimap<double, File *>::const_iterator it4;
+ std::multimap<float, File *>::const_iterator it4;
it4 = distmultimap.end();
do
{