18 #ifndef itkCentralDifferenceImageFunction_h
19 #define itkCentralDifferenceImageFunction_h
73 template <
typename TInputImage,
74 typename TCoordRep = float,
75 typename TOutputType = CovariantVector<double, TInputImage::ImageDimension>>
82 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
106 using typename Superclass::OutputType;
121 using typename Superclass::ContinuousIndexType;
135 SetInputImage(
const TInputImage * inputData)
override;
156 EvaluateAtIndex(
const IndexType & index)
const override;
202 itkSetMacro(UseImageDirection,
bool);
203 itkGetConstMacro(UseImageDirection,
bool);
204 itkBooleanMacro(UseImageDirection);
211 PrintSelf(std::ostream & os,
Indent indent)
const override;
215 template <
typename T>
222 template <
typename Type>
224 EvaluateAtIndexSpecialized(
const IndexType & index,
229 template <
typename Type>
231 EvaluateAtIndexSpecialized(
const IndexType & index,
236 template <
typename Type>
243 template <
typename Type>
251 template <
typename Type>
258 template <
typename Type>
264 bool m_UseImageDirection{
true };
271 #ifndef ITK_MANUAL_INSTANTIATION
272 # include "itkCentralDifferenceImageFunction.hxx"