42 #ifndef SVK_MRS_FIRST_ORDER_PHASE_COST_FUNCTION_H
43 #define SVK_MRS_FIRST_ORDER_PHASE_COST_FUNCTION_H
84 double phi0 = parameters[0];
85 double phi1 = parameters[1];
87 double intensity = FLT_MIN;
92 this->copySpectrum->GetTupleValue(0, cmplxPt);
99 MeasureType measure = intensity;
108 virtual MeasureType
GetValue(
const ParametersType & parameters )
const
115 this->copySpectrum->DeepCopy(this->spectrum);
116 cost = GetFirstOrderPhaseValue( parameters );
118 MeasureType measure = cost;
138 this->linearPhaseArrays = linearPhaseArrays;
147 this->numFirstOrderPhaseValues = numPhaseValues;
162 #endif// SVK_MRS_FIRST_ORDER_PHASE_COST_FUNCTION_H
void SetNumFirstOrderPhaseValues(int numPhaseValues)
Definition: svkMRSFirstOrderPhaseCostFunction.h:145
svkMRSFirstOrderPhaseCostFunction()
Definition: svkMRSFirstOrderPhaseCostFunction.h:71
virtual MeasureType GetValue(const ParametersType ¶meters) const
Definition: svkMRSFirstOrderPhaseCostFunction.h:108
int numFirstOrderPhaseValues
Definition: svkMRSFirstOrderPhaseCostFunction.h:155
vtkImageComplex ** linearPhaseArrays
Definition: svkMRSFirstOrderPhaseCostFunction.h:154
svkMRSFirstOrderPhaseCostFunction Self
Definition: svkMRSFirstOrderPhaseCostFunction.h:65
virtual unsigned int GetNumberOfParameters(void) const
Definition: svkMRSFirstOrderPhaseCostFunction.h:127
Definition: svkMRSFirstOrderPhaseCostFunction.h:60
MeasureType GetFirstOrderPhaseValue0(const ParametersType ¶meters) const
Definition: svkMRSFirstOrderPhaseCostFunction.h:79
void SetLinearPhaseArrays(vtkImageComplex **linearPhaseArrays)
Definition: svkMRSFirstOrderPhaseCostFunction.h:136