#include <itkFEMFiniteDifferenceFunctionLoad.h>
Inheritance diagram for itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >:
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 64 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef FEMPArray<Self> itk::fem::Load::ArrayType [inherited] |
Array class that holds special pointers to the load objects
Definition at line 45 of file itkFEMLoadBase.h.
typedef Self itk::fem::FEMLightObject::Baseclass [inherited] |
Store the base class typedef for easy access from derived classes. FEM_CLASS macro also expects this for the FEMOF...
Definition at line 67 of file itkFEMLightObject.h.
typedef Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ComputationType |
Definition at line 107 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef const Self* itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ConstPointer |
Const pointer or SmartPointer to an object.
Reimplemented from itk::fem::LoadElement.
Definition at line 66 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef Image< VectorType, itkGetStaticConstMacro(ImageDimension) > itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::DeformationFieldType |
Definition at line 111 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef DeformationFieldType::Pointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::DeformationFieldTypePointer |
Definition at line 112 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef DemonsRegistrationFunction<FixedImageType,MovingImageType, DeformationFieldType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::DemonsRegistrationFunctionType |
Definition at line 130 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef std::vector<Element::ConstPointer> itk::fem::LoadElement::ElementPointersVectorType [inherited] |
Type of array of pointers to element objects
Definition at line 57 of file itkFEMLoadElementBase.h.
typedef vnl_vector<Float> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FEMVectorType |
Definition at line 110 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef NeighborhoodIterator<DeformationFieldType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FieldIteratorType |
Definition at line 116 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef PDEDeformableRegistrationFunction<FixedImageType,MovingImageType, DeformationFieldType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FiniteDifferenceFunctionType |
PDEDeformableRegistrationFilterFunction type.
Definition at line 122 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef FiniteDifferenceFunctionType::Pointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FiniteDifferenceFunctionTypePointer |
Definition at line 123 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef FixedImageType::ConstPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedConstPointer |
Definition at line 77 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef TFixed itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedImageType |
Definition at line 75 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef FixedNeighborhoodIteratorType::IndexType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedNeighborhoodIndexType |
Definition at line 98 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef NeighborhoodIterator<FixedImageType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedNeighborhoodIteratorType |
Definition at line 96 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef FixedImageType::PixelType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedPixelType |
Definition at line 105 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef FixedImageType* itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedPointer |
Definition at line 76 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef FixedNeighborhoodIteratorType::RadiusType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedRadiusType |
Definition at line 100 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef ImageRegionIteratorWithIndex<FixedImageType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FixedRegionIteratorType |
Definition at line 84 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef LoadElement::Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Float |
Float type used in Element and derived classes
Reimplemented from itk::fem::LoadElement.
Definition at line 70 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef Image< PixelType, itkGetStaticConstMacro(ImageDimension) > itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ImageType |
Definition at line 108 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef MeanSquareRegistrationFunction<FixedImageType,MovingImageType, DeformationFieldType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MeanSquareRegistrationFunctionType |
Definition at line 127 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef MIRegistrationFunction<FixedImageType,MovingImageType, DeformationFieldType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MIRegistrationFunctionType |
Definition at line 136 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef MovingImageType::ConstPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingConstPointer |
Definition at line 73 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef TMoving itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingImageType |
Definition at line 72 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef MovingNeighborhoodIteratorType::IndexType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingNeighborhoodIndexType |
Definition at line 90 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef NeighborhoodIterator<MovingImageType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingNeighborhoodIteratorType |
Definition at line 88 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef MovingImageType::PixelType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingPixelType |
Definition at line 104 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef MovingImageType* itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingPointer |
Definition at line 74 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef MovingNeighborhoodIteratorType::RadiusType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingRadiusType |
Definition at line 92 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef ImageRegionIteratorWithIndex<MovingImageType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::MovingRegionIteratorType |
Definition at line 83 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef NCCRegistrationFunction<FixedImageType,MovingImageType, DeformationFieldType> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::NCCRegistrationFunctionType |
Definition at line 133 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::PixelType |
Definition at line 106 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef Self* itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Pointer |
Pointer or SmartPointer to an object.
Reimplemented from itk::fem::LoadElement.
Definition at line 66 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef MovingNeighborhoodIteratorType::RadiusType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::RadiusType |
Definition at line 94 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef FiniteDifferenceFunctionLoad itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Self |
Standard Self typedef.
Reimplemented from itk::fem::LoadElement.
Definition at line 66 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef LoadElement itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Superclass |
Standard Superclass typedef.
Reimplemented from itk::fem::LoadElement.
Definition at line 66 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef FiniteDifferenceFunctionType::TimeStepType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::TimeStepType |
Definition at line 124 of file itkFEMFiniteDifferenceFunctionLoad.h.
typedef itk::Vector<float,itkGetStaticConstMacro(ImageDimension)> itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::VectorType |
Definition at line 109 of file itkFEMFiniteDifferenceFunctionLoad.h.
itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::FiniteDifferenceFunctionLoad | ( | ) |
virtual int itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::ClassID | ( | ) | const [inline, virtual] |
Virtual function to access the class ID
Reimplemented from itk::fem::LoadElement.
Definition at line 66 of file itkFEMFiniteDifferenceFunctionLoad.h.
virtual Baseclass::Pointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Clone | ( | ) | const [virtual] |
Create a new object from the existing one
Reimplemented from itk::fem::LoadElement.
static FEMLightObject::Pointer itk::fem::FEMLightObject::CreateFromStream | ( | std::istream & | f, | |
void * | info | |||
) | [static, inherited] |
Read object of any derived type from stream.
This static function creates an object of a class, which is derived from FEMLightObject. The class of object is first determined from the stream, then the object of that class is constructed using the FEMObjectFactory. Finally the data for this object is read from the stream, by calling the Read() member function.
Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::EvaluateMetricGivenSolution | ( | Element::ArrayType * | el, | |
Float | step = 1.0 | |||
) |
FEMVectorType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Fe | ( | FEMVectorType | , | |
FEMVectorType | ||||
) |
VectorType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::Fe1 | ( | VectorType | ) |
Compute the image based load - implemented with ITK metric derivatives.
double itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetCurrentEnergy | ( | ) |
DeformationFieldTypePointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetDeformationField | ( | ) | [inline] |
Get the
Definition at line 242 of file itkFEMFiniteDifferenceFunctionLoad.h.
FixedPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetFixedImage | ( | ) | [inline] |
Definition at line 186 of file itkFEMFiniteDifferenceFunctionLoad.h.
MovingRadiusType itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetMetricRadius | ( | ) | [inline] |
Get the metric region size.
Definition at line 192 of file itkFEMFiniteDifferenceFunctionLoad.h.
MovingPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetMovingImage | ( | ) | [inline] |
Definition at line 185 of file itkFEMFiniteDifferenceFunctionLoad.h.
unsigned int itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetNumberOfIntegrationPoints | ( | ) | [inline] |
Definition at line 199 of file itkFEMFiniteDifferenceFunctionLoad.h.
Float itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetSolution | ( | unsigned int | i, | |
unsigned int | which = 0 | |||
) | [inline] |
Definition at line 218 of file itkFEMFiniteDifferenceFunctionLoad.h.
Solution::ConstPointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::GetSolution | ( | ) | [inline, virtual] |
Reimplemented from itk::fem::Load.
Definition at line 215 of file itkFEMFiniteDifferenceFunctionLoad.h.
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::InitializeIteration | ( | ) |
Get the
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::InitializeMetric | ( | ) |
Get the
itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::itkStaticConstMacro | ( | ImageDimension | , | |
unsigned | int, | |||
MovingImageType::ImageDimension | ||||
) |
Dimensionality of input and output data is assumed to be the same.
static Self::Pointer itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::New | ( | void | ) | [inline, static] |
Object creation in an itk compatible way
Reimplemented from itk::fem::LoadElement.
Definition at line 66 of file itkFEMFiniteDifferenceFunctionLoad.h.
static Baseclass* itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::NewFiniteDifferenceFunctionLoad | ( | void | ) | [inline, static] |
Definition at line 233 of file itkFEMFiniteDifferenceFunctionLoad.h.
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::PrintCurrentEnergy | ( | ) |
virtual void itk::fem::LoadElement::Read | ( | std::istream & | f, | |
void * | info | |||
) | [virtual, inherited] |
pointers to element objects on which the load acts
Reimplemented from itk::fem::FEMLightObject.
Reimplemented in itk::fem::LoadEdge, itk::fem::LoadGravConst, itk::fem::LoadLandmark, and itk::fem::LoadTest< TClass >.
Referenced by itk::fem::LoadTest< TClass >::Read().
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetCurrentEnergy | ( | double | e = 0.0 |
) |
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetDeformationField | ( | DeformationFieldTypePointer | df | ) | [inline] |
Set the
Definition at line 238 of file itkFEMFiniteDifferenceFunctionLoad.h.
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetDifferenceFunction | ( | FiniteDifferenceFunctionTypePointer | drfp | ) | [inline] |
Definition at line 143 of file itkFEMFiniteDifferenceFunctionLoad.h.
Referenced by itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetMetric().
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetFixedImage | ( | FixedImageType * | T | ) | [inline] |
Define the target (fixed) image.
Definition at line 175 of file itkFEMFiniteDifferenceFunctionLoad.h.
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetGamma | ( | Float | s | ) | [inline] |
Scaling of the similarity energy term
Definition at line 212 of file itkFEMFiniteDifferenceFunctionLoad.h.
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetMetric | ( | FiniteDifferenceFunctionTypePointer | drfp | ) | [inline] |
Definition at line 153 of file itkFEMFiniteDifferenceFunctionLoad.h.
References itk::SmartPointer< TObjectType >::GetPointer(), and itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetDifferenceFunction().
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetMetricRadius | ( | MovingRadiusType | T | ) | [inline] |
Define the metric region size.
Definition at line 189 of file itkFEMFiniteDifferenceFunctionLoad.h.
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetMovingImage | ( | MovingImageType * | R | ) | [inline] |
Define the reference (moving) image.
Definition at line 164 of file itkFEMFiniteDifferenceFunctionLoad.h.
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 198 of file itkFEMFiniteDifferenceFunctionLoad.h.
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetSign | ( | Float | s | ) | [inline] |
Set the direction of the gradient (uphill or downhill). E.g. the mean squares metric should be minimized while NCC and PR should be maximized.
Definition at line 205 of file itkFEMFiniteDifferenceFunctionLoad.h.
virtual void itk::fem::Load::SetSolution | ( | Solution::ConstPointer | ) | [inline, virtual, inherited] |
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.
ptr | Pointer to the object of Solution class. |
Definition at line 59 of file itkFEMLoadBase.h.
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetSolution | ( | Solution::ConstPointer | ptr | ) | [inline] |
Definition at line 214 of file itkFEMFiniteDifferenceFunctionLoad.h.
void itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetTemp | ( | Float | s | ) | [inline] |
Set the sigma in a gaussian measure.
Definition at line 208 of file itkFEMFiniteDifferenceFunctionLoad.h.
static void itk::fem::FEMLightObject::SkipWhiteSpace | ( | std::istream & | f | ) | [static, inherited] |
Helper function that skips all the whitespace and comments in an input stream.
void itk::fem::LoadElement::Write | ( | std::ostream & | f | ) | const [virtual, inherited] |
Write an object to the output stream. Call this member to write the data members in the current object to the output stream. Here we also need to know which derived class we actually are, so that we can write the class name. The class name is obtained by calling the virtual ClassID() member function and passing the result to the FEMObjectFactory.
Implementations of Write member funtion in derived classes should first call the parent's implementation of Write and finaly write whatever they need.
Reimplemented from itk::fem::FEMLightObject.
Reimplemented in itk::fem::LoadEdge, itk::fem::LoadGravConst, itk::fem::LoadLandmark, and itk::fem::LoadTest< TClass >.
Referenced by itk::fem::LoadTest< TClass >::Write().
const int itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::CLID [static] |
Class ID for FEM object factory
Reimplemented from itk::fem::LoadElement.
Definition at line 66 of file itkFEMFiniteDifferenceFunctionLoad.h.
int itk::fem::FEMLightObject::GN [inherited] |
Global number of an object (ID of an object) In general the ID's are required to be unique only within a specific type of derived classes (Elements, Nodes, ...) If the GN is not required, it can be ignored. (normally you need the GN when writing or reading objects to/from stream.
Definition at line 168 of file itkFEMLightObject.h.
Referenced by itk::fem::FEMLightObject::FEMLightObject().
const std::string itk::fem::FEMLightObject::whitespaces [static, inherited] |
Const string of all whitespace characters. This string is used by SkipWhiteSpace function.
Definition at line 138 of file itkFEMLightObject.h.