Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Makes sure that the order of files is along the image plane normals. More...
#include <mitkNormalDirectionConsistencySorter.h>
Public Member Functions | |
mitkClassMacro (NormalDirectionConsistencySorter, DICOMDatasetSorter) | |
DICOMTagList | GetTagsOfInterest () override |
Return the tags of interest (to facilitate scanning) More... | |
void | Sort () override |
See class description. More... | |
GantryTiltInformation | GetTiltInformation () const |
See class description and DICOMITKSeriesGDCMReader. More... | |
void | PrintConfiguration (std::ostream &os, const std::string &indent="") const override |
Print configuration details into stream. More... | |
bool | operator== (const DICOMDatasetSorter &other) const override |
![]() | |
mitkClassMacroItkParent (DICOMDatasetSorter, itk::LightObject) | |
void | SetInput (DICOMDatasetList filenames) |
Input for sorting. More... | |
const DICOMDatasetList & | GetInput () const |
Input for sorting. More... | |
unsigned int | GetNumberOfOutputs () const |
Output of the sorting process. More... | |
const DICOMDatasetList & | GetOutput (unsigned int index) const |
Output of the sorting process. More... | |
DICOMDatasetList & | GetOutput (unsigned int index) |
Output of the sorting process. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
NormalDirectionConsistencySorter () | |
~NormalDirectionConsistencySorter () override | |
NormalDirectionConsistencySorter (const NormalDirectionConsistencySorter &other) | |
NormalDirectionConsistencySorter & | operator= (const NormalDirectionConsistencySorter &other) |
![]() | |
DICOMDatasetSorter () | |
~DICOMDatasetSorter () override | |
DICOMDatasetSorter (const DICOMDatasetSorter &other) | |
DICOMDatasetSorter & | operator= (const DICOMDatasetSorter &other) |
void | ClearOutputs () |
void | SetNumberOfOutputs (unsigned int numberOfOutputs) |
void | SetOutput (unsigned int index, const DICOMDatasetList &output) |
Protected Attributes | |
GantryTiltInformation | m_TiltInfo |
Makes sure that the order of files is along the image plane normals.
When loading with ImageSeriesReader and initializing an mitk::Image with the result we need to make sure that the order of inputs for the ImageSeriesReader is along the normal of the images. I.e. The direction of the normal needs to be the same direction as the vector from the first to the last image origin.
Since this class is used as a last sorting step before loading, it will also calculate (and return) an updated GantryTiltInformation object.
Definition at line 38 of file mitkNormalDirectionConsistencySorter.h.
|
protected |
Definition at line 20 of file mitkNormalDirectionConsistencySorter.cpp.
|
overrideprotected |
Definition at line 32 of file mitkNormalDirectionConsistencySorter.cpp.
References PrintConfiguration().
Referenced by NormalDirectionConsistencySorter().
|
protected |
Definition at line 26 of file mitkNormalDirectionConsistencySorter.cpp.
References ~NormalDirectionConsistencySorter().
|
overridevirtual |
Return the tags of interest (to facilitate scanning)
Implements mitk::DICOMDatasetSorter.
Definition at line 65 of file mitkNormalDirectionConsistencySorter.cpp.
References Sort().
Referenced by operator==().
mitk::GantryTiltInformation mitk::NormalDirectionConsistencySorter::GetTiltInformation | ( | ) | const |
See class description and DICOMITKSeriesGDCMReader.
Definition at line 166 of file mitkNormalDirectionConsistencySorter.cpp.
References m_TiltInfo.
Referenced by Sort().
mitk::NormalDirectionConsistencySorter::mitkClassMacro | ( | NormalDirectionConsistencySorter | , |
DICOMDatasetSorter | |||
) |
|
static |
|
protected |
Definition at line 46 of file mitkNormalDirectionConsistencySorter.cpp.
References mitk::DICOMDatasetSorter::operator=(), and operator==().
Referenced by PrintConfiguration().
|
overridevirtual |
Implements mitk::DICOMDatasetSorter.
Definition at line 57 of file mitkNormalDirectionConsistencySorter.cpp.
References GetTagsOfInterest().
Referenced by operator=().
|
overridevirtual |
Print configuration details into stream.
Implements mitk::DICOMDatasetSorter.
Definition at line 38 of file mitkNormalDirectionConsistencySorter.cpp.
References operator=().
Referenced by ~NormalDirectionConsistencySorter().
|
overridevirtual |
See class description.
Implements mitk::DICOMDatasetSorter.
Definition at line 76 of file mitkNormalDirectionConsistencySorter.cpp.
References mitk::DICOMStringToOrientationVectors(), mitk::DICOMStringToPoint3D(), mitk::DICOMDatasetSorter::GetInput(), mitk::DICOMDatasetAccess::GetTagValueAsString(), GetTiltInformation(), m_TiltInfo, mitk::GantryTiltInformation::MakeFromTagValues(), MITK_DEBUG, mitk::DICOMDatasetSorter::SetNumberOfOutputs(), mitk::DICOMDatasetSorter::SetOutput(), and mitk::DICOMDatasetFinding::value.
Referenced by GetTagsOfInterest().
|
protected |
Definition at line 66 of file mitkNormalDirectionConsistencySorter.h.
Referenced by GetTiltInformation(), and Sort().