Medical Imaging Interaction Toolkit  2018.4.99-08619e4f
Medical Imaging Interaction Toolkit
mitk::NormalDirectionConsistencySorter Class Reference

Makes sure that the order of files is along the image plane normals. More...

#include <mitkNormalDirectionConsistencySorter.h>

Inheritance diagram for mitk::NormalDirectionConsistencySorter:
Collaboration diagram for mitk::NormalDirectionConsistencySorter:

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
- Public Member Functions inherited from mitk::DICOMDatasetSorter
 mitkClassMacroItkParent (DICOMDatasetSorter, itk::LightObject)
void SetInput (DICOMDatasetList filenames)
 Input for sorting. More...
const DICOMDatasetListGetInput () const
 Input for sorting. More...
unsigned int GetNumberOfOutputs () const
 Output of the sorting process. More...
const DICOMDatasetListGetOutput (unsigned int index) const
 Output of the sorting process. More...
DICOMDatasetListGetOutput (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)
NormalDirectionConsistencySorteroperator= (const NormalDirectionConsistencySorter &other)
- Protected Member Functions inherited from mitk::DICOMDatasetSorter
 DICOMDatasetSorter ()
 ~DICOMDatasetSorter () override
 DICOMDatasetSorter (const DICOMDatasetSorter &other)
DICOMDatasetSorteroperator= (const DICOMDatasetSorter &other)
void ClearOutputs ()
void SetNumberOfOutputs (unsigned int numberOfOutputs)
void SetOutput (unsigned int index, const DICOMDatasetList &output)

Protected Attributes

GantryTiltInformation m_TiltInfo

Detailed Description

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.

This class might be a workaround for another bug in MITK, but until this issue is completely understood, the workaround fixes the problem of images that appear upside-down.

Definition at line 38 of file mitkNormalDirectionConsistencySorter.h.

Constructor & Destructor Documentation

◆ NormalDirectionConsistencySorter() [1/2]

mitk::NormalDirectionConsistencySorter::NormalDirectionConsistencySorter ( )

Definition at line 20 of file mitkNormalDirectionConsistencySorter.cpp.

◆ ~NormalDirectionConsistencySorter()

mitk::NormalDirectionConsistencySorter::~NormalDirectionConsistencySorter ( )

◆ NormalDirectionConsistencySorter() [2/2]

mitk::NormalDirectionConsistencySorter::NormalDirectionConsistencySorter ( const NormalDirectionConsistencySorter other)

Member Function Documentation

◆ GetTagsOfInterest()

mitk::DICOMTagList mitk::NormalDirectionConsistencySorter::GetTagsOfInterest ( )

Return the tags of interest (to facilitate scanning)

Implements mitk::DICOMDatasetSorter.

Definition at line 65 of file mitkNormalDirectionConsistencySorter.cpp.

References Sort().

Referenced by operator==().

◆ GetTiltInformation()

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().

◆ mitkClassMacro()

mitk::NormalDirectionConsistencySorter::mitkClassMacro ( NormalDirectionConsistencySorter  ,

◆ New()

static Pointer mitk::NormalDirectionConsistencySorter::New ( )

◆ operator=()

mitk::NormalDirectionConsistencySorter & mitk::NormalDirectionConsistencySorter::operator= ( const NormalDirectionConsistencySorter other)

◆ operator==()

bool mitk::NormalDirectionConsistencySorter::operator== ( const DICOMDatasetSorter other) const

Implements mitk::DICOMDatasetSorter.

Definition at line 57 of file mitkNormalDirectionConsistencySorter.cpp.

References GetTagsOfInterest().

Referenced by operator=().

◆ PrintConfiguration()

void mitk::NormalDirectionConsistencySorter::PrintConfiguration ( std::ostream &  os,
const std::string &  indent = "" 
) const

Print configuration details into stream.

Implements mitk::DICOMDatasetSorter.

Definition at line 38 of file mitkNormalDirectionConsistencySorter.cpp.

References operator=().

Referenced by ~NormalDirectionConsistencySorter().

◆ Sort()

Member Data Documentation

◆ m_TiltInfo

GantryTiltInformation mitk::NormalDirectionConsistencySorter::m_TiltInfo

Definition at line 66 of file mitkNormalDirectionConsistencySorter.h.

Referenced by GetTiltInformation(), and Sort().

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