ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkWarpHarmonicEnergyCalculator.h>
Public Types | |
typedef ConstNeighborhoodIterator < ImageType > | ConstNeighborhoodIteratorType |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage::ConstPointer | ImageConstPointer |
typedef TInputImage::Pointer | ImagePointer |
typedef TInputImage | ImageType |
typedef TInputImage::IndexType | IndexType |
typedef TInputImage::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef ConstNeighborhoodIteratorType::RadiusType | RadiusType |
typedef TInputImage::RegionType | RegionType |
typedef WarpHarmonicEnergyCalculator | Self |
typedef Object | Superclass |
typedef FixedArray< double, ImageDimension > | WeightsType |
Public Member Functions | |
void | Compute (void) |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual double | GetHarmonicEnergy () const |
virtual const char * | GetNameOfClass () const |
virtual bool | GetUseImageSpacing () const |
virtual void | SetImage (const ImageType *_arg) |
void | SetRegion (const RegionType ®ion) |
void | SetUseImageSpacing (bool) |
void | SetUseImageSpacingOff () |
void | SetUseImageSpacingOn () |
virtual void | SetDerivativeWeights (WeightsType _arg) |
virtual const WeightsType & | GetDerivativeWeights () |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TInputImage::ImageDimension |
static const unsigned int | VectorDimension = PixelType::Dimension |
Protected Member Functions | |
double | EvaluateAtNeighborhood (ConstNeighborhoodIteratorType &it) const |
void | PrintSelf (std::ostream &os, Indent indent) const |
WarpHarmonicEnergyCalculator () | |
virtual | ~WarpHarmonicEnergyCalculator () |
virtual const RadiusType & | GetNeighborhoodRadius () |
virtual void | SetNeighborhoodRadius (RadiusType _arg) |
Private Member Functions | |
void | operator= (const Self &) |
WarpHarmonicEnergyCalculator (const Self &) | |
Private Attributes | |
WeightsType | m_DerivativeWeights |
double | m_HarmonicEnergy |
ImageConstPointer | m_Image |
RadiusType | m_NeighborhoodRadius |
RegionType | m_Region |
bool | m_RegionSetByUser |
bool | m_UseImageSpacing |
Compute the harmonic energy of a deformation field.
This class computes the harmonic energy of a deformation field which is a measure inversely related to the smoothness of the deformation field
This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/510
Definition at line 45 of file itkWarpHarmonicEnergyCalculator.h.
typedef ConstNeighborhoodIterator< ImageType > itk::WarpHarmonicEnergyCalculator< TInputImage >::ConstNeighborhoodIteratorType |
Type of the iterator that will be used to move through the image. Also the type which will be passed to the evaluate function
Definition at line 88 of file itkWarpHarmonicEnergyCalculator.h.
typedef SmartPointer< const Self > itk::WarpHarmonicEnergyCalculator< TInputImage >::ConstPointer |
Reimplemented from itk::Object.
Definition at line 52 of file itkWarpHarmonicEnergyCalculator.h.
typedef TInputImage::ConstPointer itk::WarpHarmonicEnergyCalculator< TInputImage >::ImageConstPointer |
Const Pointer type for the image.
Definition at line 67 of file itkWarpHarmonicEnergyCalculator.h.
typedef TInputImage::Pointer itk::WarpHarmonicEnergyCalculator< TInputImage >::ImagePointer |
Pointer type for the image.
Definition at line 64 of file itkWarpHarmonicEnergyCalculator.h.
typedef TInputImage itk::WarpHarmonicEnergyCalculator< TInputImage >::ImageType |
Type definition for the input image.
Definition at line 58 of file itkWarpHarmonicEnergyCalculator.h.
typedef TInputImage::IndexType itk::WarpHarmonicEnergyCalculator< TInputImage >::IndexType |
Type definition for the input image index type.
Definition at line 73 of file itkWarpHarmonicEnergyCalculator.h.
typedef TInputImage::PixelType itk::WarpHarmonicEnergyCalculator< TInputImage >::PixelType |
Type definition for the input image pixel type.
Definition at line 70 of file itkWarpHarmonicEnergyCalculator.h.
typedef SmartPointer< Self > itk::WarpHarmonicEnergyCalculator< TInputImage >::Pointer |
Reimplemented from itk::Object.
Definition at line 51 of file itkWarpHarmonicEnergyCalculator.h.
typedef ConstNeighborhoodIteratorType::RadiusType itk::WarpHarmonicEnergyCalculator< TInputImage >::RadiusType |
Definition at line 89 of file itkWarpHarmonicEnergyCalculator.h.
typedef TInputImage::RegionType itk::WarpHarmonicEnergyCalculator< TInputImage >::RegionType |
Type definition for the input image region type.
Definition at line 76 of file itkWarpHarmonicEnergyCalculator.h.
typedef WarpHarmonicEnergyCalculator itk::WarpHarmonicEnergyCalculator< TInputImage >::Self |
Standard class typedefs.
Reimplemented from itk::Object.
Definition at line 49 of file itkWarpHarmonicEnergyCalculator.h.
typedef Object itk::WarpHarmonicEnergyCalculator< TInputImage >::Superclass |
Reimplemented from itk::Object.
Definition at line 50 of file itkWarpHarmonicEnergyCalculator.h.
typedef FixedArray< double, ImageDimension > itk::WarpHarmonicEnergyCalculator< TInputImage >::WeightsType |
Definition at line 111 of file itkWarpHarmonicEnergyCalculator.h.
itk::WarpHarmonicEnergyCalculator< TInputImage >::WarpHarmonicEnergyCalculator | ( | ) | [protected] |
virtual itk::WarpHarmonicEnergyCalculator< TInputImage >::~WarpHarmonicEnergyCalculator | ( | ) | [inline, protected, virtual] |
Definition at line 135 of file itkWarpHarmonicEnergyCalculator.h.
itk::WarpHarmonicEnergyCalculator< TInputImage >::WarpHarmonicEnergyCalculator | ( | const Self & | ) | [private] |
void itk::WarpHarmonicEnergyCalculator< TInputImage >::Compute | ( | void | ) |
Compute the minimum and maximum values of intensity of the input image.
virtual::itk::LightObject::Pointer itk::WarpHarmonicEnergyCalculator< TInputImage >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
double itk::WarpHarmonicEnergyCalculator< TInputImage >::EvaluateAtNeighborhood | ( | ConstNeighborhoodIteratorType & | it | ) | const [protected] |
virtual const WeightsType& itk::WarpHarmonicEnergyCalculator< TInputImage >::GetDerivativeWeights | ( | ) | [virtual] |
Directly Set/Get the array of weights used in the gradient calculations. Note that calling UseImageSpacingOn will clobber these values.
virtual double itk::WarpHarmonicEnergyCalculator< TInputImage >::GetHarmonicEnergy | ( | ) | const [virtual] |
Return the smoothness value.
virtual const char* itk::WarpHarmonicEnergyCalculator< TInputImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::Object.
virtual const RadiusType& itk::WarpHarmonicEnergyCalculator< TInputImage >::GetNeighborhoodRadius | ( | ) | [protected, virtual] |
Get/Set the neighborhood radius used for gradient computation
virtual bool itk::WarpHarmonicEnergyCalculator< TInputImage >::GetUseImageSpacing | ( | ) | const [virtual] |
static Pointer itk::WarpHarmonicEnergyCalculator< TInputImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::WarpHarmonicEnergyCalculator< TInputImage >::operator= | ( | const Self & | ) | [private] |
Mutex lock to protect modification to the reference count
Reimplemented from itk::Object.
void itk::WarpHarmonicEnergyCalculator< TInputImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Object.
virtual void itk::WarpHarmonicEnergyCalculator< TInputImage >::SetDerivativeWeights | ( | WeightsType | _arg | ) | [virtual] |
Directly Set/Get the array of weights used in the gradient calculations. Note that calling UseImageSpacingOn will clobber these values.
virtual void itk::WarpHarmonicEnergyCalculator< TInputImage >::SetImage | ( | const ImageType * | _arg | ) | [virtual] |
Set the input image.
virtual void itk::WarpHarmonicEnergyCalculator< TInputImage >::SetNeighborhoodRadius | ( | RadiusType | _arg | ) | [protected, virtual] |
Get/Set the neighborhood radius used for gradient computation
void itk::WarpHarmonicEnergyCalculator< TInputImage >::SetRegion | ( | const RegionType & | region | ) |
Set the region over which the values will be computed
void itk::WarpHarmonicEnergyCalculator< TInputImage >::SetUseImageSpacing | ( | bool | ) |
Set/Get whether or not the filter will use the spacing of the input image in its calculations
void itk::WarpHarmonicEnergyCalculator< TInputImage >::SetUseImageSpacingOff | ( | ) | [inline] |
Reset the derivative weights to ignore image spacing. Use this option if you want to calculate the Jacobian determinant in the image space. Default is ImageSpacingOn.
Definition at line 102 of file itkWarpHarmonicEnergyCalculator.h.
void itk::WarpHarmonicEnergyCalculator< TInputImage >::SetUseImageSpacingOn | ( | ) | [inline] |
Set the derivative weights according to the spacing of the input image (1/spacing). Use this option if you want to calculate the Jacobian determinant in the space in which the data was acquired.
Definition at line 94 of file itkWarpHarmonicEnergyCalculator.h.
const unsigned int itk::WarpHarmonicEnergyCalculator< TInputImage >::ImageDimension = TInputImage::ImageDimension [static] |
The dimensionality of the input image.
Definition at line 80 of file itkWarpHarmonicEnergyCalculator.h.
WeightsType itk::WarpHarmonicEnergyCalculator< TInputImage >::m_DerivativeWeights [private] |
The weights used to scale partial derivatives during processing
Definition at line 158 of file itkWarpHarmonicEnergyCalculator.h.
double itk::WarpHarmonicEnergyCalculator< TInputImage >::m_HarmonicEnergy [private] |
Definition at line 149 of file itkWarpHarmonicEnergyCalculator.h.
ImageConstPointer itk::WarpHarmonicEnergyCalculator< TInputImage >::m_Image [private] |
Definition at line 150 of file itkWarpHarmonicEnergyCalculator.h.
RadiusType itk::WarpHarmonicEnergyCalculator< TInputImage >::m_NeighborhoodRadius [private] |
Definition at line 160 of file itkWarpHarmonicEnergyCalculator.h.
RegionType itk::WarpHarmonicEnergyCalculator< TInputImage >::m_Region [private] |
Definition at line 152 of file itkWarpHarmonicEnergyCalculator.h.
bool itk::WarpHarmonicEnergyCalculator< TInputImage >::m_RegionSetByUser [private] |
Definition at line 153 of file itkWarpHarmonicEnergyCalculator.h.
bool itk::WarpHarmonicEnergyCalculator< TInputImage >::m_UseImageSpacing [private] |
Definition at line 155 of file itkWarpHarmonicEnergyCalculator.h.
const unsigned int itk::WarpHarmonicEnergyCalculator< TInputImage >::VectorDimension = PixelType::Dimension [static] |
Length of the vector pixel type of the input image.
Definition at line 84 of file itkWarpHarmonicEnergyCalculator.h.