17 #ifndef itkSingleImageCostFunction_h
18 #define itkSingleImageCostFunction_h
51 template <
class TImage>
88 static constexpr
unsigned int ImageDimension = ImageType::ImageDimension;
119 unsigned int GetNumberOfParameters(
void)
const override
120 {
return ImageDimension; }
124 MeasureType GetValue(
const ParametersType & parameters )
const override;
128 void GetDerivative(
const ParametersType & parameters,
129 DerivativeType & derivative )
const override;
135 m_OutsideValue = itk::NumericTraits< ImagePixelType >::max();
139 m_OutsideValue = itk::NumericTraits< ImagePixelType >::NonpositiveMin();
146 void PrintSelf(std::ostream& os,
Indent indent)
const override;
160 #ifndef ITK_MANUAL_INSTANTIATION
161 #include "itkSingleImageCostFunction.hxx"
Array class with size defined at construction time.
typename TImage::PixelType ImagePixelType
This class is a cost function which queries an underlying image for the single value.
This class is a base for the CostFunctions returning a single value.
Light weight base class for most itk classes.
~SingleImageCostFunction() override
Represent a n-dimensional index in a n-dimensional image.
Calculate the derivative by central differencing in physical space.
typename ImageType::ConstPointer ImageConstPointer
ImagePixelType m_OutsideValue
Standard exception handling object.
ImageConstPointer m_Image
Superclass::ParametersValueType CoordRepType
GradientImageFunctionType::Pointer m_GradientImageFunction
Linearly interpolate an image at specified positions.
Base class for all image interpolaters.
A templated class holding a point in n-Dimensional image space.
Control indentation during Print() invocation.
InterpolatorType::Pointer m_Interpolator
A templated class holding a geometric point in n-Dimensional space.
Templated n-dimensional image class.