ITK  4.13.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed > Class Template Reference

#include <itkFEMFiniteDifferenceFunctionLoad.h>

+ Inheritance diagram for itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >:
+ Collaboration diagram for itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >:

Detailed Description

template<typename TMoving, typename TFixed>
class itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >

General image pair load that uses the itkFiniteDifferenceFunctions.

This load computes FEM gravity loads by using derivatives provided by itkFiniteDifferenceFunctions (e.g. mean squares intensity difference.) The function responsible for this is called Fg, as required by the FEMLoad standards. It takes a vnl_vector as input. We assume the vector input is of size 2*ImageDimension. The 0 to ImageDimension-1 elements contain the position, p, in the reference (moving) image. The next ImageDimension to 2*ImageDimension-1 elements contain the value of the vector field at that point, v(p). The metrics return both a scalar similarity value and vector-valued derivative. The derivative is what gives us the force to drive the FEM registration. These values are computed with respect to some region in the Fixed image. This region size may be set by the user by calling SetMetricRadius. As the metric derivative computation evolves, performance should improve and more functionality will be available (such as scale selection).

Definition at line 67 of file itkFEMFiniteDifferenceFunctionLoad.h.

Public Types

typedef Float ComputationType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
DemonsRegistrationFunction
< FixedImageType,
MovingImageType,
DisplacementFieldType
DemonsRegistrationFunctionType
 
typedef Image< VectorType,
itkGetStaticConstMacro(ImageDimension)> 
DisplacementFieldType
 
typedef
DisplacementFieldType::Pointer 
DisplacementFieldTypePointer
 
typedef VectorContainer
< ElementIdentifier,
Element::Pointer
ElementContainerType
 
typedef unsigned long ElementIdentifier
 
typedef vnl_vector< FloatFEMVectorType
 
typedef NeighborhoodIterator
< DisplacementFieldType
FieldIteratorType
 
typedef
PDEDeformableRegistrationFunction
< FixedImageType,
MovingImageType,
DisplacementFieldType
FiniteDifferenceFunctionType
 
typedef
FiniteDifferenceFunctionType::Pointer 
FiniteDifferenceFunctionTypePointer
 
typedef
FixedImageType::ConstPointer 
FixedConstPointer
 
typedef TFixed FixedImageType
 
typedef
FixedNeighborhoodIteratorType::IndexType 
FixedNeighborhoodIndexType
 
typedef NeighborhoodIterator
< FixedImageType
FixedNeighborhoodIteratorType
 
typedef FixedImageType::PixelType FixedPixelType
 
typedef FixedImageTypeFixedPointer
 
typedef
FixedNeighborhoodIteratorType::RadiusType 
FixedRadiusType
 
typedef
ImageRegionIteratorWithIndex
< FixedImageType
FixedRegionIteratorType
 
typedef LoadElement::Float Float
 
typedef Image< PixelType,
itkGetStaticConstMacro(ImageDimension)> 
ImageType
 
typedef
MeanSquareRegistrationFunction
< FixedImageType,
MovingImageType,
DisplacementFieldType
MeanSquareRegistrationFunctionType
 
typedef MIRegistrationFunction
< FixedImageType,
MovingImageType,
DisplacementFieldType
MIRegistrationFunctionType
 
typedef
MovingImageType::ConstPointer 
MovingConstPointer
 
typedef TMoving MovingImageType
 
typedef
MovingNeighborhoodIteratorType::IndexType 
MovingNeighborhoodIndexType
 
typedef NeighborhoodIterator
< MovingImageType
MovingNeighborhoodIteratorType
 
typedef MovingImageType::PixelType MovingPixelType
 
typedef MovingImageTypeMovingPointer
 
typedef
MovingNeighborhoodIteratorType::RadiusType 
MovingRadiusType
 
typedef
ImageRegionIteratorWithIndex
< MovingImageType
MovingRegionIteratorType
 
typedef
NCCRegistrationFunction
< FixedImageType,
MovingImageType,
DisplacementFieldType
NCCRegistrationFunctionType
 
typedef Float PixelType
 
typedef SmartPointer< SelfPointer
 
typedef
MovingNeighborhoodIteratorType::RadiusType 
RadiusType
 
typedef
FiniteDifferenceFunctionLoad 
Self
 
typedef LoadElement Superclass
 
typedef
FiniteDifferenceFunctionType::TimeStepType 
TimeStepType
 
typedef itk::Vector< float,
itkGetStaticConstMacro(ImageDimension)> 
VectorType
 
- Public Types inherited from itk::fem::LoadElement
typedef SmartPointer< const SelfConstPointer
 
typedef std::vector< const
Element * > 
ElementPointersVectorType
 
typedef Element::Float Float
 
typedef SmartPointer< SelfPointer
 
typedef LoadElement Self
 
typedef Load Superclass
 
- Public Types inherited from itk::fem::Load
typedef FEMPArray< SelfArrayType
 
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Load Self
 
typedef FEMLightObject Superclass
 
- Public Types inherited from itk::fem::FEMLightObject
typedef Self Baseclass
 
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef FEMLightObject Self
 
typedef itk::LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual void ApplyLoad (Element::ConstPointer element, Element::VectorType &Fe) override
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const override
 
Float EvaluateMetricGivenSolution (ElementContainerType *el, Float step=1.0)
 
FEMVectorType Fe (FEMVectorType)
 
double GetCurrentEnergy ()
 
DisplacementFieldTypePointer GetDisplacementField ()
 
FixedPointer GetFixedImage ()
 
MovingRadiusType GetMetricRadius ()
 
MovingPointer GetMovingImage ()
 
virtual const char * GetNameOfClass () const
 
unsigned int GetNumberOfIntegrationPoints ()
 
virtual Solution::ConstPointer GetSolution () override
 
Float GetSolution (unsigned int i, unsigned int which=0)
 
void InitializeIteration ()
 
void InitializeMetric ()
 
void PrintCurrentEnergy ()
 
void SetCurrentEnergy (double e=0.0)
 
void SetDescentDirectionMaximize ()
 
void SetDescentDirectionMinimize ()
 
void SetDifferenceFunction (FiniteDifferenceFunctionTypePointer drfp)
 
void SetDisplacementField (DisplacementFieldTypePointer df)
 
void SetGamma (Float s)
 
void SetMetric (FiniteDifferenceFunctionTypePointer drfp)
 
void SetMetricRadius (MovingRadiusType T)
 
void SetNumberOfIntegrationPoints (unsigned int i)
 
virtual void SetSolution (Solution::ConstPointer ptr) override
 
void SetMovingImage (MovingImageType *R)
 
void SetFixedImage (FixedImageType *T)
 
- Public Member Functions inherited from itk::fem::LoadElement
void AddNextElement (Element::ConstPointer e)
 
void AddNextElement (Element::Pointer e)
 
Element::ConstPointer GetElement (int i)
 
ElementPointersVectorTypeGetElementArray ()
 
const ElementPointersVectorTypeGetElementArray () const
 
unsigned int GetNumberOfElements ()
 
 LoadElement ()
 
- Public Member Functions inherited from itk::fem::Load
const ElementGetElement () const
 
void SetElement (const Element *el)
 
- Public Member Functions inherited from itk::fem::FEMLightObject
int GetGlobalNumber () const
 
void SetGlobalNumber (int)
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 
virtual void Register () const
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const noexcept
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::fem::LoadElement
static Pointer New ()
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = MovingImageType::ImageDimension
 

Protected Member Functions

virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
- Protected Member Functions inherited from itk::fem::LoadElement
void AddNextElementInternal (const Element *e)
 
- Protected Member Functions inherited from itk::fem::FEMLightObject
 FEMLightObject ()
 
 FEMLightObject (const FEMLightObject &o)
 
virtual ~FEMLightObject () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

 FiniteDifferenceFunctionLoad ()
 

Private Attributes

FiniteDifferenceFunctionTypePointer m_DifferenceFunction
 
DisplacementFieldType::Pointer m_DisplacementField
 
FixedPointer m_FixedImage
 
FixedImageType::SizeType m_FixedSize
 
Float m_Gamma
 
float m_GradSigma
 
MovingRadiusType m_MetricRadius
 
MovingPointer m_MovingImage
 
MovingImageType::SizeType m_MovingSize
 
unsigned int m_NumberOfIntegrationPoints
 
float m_Sign
 
Solution::ConstPointer m_Solution
 
unsigned int m_SolutionIndex
 
unsigned int m_SolutionIndex2
 
float m_WhichMetric
 

Additional Inherited Members

- Protected Attributes inherited from itk::fem::Load
Element::ConstPointer m_Element
 
- Protected Attributes inherited from itk::fem::FEMLightObject
int m_GlobalNumber
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Member Typedef Documentation

template<typename TMoving , typename TFixed >
typedef Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ComputationType

Definition at line 124 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef SmartPointer<const Self> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ConstPointer

Definition at line 75 of file itkFEMFiniteDifferenceFunctionLoad.h.

Definition at line 149 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef Image<VectorType, itkGetStaticConstMacro(ImageDimension)> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::DisplacementFieldType

Definition at line 131 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef DisplacementFieldType::Pointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::DisplacementFieldTypePointer

Definition at line 132 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef VectorContainer<ElementIdentifier, Element::Pointer> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ElementContainerType

Definition at line 158 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef unsigned long itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ElementIdentifier

Definition at line 157 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef vnl_vector<Float> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FEMVectorType

Definition at line 129 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef NeighborhoodIterator<DisplacementFieldType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FieldIteratorType

Definition at line 134 of file itkFEMFiniteDifferenceFunctionLoad.h.

PDEDeformableRegistrationFilterFunction type.

Definition at line 140 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef FiniteDifferenceFunctionType::Pointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FiniteDifferenceFunctionTypePointer

Definition at line 141 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef FixedImageType::ConstPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedConstPointer

Definition at line 96 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef TFixed itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedImageType

Definition at line 94 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef FixedNeighborhoodIteratorType::IndexType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedNeighborhoodIndexType

Definition at line 116 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef NeighborhoodIterator<FixedImageType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedNeighborhoodIteratorType

Definition at line 114 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef FixedImageType::PixelType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedPixelType

Definition at line 122 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef FixedImageType* itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedPointer

Definition at line 95 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef FixedNeighborhoodIteratorType::RadiusType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedRadiusType

Definition at line 118 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef ImageRegionIteratorWithIndex<FixedImageType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedRegionIteratorType

Definition at line 103 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef LoadElement::Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Float

Definition at line 89 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef Image<PixelType, itkGetStaticConstMacro(ImageDimension)> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ImageType

Definition at line 126 of file itkFEMFiniteDifferenceFunctionLoad.h.

Definition at line 146 of file itkFEMFiniteDifferenceFunctionLoad.h.

Definition at line 155 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef MovingImageType::ConstPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingConstPointer

Definition at line 92 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef TMoving itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingImageType

Definition at line 91 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef MovingNeighborhoodIteratorType::IndexType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingNeighborhoodIndexType

Definition at line 108 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef NeighborhoodIterator<MovingImageType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingNeighborhoodIteratorType

Definition at line 106 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef MovingImageType::PixelType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingPixelType

Definition at line 121 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef MovingImageType* itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingPointer

Definition at line 93 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef MovingNeighborhoodIteratorType::RadiusType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingRadiusType

Definition at line 110 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef ImageRegionIteratorWithIndex<MovingImageType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingRegionIteratorType

Definition at line 102 of file itkFEMFiniteDifferenceFunctionLoad.h.

Definition at line 152 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::PixelType

Definition at line 123 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef SmartPointer<Self> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Pointer

Definition at line 74 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef MovingNeighborhoodIteratorType::RadiusType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::RadiusType

Definition at line 112 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef FiniteDifferenceFunctionLoad itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Self

Standard class typedefs.

Definition at line 72 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef LoadElement itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Superclass

Definition at line 73 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef FiniteDifferenceFunctionType::TimeStepType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::TimeStepType

Definition at line 143 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
typedef itk::Vector<float, itkGetStaticConstMacro(ImageDimension)> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::VectorType

Definition at line 128 of file itkFEMFiniteDifferenceFunctionLoad.h.

Constructor & Destructor Documentation

template<typename TMoving , typename TFixed >
itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FiniteDifferenceFunctionLoad ( )
private

Member Function Documentation

template<typename TMoving , typename TFixed >
virtual void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ApplyLoad ( Element::ConstPointer  ,
Element::VectorType  
)
overridevirtual

Apply the load to the specified element

Reimplemented from itk::fem::LoadElement.

template<typename TMoving , typename TFixed >
virtual::itk::LightObject::Pointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::CreateAnother ( void  ) const
overridevirtual

CreateAnother method will clone the existing instance of this type, including its internal member variables.

Reimplemented from itk::fem::LoadElement.

template<typename TMoving , typename TFixed >
Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::EvaluateMetricGivenSolution ( ElementContainerType el,
Float  step = 1.0 
)
template<typename TMoving , typename TFixed >
FEMVectorType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Fe ( FEMVectorType  )

Compute the image based load - implemented with ITK metric derivatives.

template<typename TMoving , typename TFixed >
double itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetCurrentEnergy ( )
template<typename TMoving , typename TFixed >
DisplacementFieldTypePointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetDisplacementField ( void  )
inline

Get the displacement field.

Definition at line 292 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
FixedPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetFixedImage ( void  )
inline

Definition at line 211 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
MovingRadiusType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetMetricRadius ( )
inline

Get the metric region size.

Definition at line 223 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
MovingPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetMovingImage ( void  )
inline

Definition at line 206 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
virtual const char* itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::fem::LoadElement.

template<typename TMoving , typename TFixed >
unsigned int itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetNumberOfIntegrationPoints ( )
inline

Definition at line 237 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
virtual Solution::ConstPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetSolution ( )
inlineoverridevirtual

Reimplemented from itk::fem::Load.

Definition at line 266 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetSolution ( unsigned int  i,
unsigned int  which = 0 
)
inline

Definition at line 272 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::InitializeIteration ( )
template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::InitializeMetric ( )
template<typename TMoving , typename TFixed >
static Pointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::New ( )
static

New macro for creation of through the object factory.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::PrintCurrentEnergy ( )
template<typename TMoving , typename TFixed >
virtual void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

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::fem::LoadElement.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetCurrentEnergy ( double  e = 0.0)
template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetDescentDirectionMaximize ( )
inline

Definition at line 250 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetDescentDirectionMinimize ( )
inline

Set/Get the direction of the gradient (uphill or downhill). E.g. the mean squares metric should be minimized while NCC and PR should be maximized.260

Definition at line 245 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetDifferenceFunction ( FiniteDifferenceFunctionTypePointer  drfp)
inline

Definition at line 164 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetDisplacementField ( DisplacementFieldTypePointer  df)
inline

Set the displacement field.

Definition at line 286 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetFixedImage ( FixedImageType T)
inline

Define the target (fixed) image.

Definition at line 195 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetGamma ( Float  s)
inline

Scaling of the similarity energy term.

Definition at line 256 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetMetric ( FiniteDifferenceFunctionTypePointer  drfp)
inline
template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetMetricRadius ( MovingRadiusType  T)
inline

Define the metric region size.

Definition at line 217 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetMovingImage ( MovingImageType R)
inline

Define the reference (moving) image.

Definition at line 183 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetNumberOfIntegrationPoints ( unsigned int  i)
inline

Set/Get methods for the number of integration points to use in each 1-dimensional line integral when evaluating the load. This value is passed to the load implementation.

Definition at line 232 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
virtual void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetSolution ( Solution::ConstPointer  )
inlineoverridevirtual

Sets the pointer to solution vector. This function is automatically called by the Solver class on every load object.

Some types of external Loads may need access to previous values of solution vector. If a derived class needs that, it should implement this function, and store the passed pointer accordingly. If the result vector is not required, the functionn should be left unimplemented, so that only the dummy implementation in base class is called.

param ptr Pointer to the object of Solution class.

Reimplemented from itk::fem::Load.

Definition at line 261 of file itkFEMFiniteDifferenceFunctionLoad.h.

Member Data Documentation

template<typename TMoving , typename TFixed >
const unsigned int itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ImageDimension = MovingImageType::ImageDimension
static

Dimensionality of input and output data is assumed to be the same.

Definition at line 100 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
FiniteDifferenceFunctionTypePointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_DifferenceFunction
private

Definition at line 332 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
DisplacementFieldType::Pointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_DisplacementField
private

Definition at line 334 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
FixedPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_FixedImage
private

Definition at line 317 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
FixedImageType::SizeType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_FixedSize
private

Definition at line 323 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_Gamma
private

Definition at line 327 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_GradSigma
private

Definition at line 329 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
MovingRadiusType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_MetricRadius
private

Used by the metric to set the region size for the fixed image.

Definition at line 320 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
MovingPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_MovingImage
private

Definition at line 316 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
MovingImageType::SizeType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_MovingSize
private

Definition at line 322 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
unsigned int itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_NumberOfIntegrationPoints
private

Definition at line 324 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_Sign
private

Definition at line 330 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
Solution::ConstPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_Solution
private

Definition at line 328 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
unsigned int itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_SolutionIndex
private

Definition at line 325 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
unsigned int itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_SolutionIndex2
private

Definition at line 326 of file itkFEMFiniteDifferenceFunctionLoad.h.

template<typename TMoving , typename TFixed >
float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::m_WhichMetric
private

Definition at line 331 of file itkFEMFiniteDifferenceFunctionLoad.h.


The documentation for this class was generated from the following file: