Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::TimeFramesRegistrationHelper Class Reference

#include <mitkTimeFramesRegistrationHelper.h>

Inheritance diagram for mitk::TimeFramesRegistrationHelper:
Collaboration diagram for mitk::TimeFramesRegistrationHelper:

Public Types

typedef ::map::algorithm::RegistrationAlgorithmBase RegistrationAlgorithmBaseType
 
typedef RegistrationAlgorithmBaseType::Pointer RegistrationAlgorithmPointer
 
typedef ::map::core::RegistrationBase RegistrationType
 
typedef RegistrationType::Pointer RegistrationPointer
 
typedef std::vector< mitk::TimeStepTypeIgnoreListType
 

Public Member Functions

 mitkClassMacroItkParent (TimeFramesRegistrationHelper, itk::Object)
 
virtual void Set4DImage (const Image *_arg)
 
virtual const ImageGet4DImage ()
 
virtual void SetTargetMask (const Image *_arg)
 
virtual const ImageGetTargetMask ()
 
virtual void SetAlgorithm (RegistrationAlgorithmBaseType *_arg)
 
virtual RegistrationAlgorithmBaseTypeGetAlgorithm ()
 
virtual void SetAllowUndefPixels (bool _arg)
 
virtual bool GetAllowUndefPixels () const
 
virtual void SetPaddingValue (double _arg)
 
virtual double GetPaddingValue () const
 
virtual void SetAllowUnregPixels (bool _arg)
 
virtual bool GetAllowUnregPixels () const
 
virtual void SetErrorValue (double _arg)
 
virtual double GetErrorValue () const
 
virtual void SetInterpolatorType (mitk::ImageMappingInterpolator::Type _arg)
 
virtual mitk::ImageMappingInterpolator::Type GetInterpolatorType () const
 
void ClearIgnoreList ()
 
void SetIgnoreList (const IgnoreListType &il)
 
virtual IgnoreListType GetIgnoreList () const
 
virtual double GetProgress () const
 
void Generate ()
 
Image::Pointer GetRegisteredImage ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 TimeFramesRegistrationHelper ()
 
 ~TimeFramesRegistrationHelper ()
 
RegistrationPointer DoFrameRegistration (const mitk::Image *movingFrame, const mitk::Image *targetFrame, const mitk::Image *targetMask) const
 
mitk::Image::Pointer DoFrameMapping (const mitk::Image *movingFrame, const RegistrationType *reg, const mitk::Image *targetFrame) const
 
bool HasOutdatedResult () const
 
void CheckValidInputs () const
 
mitk::Image::Pointer GetFrameImage (const mitk::Image *image, mitk::TimePointType timePoint) const
 

Protected Attributes

RegistrationAlgorithmPointer m_Algorithm
 

Detailed Description

Helper class that assumes that registeres time frames of an passed image and returns the resulting new image. A typical use case for the helper class is motion correction in 3D+t images. Each selected frame will be registered to the first frame of the image. The user can define frames that may be not registered. These frames will be copied directly. Per default all frames will be registered. The user may set a mask for the target frame (1st frame). If this mask image has mulitple time steps, the first time step will be used. The helper class invokes three eventtypes:

  • mitk::FrameRegistrationEvent: when ever a frame was registered.
  • mitk::FrameMappingEvent: when ever a frame was mapped registered.
  • itk::ProgressEvent: when ever a new frame was added to the result image.

Definition at line 47 of file mitkTimeFramesRegistrationHelper.h.

Member Typedef Documentation

typedef ::map::algorithm::RegistrationAlgorithmBase mitk::TimeFramesRegistrationHelper::RegistrationAlgorithmBaseType

Definition at line 52 of file mitkTimeFramesRegistrationHelper.h.

typedef RegistrationAlgorithmBaseType::Pointer mitk::TimeFramesRegistrationHelper::RegistrationAlgorithmPointer

Definition at line 55 of file mitkTimeFramesRegistrationHelper.h.

Definition at line 57 of file mitkTimeFramesRegistrationHelper.h.

typedef ::map::core::RegistrationBase mitk::TimeFramesRegistrationHelper::RegistrationType

Definition at line 56 of file mitkTimeFramesRegistrationHelper.h.

Constructor & Destructor Documentation

mitk::TimeFramesRegistrationHelper::TimeFramesRegistrationHelper ( )
inlineprotected

Definition at line 111 of file mitkTimeFramesRegistrationHelper.h.

mitk::TimeFramesRegistrationHelper::~TimeFramesRegistrationHelper ( )
inlineprotected

Definition at line 119 of file mitkTimeFramesRegistrationHelper.h.

Member Function Documentation

void mitk::TimeFramesRegistrationHelper::CheckValidInputs ( ) const
protected

Check if the fit can be generated and all needed inputs are valid. Throw an exception for a non valid or missing input.

Definition at line 205 of file mitkTimeFramesRegistrationHelper.cpp.

References mitkThrow.

void mitk::TimeFramesRegistrationHelper::ClearIgnoreList ( )

cleares the ignore list. Therefore all frames will be processed.

Definition at line 130 of file mitkTimeFramesRegistrationHelper.cpp.

mitk::Image::Pointer mitk::TimeFramesRegistrationHelper::DoFrameMapping ( const mitk::Image movingFrame,
const RegistrationType reg,
const mitk::Image targetFrame 
) const
protected
mitk::TimeFramesRegistrationHelper::RegistrationPointer mitk::TimeFramesRegistrationHelper::DoFrameRegistration ( const mitk::Image movingFrame,
const mitk::Image targetFrame,
const mitk::Image targetMask 
) const
protected
void mitk::TimeFramesRegistrationHelper::Generate ( )

Commences the generation of the registered 4D image. Stores the result internally. After this method call is finished the result can be retrieved via GetRegisteredImage.

Precondition
4D image must be set
4D image must has more then one frame
Reg algorithm must be set
Ignore list values must be within the time geometry of the image
Postcondition
Result image was generated.

Definition at line 40 of file mitkTimeFramesRegistrationHelper.cpp.

References mitk::Image::ReferenceMemory.

virtual const Image* mitk::TimeFramesRegistrationHelper::Get4DImage ( )
virtual
virtual RegistrationAlgorithmBaseType* mitk::TimeFramesRegistrationHelper::GetAlgorithm ( )
virtual
virtual bool mitk::TimeFramesRegistrationHelper::GetAllowUndefPixels ( ) const
virtual
virtual bool mitk::TimeFramesRegistrationHelper::GetAllowUnregPixels ( ) const
virtual
virtual double mitk::TimeFramesRegistrationHelper::GetErrorValue ( ) const
virtual
mitk::Image::Pointer mitk::TimeFramesRegistrationHelper::GetFrameImage ( const mitk::Image image,
mitk::TimePointType  timePoint 
) const
protected
virtual IgnoreListType mitk::TimeFramesRegistrationHelper::GetIgnoreList ( ) const
virtual
virtual mitk::ImageMappingInterpolator::Type mitk::TimeFramesRegistrationHelper::GetInterpolatorType ( ) const
virtual
virtual double mitk::TimeFramesRegistrationHelper::GetPaddingValue ( ) const
virtual
double mitk::TimeFramesRegistrationHelper::GetProgress ( ) const
virtual

Definition at line 235 of file mitkTimeFramesRegistrationHelper.cpp.

mitk::Image::Pointer mitk::TimeFramesRegistrationHelper::GetRegisteredImage ( )

Returns the generated images. Triggers Generate() if result is outdated.

Precondition
4D image must be set
4D image must has more then one frame
Reg algorithm must be set
Ignore list values must be within the time geometry of the image

Definition at line 111 of file mitkTimeFramesRegistrationHelper.cpp.

virtual const Image* mitk::TimeFramesRegistrationHelper::GetTargetMask ( )
virtual
bool mitk::TimeFramesRegistrationHelper::HasOutdatedResult ( ) const
protected

Definition at line 162 of file mitkTimeFramesRegistrationHelper.cpp.

mitk::TimeFramesRegistrationHelper::mitkClassMacroItkParent ( TimeFramesRegistrationHelper  ,
itk::Object   
)
static Pointer mitk::TimeFramesRegistrationHelper::New ( )
static
virtual void mitk::TimeFramesRegistrationHelper::Set4DImage ( const Image _arg)
virtual
virtual void mitk::TimeFramesRegistrationHelper::SetAlgorithm ( RegistrationAlgorithmBaseType _arg)
virtual
virtual void mitk::TimeFramesRegistrationHelper::SetAllowUndefPixels ( bool  _arg)
virtual
virtual void mitk::TimeFramesRegistrationHelper::SetAllowUnregPixels ( bool  _arg)
virtual
virtual void mitk::TimeFramesRegistrationHelper::SetErrorValue ( double  _arg)
virtual
void mitk::TimeFramesRegistrationHelper::SetIgnoreList ( const IgnoreListType il)

Definition at line 123 of file mitkTimeFramesRegistrationHelper.cpp.

virtual void mitk::TimeFramesRegistrationHelper::SetInterpolatorType ( mitk::ImageMappingInterpolator::Type  _arg)
virtual
virtual void mitk::TimeFramesRegistrationHelper::SetPaddingValue ( double  _arg)
virtual
virtual void mitk::TimeFramesRegistrationHelper::SetTargetMask ( const Image _arg)
virtual

Member Data Documentation

RegistrationAlgorithmPointer mitk::TimeFramesRegistrationHelper::m_Algorithm
protected

Definition at line 134 of file mitkTimeFramesRegistrationHelper.h.


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