| 16 | |
| 17 | |
| 18 | mitk::MVModelFitCostFunction::MeasureType mitk::MVModelFitCostFunction::GetValue(const ParametersType ¶meter) const |
| 19 | { |
| 20 | MeasureType measure; |
| 21 | |
| 22 | SignalType signal = m_Model->GetSignal(parameter); |
| 23 | |
| 24 | if(signal.GetSize() != m_Sample.GetSize()) itkExceptionMacro("Signal size does not matche sample size!"); |
| 25 | if(signal.GetSize() == 0) itkExceptionMacro("Signal is empty!"); |
| 26 | |
| 27 | measure = CalcMeasure(parameter, signal); |
| 28 | |
| 29 | return measure; |
| 30 | } |
| 31 | |
| 32 | void mitk::MVModelFitCostFunction::GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const |
| 33 | { |