13 #ifndef mitkModelFitFunctorPolicy_h
14 #define mitkModelFitFunctorPolicy_h
54 unsigned int result = 0;
56 if (m_Functor.IsNotNull() && m_ModelParameterizer.IsNotNull())
59 result = m_Functor->GetNumberOfOutputs(tempModel);
69 itkGenericExceptionMacro( <<
"Error. Functor is Null.");
79 itkGenericExceptionMacro( <<
"Error. Parameterizer is Null.");
82 m_ModelParameterizer = parameterizer;
87 return !(*
this == other);
92 return (this->m_Functor == other.m_Functor) &&
93 (this->m_ModelParameterizer == other.m_ModelParameterizer);
101 itkGenericExceptionMacro( <<
"Error. Cannot process operator(). Functor is Null.");
104 if (!m_ModelParameterizer)
106 itkGenericExceptionMacro( <<
"Error. Cannot process operator(). Parameterizer is Null.");
110 m_ModelParameterizer->GenerateParameterizedModel(currentIndex);
120 FunctorConstPointer m_Functor;
121 ParameterizerConstPointer m_ModelParameterizer;
#define MITKMODELFIT_EXPORT
Abstract base class for functors that perform model fitting.
std::vector< ParameterImagePixelType > InputPixelArrayType
Policy class that combines a ModelFitFunctorBase and a ModelParameterizerBase for pixel-wise fitting.
void SetModelFitFunctor(const mitk::ModelFitFunctorBase *functor)
itk::Index< 3 > IndexType
void SetModelParameterizer(const ParameterizerType *parameterizer)
ParameterizerType::ConstPointer ParameterizerConstPointer
bool operator==(const ModelFitFunctorPolicy &other) const
ModelFitFunctorBase::InputPixelArrayType InputPixelArrayType
ModelFitFunctorBase FunctorType
ModelFitFunctorBase::InputPixelArrayType OutputPixelArrayType
bool operator!=(const ModelFitFunctorPolicy &other) const
mitk::ModelParameterizerBase ParameterizerType
unsigned int GetNumberOfOutputs() const
OutputPixelArrayType operator()(const InputPixelArrayType &value, const IndexType ¤tIndex) const
ModelFitFunctorBase::ConstPointer FunctorConstPointer
ModelBaseType::ParametersType ParametersType
Find image slices visible on a given plane.