Medical Imaging Interaction Toolkit  2016.11.0
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) static Pointer New()
 
virtual DICOMTagList GetTagsOfInterest () override
 
virtual void Sort () override
 See class description. More...
 
GantryTiltInformation GetTiltInformation () const
 See class description and DICOMITKSeriesGDCMReader. More...
 
virtual void PrintConfiguration (std::ostream &os, const std::string &indent="") const override
 Print configuration details into stream. More...
 
virtual bool operator== (const DICOMDatasetSorter &other) const override
 
- Public Member Functions inherited from mitk::DICOMDatasetSorter
 mitkClassMacroItkParent (DICOMDatasetSorter, itk::LightObject) virtual DICOMTagList GetTagsOfInterest()=0
 Return the tags of interest (to facilitate scanning) More...
 
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...
 

Protected Member Functions

 NormalDirectionConsistencySorter ()
 
virtual ~NormalDirectionConsistencySorter ()
 
 NormalDirectionConsistencySorter (const NormalDirectionConsistencySorter &other)
 
NormalDirectionConsistencySorteroperator= (const NormalDirectionConsistencySorter &other)
 
- Protected Member Functions inherited from mitk::DICOMDatasetSorter
 DICOMDatasetSorter ()
 
virtual ~DICOMDatasetSorter ()
 
 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 42 of file mitkNormalDirectionConsistencySorter.h.

Constructor & Destructor Documentation

mitk::NormalDirectionConsistencySorter::NormalDirectionConsistencySorter ( )
protected

Definition at line 22 of file mitkNormalDirectionConsistencySorter.cpp.

mitk::NormalDirectionConsistencySorter::~NormalDirectionConsistencySorter ( )
protectedvirtual

Definition at line 34 of file mitkNormalDirectionConsistencySorter.cpp.

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

Definition at line 28 of file mitkNormalDirectionConsistencySorter.cpp.

Member Function Documentation

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

Definition at line 67 of file mitkNormalDirectionConsistencySorter.cpp.

mitk::GantryTiltInformation mitk::NormalDirectionConsistencySorter::GetTiltInformation ( ) const

See class description and DICOMITKSeriesGDCMReader.

Definition at line 168 of file mitkNormalDirectionConsistencySorter.cpp.

mitk::NormalDirectionConsistencySorter::mitkClassMacro ( NormalDirectionConsistencySorter  ,
DICOMDatasetSorter   
)
mitk::NormalDirectionConsistencySorter & mitk::NormalDirectionConsistencySorter::operator= ( const NormalDirectionConsistencySorter other)
protected
bool mitk::NormalDirectionConsistencySorter::operator== ( const DICOMDatasetSorter other) const
overridevirtual

Implements mitk::DICOMDatasetSorter.

Definition at line 59 of file mitkNormalDirectionConsistencySorter.cpp.

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

Print configuration details into stream.

Implements mitk::DICOMDatasetSorter.

Definition at line 40 of file mitkNormalDirectionConsistencySorter.cpp.

Member Data Documentation

GantryTiltInformation mitk::NormalDirectionConsistencySorter::m_TiltInfo
protected

Definition at line 69 of file mitkNormalDirectionConsistencySorter.h.


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