13 #ifndef mitkModelFitFunctorPolicy_h
14 #define mitkModelFitFunctorPolicy_h
44 unsigned int result = 0;
46 if (m_Functor.IsNotNull() && m_ModelParameterizer.IsNotNull())
49 result = m_Functor->GetNumberOfOutputs(tempModel);
59 itkGenericExceptionMacro( <<
"Error. Functor is Null.");
69 itkGenericExceptionMacro( <<
"Error. Parameterizer is Null.");
72 m_ModelParameterizer = parameterizer;
77 return !(*
this == other);
82 return (this->m_Functor == other.m_Functor) &&
83 (this->m_ModelParameterizer == other.m_ModelParameterizer);
91 itkGenericExceptionMacro( <<
"Error. Cannot process operator(). Functor is Null.");
94 if (!m_ModelParameterizer)
96 itkGenericExceptionMacro( <<
"Error. Cannot process operator(). Parameterizer is Null.");
100 m_ModelParameterizer->GenerateParameterizedModel(currentIndex);
110 FunctorConstPointer m_Functor;
111 ParameterizerConstPointer m_ModelParameterizer;
#define MITKMODELFIT_EXPORT
std::vector< ParameterImagePixelType > InputPixelArrayType
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.