Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkTimeFramesRegistrationHelper.h>
Public Types | |
typedef ::map::algorithm::RegistrationAlgorithmBase | RegistrationAlgorithmBaseType |
typedef RegistrationAlgorithmBaseType::Pointer | RegistrationAlgorithmPointer |
typedef ::map::core::RegistrationBase | RegistrationType |
typedef RegistrationType::Pointer | RegistrationPointer |
typedef std::vector< mitk::TimeStepType > | IgnoreListType |
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 |
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:
Definition at line 47 of file mitkTimeFramesRegistrationHelper.h.
typedef std::vector<mitk::TimeStepType> mitk::TimeFramesRegistrationHelper::IgnoreListType |
Definition at line 59 of file mitkTimeFramesRegistrationHelper.h.
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.
typedef RegistrationType::Pointer mitk::TimeFramesRegistrationHelper::RegistrationPointer |
Definition at line 57 of file mitkTimeFramesRegistrationHelper.h.
typedef ::map::core::RegistrationBase mitk::TimeFramesRegistrationHelper::RegistrationType |
Definition at line 56 of file mitkTimeFramesRegistrationHelper.h.
|
inlineprotected |
Definition at line 111 of file mitkTimeFramesRegistrationHelper.h.
|
inlineprotected |
Definition at line 119 of file mitkTimeFramesRegistrationHelper.h.
|
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.
|
protected |
Definition at line 154 of file mitkTimeFramesRegistrationHelper.cpp.
References mitk::BaseData::GetGeometry(), and mitk::ImageMappingHelper::map().
|
protected |
Definition at line 138 of file mitkTimeFramesRegistrationHelper.cpp.
References mitk::MITKAlgorithmHelper::GetRegistration(), mitk::MITKAlgorithmHelper::SetAllowImageCasting(), mitk::MITKAlgorithmHelper::SetData(), and mitk::MaskedAlgorithmHelper::SetMasks().
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.
Definition at line 40 of file mitkTimeFramesRegistrationHelper.cpp.
References mitk::Image::ReferenceMemory.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 27 of file mitkTimeFramesRegistrationHelper.cpp.
References mitk::ImageTimeSelector::New().
|
virtual |
|
virtual |
|
virtual |
|
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.
Definition at line 111 of file mitkTimeFramesRegistrationHelper.cpp.
|
virtual |
|
protected |
Definition at line 162 of file mitkTimeFramesRegistrationHelper.cpp.
mitk::TimeFramesRegistrationHelper::mitkClassMacroItkParent | ( | TimeFramesRegistrationHelper | , |
itk::Object | |||
) |
|
static |
Referenced by QmitkFramesRegistrationJob::run().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void mitk::TimeFramesRegistrationHelper::SetIgnoreList | ( | const IgnoreListType & | il | ) |
Definition at line 123 of file mitkTimeFramesRegistrationHelper.cpp.
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 134 of file mitkTimeFramesRegistrationHelper.h.