14 #ifndef mitkMAPAlgorithmHelper_h
15 #define mitkMAPAlgorithmHelper_h
19 #include <mapRegistrationAlgorithmBase.h>
20 #include <mapRegistrationBase.h>
107 unsupportedDataType = 3
148 template<
typename TInImageType,
typename TOutImageType>
149 typename TOutImageType::Pointer CastImage(
const TInImageType* input)
const;
152 template<
typename TPixelType1,
unsigned int VImageDimension1,
153 typename TPixelType2,
unsigned int VImageDimension2>
154 void DoSetImages(
const itk::Image<TPixelType1, VImageDimension1>* moving,
155 const itk::Image<TPixelType2, VImageDimension2>* target);
158 template<
typename TPixelType1,
unsigned int VImageDimension1,
159 typename TPixelType2,
unsigned int VImageDimension2>
160 void DoCheckImages(
const itk::Image<TPixelType1, VImageDimension1>* moving,
161 const itk::Image<TPixelType2, VImageDimension2>* target)
const;
163 map::algorithm::RegistrationAlgorithmBase::Pointer m_AlgorithmBase;
165 bool m_AllowImageCasting;
167 mutable CheckError::Type m_Error;
#define MITKMATCHPOINTREGISTRATION_EXPORT
Base class of all data objects.
Helper class for bridging between MITK data objects and MatchPoint registration algorithms.
void SetData(const mitk::BaseData *moving, const mitk::BaseData *target)
Sets moving and target data on the algorithm.
static bool HasImageAlgorithmInterface(const map::algorithm::RegistrationAlgorithmBase *algorithm)
Checks whether the given algorithm supports image-based registration.
MAPAlgorithmHelper(map::algorithm::RegistrationAlgorithmBase *algorithm)
Constructs a helper for the given registration algorithm.
bool CheckData(const mitk::BaseData *moving, const mitk::BaseData *target, CheckError::Type &error) const
Checks whether the given moving and target data are compatible with the algorithm.
void SetAllowImageCasting(bool allowCasting)
Enables or disables automatic pixel type casting for images.
bool GetAllowImageCasting() const
Returns whether automatic pixel type casting is currently allowed.
static bool HasPointSetAlgorithmInterface(const map::algorithm::RegistrationAlgorithmBase *algorithm)
Checks whether the given algorithm supports point-set-based registration.
mitk::MAPRegistrationWrapper::Pointer GetMITKRegistrationWrapper() const
Retrieves the registration result wrapped in a MITK-compatible wrapper.
map::core::RegistrationBase::Pointer GetRegistration() const
Retrieves the registration result from the algorithm.
Find image slices visible on a given plane.
mitk::MAPRegistrationWrapper::Pointer MITKMATCHPOINTREGISTRATION_EXPORT GenerateIdentityRegistration3D()
Generates a 3D identity registration wrapped as a MAPRegistrationWrapper.
Error codes returned by CheckData() indicating data compatibility issues.