18 #ifndef itkWarpHarmonicEnergyCalculator_h
19 #define itkWarpHarmonicEnergyCalculator_h
44 template<
typename TInputImage >
79 itkStaticConstMacro(ImageDimension,
unsigned int,
80 TInputImage::ImageDimension);
83 itkStaticConstMacro(VectorDimension,
unsigned int,
100 void SetUseImageSpacing(
bool);
101 itkGetConstMacro(UseImageSpacing,
bool);
102 itkBooleanMacro(UseImageSpacing);
103 #if !defined(ITK_LEGACY_REMOVE)
106 itkLegacyMacro(
void SetUseImageSpacingOn())
108 this->SetUseImageSpacing(
true);
112 itkLegacyMacro(
void SetUseImageSpacingOff())
114 this->SetUseImageSpacing(
false);
123 itkSetMacro(DerivativeWeights, WeightsType);
124 itkGetConstReferenceMacro(DerivativeWeights, WeightsType);
128 itkSetConstObjectMacro(Image, ImageType);
134 itkGetConstMacro(HarmonicEnergy,
double);
137 void SetRegion(
const RegionType & region);
140 WarpHarmonicEnergyCalculator();
142 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
145 itkGetConstReferenceMacro(NeighborhoodRadius, RadiusType);
146 itkSetMacro(NeighborhoodRadius, RadiusType);
149 double EvaluateAtNeighborhood(ConstNeighborhoodIteratorType & it)
const;
168 #ifndef ITK_MANUAL_INSTANTIATION
169 #include "itkWarpHarmonicEnergyCalculator.hxx"
SmartPointer< Self > Pointer
WarpHarmonicEnergyCalculator Self
Light weight base class for most itk classes.
virtual ~WarpHarmonicEnergyCalculator()
ConstNeighborhoodIteratorType::RadiusType RadiusType
Superclass::RadiusType RadiusType
WeightsType m_DerivativeWeights
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
TInputImage::PixelType PixelType
TInputImage::RegionType RegionType
ConstNeighborhoodIterator< ImageType > ConstNeighborhoodIteratorType
TInputImage::ConstPointer ImageConstPointer
const unsigned int Dimension
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
ImageConstPointer m_Image
Base class for most ITK classes.
TInputImage::IndexType IndexType
TInputImage::Pointer ImagePointer
Compute the harmonic energy of a deformation field.
RadiusType m_NeighborhoodRadius
ImageBaseType::IndexType IndexType