Shapeworks Studio
2.1
Shape analysis software suite
|
#include <itkPSMGradientDescentOptimizer.h>
Public Types | |
typedef PSMGradientDescentOptimizer | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef WeakPointer< const Self > | ConstWeakPointer |
typedef PSMImageDomainWithGradients< TGradientNumericType, VDimension > | DomainType |
typedef PSMParticleSystem< VDimension > | ParticleSystemType |
typedef PSMCostFunction< VDimension > | CostFunctionType |
typedef CostFunctionType::VectorType | VectorType |
typedef ParticleSystemType::PointType | PointType |
Public Member Functions | |
itkNewMacro (Self) | |
itkTypeMacro (PSMGradientDescentOptimizer, Object) | |
itkStaticConstMacro (Dimension, unsigned int, VDimension) | |
void | StartOptimization () |
void | StartJacobiOptimization () |
void | StartGaussSeidelOptimization () |
void | SetModeToGaussSeidel () |
void | SetModeToJacobi () |
void | StopOptimization () |
itkGetMacro (NumberOfIterations, unsigned int) | |
itkSetMacro (NumberOfIterations, unsigned int) | |
itkGetMacro (TimeStep, double) | |
itkSetMacro (TimeStep, double) | |
itkGetMacro (MaximumNumberOfIterations, unsigned int) | |
itkSetMacro (MaximumNumberOfIterations, unsigned int) | |
itkGetMacro (Tolerance, double) | |
itkSetMacro (Tolerance, double) | |
itkGetObjectMacro (ParticleSystem, ParticleSystemType) | |
itkSetObjectMacro (ParticleSystem, ParticleSystemType) | |
itkGetObjectMacro (CostFunction, CostFunctionType) | |
itkSetObjectMacro (CostFunction, CostFunctionType) | |
Protected Member Functions | |
PSMGradientDescentOptimizer (const PSMGradientDescentOptimizer &) | |
const PSMGradientDescentOptimizer & | operator= (const PSMGradientDescentOptimizer &) |
void | PrintSelf (std::ostream &os, Indent indent) const |
This class optimizes a list of particle system positions with respect to a specified energy function using a simple gradient descent strategy. A function which computes the gradient of the function with respect to particle position must be specified. The optimization performs Jacobi updates (each particle position is changed as soon as its new position is computed).
Definition at line 45 of file itkPSMGradientDescentOptimizer.h.
typedef PSMCostFunction<VDimension> itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::CostFunctionType |
Type of the gradient function.
Definition at line 71 of file itkPSMGradientDescentOptimizer.h.
typedef PSMImageDomainWithGradients<TGradientNumericType, VDimension> itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::DomainType |
Type of the domain.
Definition at line 59 of file itkPSMGradientDescentOptimizer.h.
typedef PSMParticleSystem<VDimension> itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::ParticleSystemType |
Particle System type is based on the dimensionality.
Definition at line 68 of file itkPSMGradientDescentOptimizer.h.
typedef ParticleSystemType::PointType itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::PointType |
Point Type
Definition at line 77 of file itkPSMGradientDescentOptimizer.h.
typedef PSMGradientDescentOptimizer itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::Self |
Standard class typedefs
Definition at line 49 of file itkPSMGradientDescentOptimizer.h.
typedef CostFunctionType::VectorType itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::VectorType |
Numerical vector type.
Definition at line 74 of file itkPSMGradientDescentOptimizer.h.
itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::itkGetMacro | ( | NumberOfIterations | , |
unsigned | int | ||
) |
Get/Set the number of iterations performed by the solver.
itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::itkGetMacro | ( | TimeStep | , |
double | |||
) |
Get/Set a time step parameter for the update. Each update is simply scaled by this value.
itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::itkGetMacro | ( | MaximumNumberOfIterations | , |
unsigned | int | ||
) |
Get/Set the maximum iterations to allow this solver to use.
itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::itkGetMacro | ( | Tolerance | , |
double | |||
) |
Get/Set the precision of the solution.
itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::itkGetObjectMacro | ( | ParticleSystem | , |
ParticleSystemType | |||
) |
Get/Set the ParticleSystem modified by this optimizer.
itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::itkGetObjectMacro | ( | CostFunction | , |
CostFunctionType | |||
) |
Get/Set the gradient function used by this optimizer.
itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::itkNewMacro | ( | Self | ) |
Method for creation through the object factory.
itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::itkStaticConstMacro | ( | Dimension | , |
unsigned | int, | ||
VDimension | |||
) |
Dimensionality of the domain of the particle system.
itk::PSMGradientDescentOptimizer< TGradientNumericType, VDimension >::itkTypeMacro | ( | PSMGradientDescentOptimizer< TGradientNumericType, VDimension > | , |
Object | |||
) |
Run-time type information (and related methods).
|
inline |
Start the optimization.
Definition at line 80 of file itkPSMGradientDescentOptimizer.h.
|
inline |
Stop the optimization. This method sets a flag that aborts the StartOptimization method after the current iteration.
Definition at line 94 of file itkPSMGradientDescentOptimizer.h.