Medical Imaging Interaction Toolkit  2018.4.99-ae21cdc4
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.

Note
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 ( )
protected

◆ ~NormalDirectionConsistencySorter()

mitk::NormalDirectionConsistencySorter::~NormalDirectionConsistencySorter ( )
overrideprotected

◆ NormalDirectionConsistencySorter() [2/2]

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

Member Function Documentation

◆ GetTagsOfInterest()

DICOMTagList mitk::NormalDirectionConsistencySorter::GetTagsOfInterest ( )
overridevirtual

Return the tags of interest (to facilitate scanning)

Implements mitk::DICOMDatasetSorter.

◆ GetTiltInformation()

GantryTiltInformation mitk::NormalDirectionConsistencySorter::GetTiltInformation ( ) const

See class description and DICOMITKSeriesGDCMReader.

◆ mitkClassMacro()

mitk::NormalDirectionConsistencySorter::mitkClassMacro ( NormalDirectionConsistencySorter  ,
DICOMDatasetSorter   
)

◆ New()

static Pointer mitk::NormalDirectionConsistencySorter::New ( )
static

◆ operator=()

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

◆ operator==()

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

◆ PrintConfiguration()

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

Print configuration details into stream.

Implements mitk::DICOMDatasetSorter.

◆ Sort()

void mitk::NormalDirectionConsistencySorter::Sort ( )
overridevirtual

See class description.

Implements mitk::DICOMDatasetSorter.

Member Data Documentation

◆ m_TiltInfo

GantryTiltInformation mitk::NormalDirectionConsistencySorter::m_TiltInfo
protected

Definition at line 66 of file mitkNormalDirectionConsistencySorter.h.


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