14 #ifndef mitkMaskedAlgorithmHelper_h
15 #define mitkMaskedAlgorithmHelper_h
17 #include <itkSpatialObject.h>
20 #include <mapRegistrationAlgorithmBase.h>
82 using MaskPixelType =
unsigned char;
88 template<
unsigned int VImageDimension1,
unsigned int VImageDimension2>
92 template<
typename TPixelType,
unsigned int VImageDimension>
93 void DoConvertMask(
const itk::Image<TPixelType, VImageDimension>* mask);
95 template<
unsigned int VImageDimension>
96 void DoConvertMask(
const itk::Image<MaskPixelType, VImageDimension>* mask);
99 template<
unsigned int VImageDimension>
100 typename itk::SpatialObject<VImageDimension>::Pointer ConvertMaskSO(
const itk::Image<MaskPixelType, VImageDimension>* mask)
const;
103 itk::DataObject::Pointer m_convertResult;
105 map::algorithm::RegistrationAlgorithmBase::Pointer m_AlgorithmBase;
#define MITKMATCHPOINTREGISTRATION_EXPORT
Image class for storing multi-dimensional medical image data.
Helper class for setting MITK images as masks on MatchPoint registration algorithms.
static bool HasMaskedRegistrationAlgorithmInterface(const map::algorithm::RegistrationAlgorithmBase *algorithm)
Checks whether the given algorithm implements the MaskedRegistrationAlgorithm interface.
bool CheckSupport(const mitk::Image *movingMask, const mitk::Image *targetMask) const
Checks whether the algorithm supports masks of the given types.
bool SetMasks(const mitk::Image *movingMask, const mitk::Image *targetMask)
Sets one or both masks on the algorithm.
MaskedAlgorithmHelper(map::algorithm::RegistrationAlgorithmBase *algorithm)
Constructs a helper for the given registration algorithm.
Find image slices visible on a given plane.