Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2005/06/02 09:40:58 $
- Version: $Revision: 1.139 $
+ Date: $Date: 2005/06/03 16:08:16 $
+ Version: $Revision: 1.140 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
}
NewMeta();
gdcmWarningMacro( "Parse directory and create the DicomDir : " << Filename );
+
ParseDirectory();
}
return true;
return true;
}
-
-
-
-
-
-
-
-
//-----------------------------------------------------------------------------
// Protected
/**
Program: gdcm
Module: $RCSfile: gdcmFile.cxx,v $
Language: C++
- Date: $Date: 2005/06/02 14:20:14 $
- Version: $Revision: 1.240 $
+ Date: $Date: 2005/06/03 16:08:16 $
+ Version: $Revision: 1.241 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
const std::string &res = GetEntryValue(0x0028, 0x0005);
if ( res != GDCM_UNFOUND && atoi(res.c_str()) > 4 )
{
+ gdcmWarningMacro("Wrong Image Dimensions" << res);
return false; // Image Dimensions
}
if ( !GetDocEntry(0x0028, 0x0100) )
{
+ gdcmWarningMacro("Bits Allocated (0028|0100) not found");
return false; // "Bits Allocated"
}
if ( !GetDocEntry(0x0028, 0x0101) )
{
+ gdcmWarningMacro("Bits Stored (0028|0101) not found");
return false; // "Bits Stored"
}
if ( !GetDocEntry(0x0028, 0x0102) )
{
+ gdcmWarningMacro("Hight Bit (0028|0102) not found");
return false; // "High Bit"
}
if ( !GetDocEntry(0x0028, 0x0103) )
{
+ gdcmWarningMacro("Pixel Representation (0028|0103) not found");
return false; // "Pixel Representation" i.e. 'Sign'
}
if ( !GetDocEntry(GrPixel, NumPixel) )
{
+ gdcmWarningMacro("Pixel Dicom Element " << std::hex <<
+ GrPixel << "|" << NumPixel << "not found");
return false; // Pixel Dicom Element not found :-(
}
return true;
Program: gdcm
Module: $RCSfile: gdcmSerieHelper.cxx,v $
Language: C++
- Date: $Date: 2005/05/27 21:19:03 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2005/06/03 16:08:16 $
+ Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* But as I don't know how to do it, I leave it this way
* BTW, this is also a Strategy, I don't know this is the best approach :)
*/
-void SerieHelper::OrderFileList(FileList *CoherentFileList)
+void SerieHelper::OrderFileList(FileList *coherentFileList)
{
- if( ImagePositionPatientOrdering( CoherentFileList ) )
+ if( ImagePositionPatientOrdering( coherentFileList ) )
{
return ;
}
- else if( ImageNumberOrdering(CoherentFileList ) )
+ else if( ImageNumberOrdering(coherentFileList ) )
{
return ;
}
else
{
- FileNameOrdering(CoherentFileList );
+ FileNameOrdering(coherentFileList );
}
}
/**
* \brief Get the Coherent Files list according to its Serie UID
* @param SerieUID SerieUID
- * \return pointer to the Coherent Filseslist if found, otherwhise NULL
+ * \return pointer to the Coherent Files list if found, otherwhise NULL
*/
FileList *SerieHelper::GetCoherentFileList(std::string SerieUID)
{
* -# Image Position Patient
* -# Image Number
* -# More to come :-)
+ * WARNING : FileList = std::vector<File* >
* @param fileList Coherent File list (same Serie UID) to sort
* @return false only if the header is bugged !
*/
/**
* \brief Canonical printer.
*/
-void SerieHelper::Print(std::ostream &os, std::string const & indent)
+void SerieHelper::Print(std::ostream &os, std::string const &indent)
{
// For all the Coherent File lists of the gdcm::Serie
CoherentFileListmap::iterator itl = CoherentFileListHT.begin();
Program: gdcm
Module: $RCSfile: gdcmSerieHelper.h,v $
Language: C++
- Date: $Date: 2005/05/27 21:19:04 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2005/06/03 16:08:16 $
+ Version: $Revision: 1.10 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* - This class should be used for a stack of 2D dicom images.
* It allows to explore (recursively or not) a directory and
* makes a set of 'Coherent Files' list (coherent : same Serie UID)
- * It allows to sort any of the Coherent File list on the image postion
+ * It allows to sort any of the Coherent File list on the image position
*/
class GDCM_EXPORT SerieHelper
{