Program: gdcm
Module: $RCSfile: gdcmSerieHelper.cxx,v $
Language: C++
- Date: $Date: 2006/03/30 16:41:22 $
- Version: $Revision: 1.48 $
+ Date: $Date: 2006/03/30 16:51:29 $
+ Version: $Revision: 1.49 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
bool SerieHelper::ImagePositionPatientOrdering( FileList *fileList )
//based on Jolinda Smith's algorithm
{
-gdcmDebugMacro( "In ImagePositionPatientOrdering()" << std::endl );
-std::cout << "In ImagePositionPatientOrdering()" << std::endl;
//Tags always use the same coordinate system, where "x" is left
//to right, "y" is posterior to anterior, and "z" is foot to head (RAH).
Program: gdcm
Module: $RCSfile: gdcmSerieHelper.h,v $
Language: C++
- Date: $Date: 2006/02/16 20:06:15 $
- Version: $Revision: 1.37 $
+ Date: $Date: 2006/03/30 16:51:29 $
+ Version: $Revision: 1.38 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
public:
/// SingleSerieUIDFileSetmap replaces the former CoherentFileListmap
- /// ( List were actually std::vectors, and wher no coherent at all :
+ /// ( List were actually std::vectors, and where no coherent at all :
/// They were only Single SeriesInstanceUID File sets)
typedef std::map<std::string, FileList *> SingleSerieUIDFileSetmap;
/// brief returns the 'Series Instance UID' Single SerieUID FileSet
std::string GetCurrentSerieUIDFileSetUID()
{ return (*ItFileSetHt).first; }
+
+ /// \brief returns the distance between the 2 first -adjacent- slices,
+ /// along the slice normal; -1.0 if process failed
+ /// Computed during ImagePositionPatientOrdering() process.
+ /// To be use *immediately after* ImagePositionPatientOrdering()
+ /// (it's a member of the FileHelper, *not* of the FileList !)
+ double GetZSpacing() { return ZSpacing; }
+
/// All the following allow user to restrict DICOM file to be part
/// of a particular serie
- /// \todo : find a trick to allow user to say the retrictetons are ored
+ /// \todo : find a trick to allow user to say the restrictions are ored
/// (not only anded)
/// ex : keep the images whose SerieNumber is 101 or 102 or 103.
void AddRestriction(TagKey const &key);
void Sort(FileList *fileList, bool (*pt2Func)( File *file1, File *file2) );
bool m_UseSeriesDetails;
+ /// \brief distance between the 2 first -adjancent- slices, along the slice normal
+ /// Computed during ImagePositionPatientOrdering() process.
+ /// (we need to sort the whole image set to do that)
+ /// To be used *immediately after* ImagePositionPatientOrdering()
+ /// (it's a member of the FileHelper, *not* of the FileList !)
+ double ZSpacing;
};
} // end namespace gdcm