Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
MaskedAlgorithmHelper Helper class as an easy bridge to set mitk images as masks for registration algorithms. It is assumed that the Image indicates the mask by pixel values != 0. More...
#include <mitkMaskedAlgorithmHelper.h>
Public Member Functions | |
MaskedAlgorithmHelper (map::algorithm::RegistrationAlgorithmBase *algorithm) | |
bool | SetMasks (const mitk::Image *movingMask, const mitk::Image *targetMask) |
bool | CheckSupport (const mitk::Image *movingMask, const mitk::Image *targetMask) const |
~MaskedAlgorithmHelper () | |
Static Public Member Functions | |
static bool | HasMaskedRegistrationAlgorithmInterface (const map::algorithm::RegistrationAlgorithmBase *algorithm) |
MaskedAlgorithmHelper Helper class as an easy bridge to set mitk images as masks for registration algorithms. It is assumed that the Image indicates the mask by pixel values != 0.
Definition at line 37 of file mitkMaskedAlgorithmHelper.h.
mitk::MaskedAlgorithmHelper::MaskedAlgorithmHelper | ( | map::algorithm::RegistrationAlgorithmBase * | algorithm | ) |
Definition at line 27 of file mitkMaskedAlgorithmHelper.cpp.
|
inline |
Definition at line 54 of file mitkMaskedAlgorithmHelper.h.
References mask.
bool mitk::MaskedAlgorithmHelper::CheckSupport | ( | const mitk::Image * | movingMask, |
const mitk::Image * | targetMask | ||
) | const |
Checks if the algorithm supports masks of the passed type.
Definition at line 41 of file mitkMaskedAlgorithmHelper.cpp.
References mitk::Image::GetDimension().
Referenced by HasMaskedRegistrationAlgorithmInterface(), and SetMasks().
|
static |
Definition at line 31 of file mitkMaskedAlgorithmHelper.cpp.
References CheckSupport().
bool mitk::MaskedAlgorithmHelper::SetMasks | ( | const mitk::Image * | movingMask, |
const mitk::Image * | targetMask | ||
) |
Set one or both masks to an algorithm. If the algorithm does not support masks it will be ignored.
Definition at line 82 of file mitkMaskedAlgorithmHelper.cpp.
References AccessFixedDimensionByItk, CheckSupport(), and mask.
Referenced by mitk::TimeFramesRegistrationHelper::DoFrameRegistration(), and QmitkRegistrationJob::run().