Computer Assisted Medical Intervention Tool Kit  version 5.2
DicomParser Class Reference

DicomParser allows one to parse a directory of DICOM files looking for studies and series. More...

#include <DicomParser.h>

+ Collaboration diagram for DicomParser:

Public Member Functions

 DicomParser ()=default
 
virtual ~DicomParser ()=default
 Default Destructor. More...
 

Static Public Member Functions

static double getZSpacing (const std::vector< std::string > &seriesFileNames)
 Retrieve the DICOM image file Z spacing attribute (commonly known as spacing between slices) More...
 
static QList< DicomSeries * > parseDirectory (const QString &directory)
 Parse the input directory for DICOM series. More...
 

Detailed Description

DicomParser allows one to parse a directory of DICOM files looking for studies and series.

Note
This class is part of the model (in the MVP pattern) of the DICOM COMPONENT

Constructor & Destructor Documentation

◆ DicomParser()

DicomParser::DicomParser ( )
default

◆ ~DicomParser()

virtual DicomParser::~DicomParser ( )
virtualdefault

Default Destructor.

Member Function Documentation

◆ getZSpacing()

double DicomParser::getZSpacing ( const std::vector< std::string > &  seriesFileNames)
static

Retrieve the DICOM image file Z spacing attribute (commonly known as spacing between slices)

Parameters
seriesFileNamesthe input DICOM image images to retrieve the Z spacing attribute from.
Returns
the Z spacing value.

References CAMITK_ERROR_ALT.

Referenced by DicomComponent::DicomComponent().

+ Here is the caller graph for this function:

◆ parseDirectory()

QList< DicomSeries * > DicomParser::parseDirectory ( const QString &  directory)
static

Parse the input directory for DICOM series.

Parameters
directoryThe input directory to parse DICOM image files.
Returns
A list of DicomSeries, high level CamiTK object which store information of a SERIES

DEBUG

References CAMITK_TRACE_ALT, DicomSeries::setAcquisitionDate(), DicomSeries::setAcquisitionTime(), DicomSeries::setFileNames(), DicomSeries::setPatientName(), DicomSeries::setSeriesDescription(), DicomSeries::setSeriesName(), DicomSeries::setStdFileNames(), and DicomSeries::setStudyName().

Referenced by DicomComponentExtension::open().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: