#include <itkShapePriorMAPCostFunction.h>
Inheritance diagram for itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >:


This class follows the shape and pose parameters estimation developed in [1]. Note that this class returns the negative log of the MAP function. Using the negative function make this cost function compatible with generic optimizers which seeks the minimum of a cost function.
This class has two template parameters, the feature image type representing the edge potential map and the pixel type used to represent the output level set in the ShapePriorSegmentationLevelSetImageFilter.
Definition at line 49 of file itkShapePriorMAPCostFunction.h.
Public Types | |
| typedef Array< double > | ArrayType |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef Superclass::DerivativeType | DerivativeType |
| typedef Superclass::FeatureImagePointer | FeatureImagePointer |
| typedef Superclass::FeatureImageType | FeatureImageType |
| typedef Superclass::MeasureType | MeasureType |
| typedef NodeContainerType::ConstPointer | NodeContainerPointer |
| typedef Superclass::NodeContainerType | NodeContainerType |
| typedef Superclass::NodeType | NodeType |
| typedef Superclass::ParametersType | ParametersType |
| typedef double | ParametersValueType |
| typedef Superclass::PixelType | PixelType |
| typedef SmartPointer< Self > | Pointer |
| typedef ShapePriorMAPCostFunction | Self |
| typedef ShapeFunctionType::Pointer | ShapeFunctionPointer |
| typedef Superclass::ShapeFunctionType | ShapeFunctionType |
| typedef ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel > | Superclass |
Public Member Functions | |
| virtual MeasureType | ComputeLogGradientTerm (const ParametersType ¶meters) const |
| virtual MeasureType | ComputeLogInsideTerm (const ParametersType ¶meters) const |
| virtual MeasureType | ComputeLogPosePriorTerm (const ParametersType ¶meters) const |
| virtual MeasureType | ComputeLogShapePriorTerm (const ParametersType ¶meters) const |
| virtual LightObject::Pointer | CreateAnother () const |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| virtual void | Delete () |
| virtual const NodeContainerType * | GetActiveRegion () |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| virtual void | GetDerivative (const ParametersType &, DerivativeType &) const |
| virtual const FeatureImageType * | GetFeatureImage () |
| const MetaDataDictionary & | GetMetaDataDictionary (void) const |
| MetaDataDictionary & | GetMetaDataDictionary (void) |
| virtual unsigned long | GetMTime () const |
| virtual const char * | GetNameOfClass () const |
| virtual unsigned int | GetNumberOfParameters (void) const |
| virtual int | GetReferenceCount () const |
| virtual ShapeFunctionType * | GetShapeFunction () |
| virtual ArrayType | GetShapeParameterMeans () |
| virtual ArrayType | GetShapeParameterStandardDeviations () |
| virtual MeasureType | GetValue (const ParametersType ¶meters) const |
| This method returns the value and derivative of the cost function corresponding *to the specified parameters *virtual void | GetValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const |
| virtual const WeightsType & | GetWeights () |
| bool | HasObserver (const EventObject &event) const |
| virtual void | Initialize (void) throw ( ExceptionObject ) |
| void | InvokeEvent (const EventObject &) const |
| void | InvokeEvent (const EventObject &) |
| itkStaticConstMacro (ImageDimension, unsigned int, TFeatureImage::ImageDimension) | |
| virtual void | Modified () const |
| void | Print (std::ostream &os, Indent indent=0) const |
| virtual void | Register () const |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) |
| Set Get the active region *virtual void | SetActiveRegion (const NodeContainerType *_arg) |
| void | SetDebug (bool debugFlag) const |
| Set Get the feature image *virtual void | SetFeatureImage (const FeatureImageType *_arg) |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| virtual void | SetReferenceCount (int) |
| Set Get the shape distance function *virtual void | SetShapeFunction (ShapeFunctionType *_arg) |
| Set Get the array of shape parameters mean *virtual void | SetShapeParameterMeans (ArrayType _arg) |
| Set Get the array of shape parameters standard deviation *virtual void | SetShapeParameterStandardDeviations (ArrayType _arg) |
| virtual void | SetWeights (WeightsType _arg) |
| virtual void | UnRegister () const |
Static Public Member Functions | |
| static void | BreakOnError () |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| This is a global flag that controls whether any warning *or error messages are displayed *static void | SetGlobalWarningDisplay (bool flag) |
Public Attributes | |
| Allow people to add remove invoke observers(callbacks) to any ITK *object.This is an implementation of the subject/observer design *pattern.An observer is added by specifying an event to respond to *and an itk unsigned lon | AddObserver )(const EventObject &event, Command *) const |
| This is a global flag that controls whether any | debug |
| Set Get the weights for each term Default is a vector of all ones *The weights are applied to terms in the following | LogGradientTerm |
| Set Get the weights for each term Default is a vector of all ones *The weights are applied to terms in the following | order: * LogInsideTerm |
| Set Get the weights for each term Default is a vector of all ones *The weights are applied to terms in the following LogShapePriorTerm and LogPosePriorTerm *typedef FixedArray< double, 4 > | WeightsType |
Protected Member Functions | |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| void | PrintSelf (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
| ShapePriorMAPCostFunction () | |
| virtual | ~ShapePriorMAPCostFunction () |
Protected Attributes | |
| NodeContainerPointer | m_ActiveRegion |
| FeatureImagePointer | m_FeatureImage |
| int | m_ReferenceCount |
| SimpleFastMutexLock | m_ReferenceCountLock |
| ShapeFunctionPointer | m_ShapeFunction |
| Methods invoked by virtual 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.*/virtual void PrintSelf(std voi | PrintHeader )(std::ostream &os, Indent indent) const |
|
|||||
|
Type of the array for storing shape parameter mean and standard deivation. Definition at line 92 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 57 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
DerivativeType typedef. It defines a type used to return the cost function derivative. Reimplemented from itk::SingleValuedCostFunction. Definition at line 66 of file itkShapePriorMAPCostFunctionBase.h. |
|
|||||
|
Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 71 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Type of the feature image representing the edge potential map. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 70 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Type of the return measure value. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 74 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Definition at line 87 of file itkShapePriorMAPCostFunctionBase.h. |
|
|||||
|
Type of container used to store the level set nodes. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 86 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Type of node used to represent the active region around the zero set. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 83 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
ParametersType typedef. It defines a position in the optimization search space. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 63 of file itkShapePriorMAPCostFunction.h. |
|
|
ParametersType typedef. It defines a position in the optimization search space. Definition at line 46 of file itkCostFunction.h. |
|
|||||
|
Type of pixel used to represent the level set. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 80 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 56 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Standard class typedefs. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 54 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Definition at line 92 of file itkShapePriorMAPCostFunctionBase.h. |
|
|||||
|
Type of the shape signed distance function. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 89 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. Definition at line 55 of file itkShapePriorMAPCostFunction.h. |
|
|||||||||
|
|
|
|||||||||
|
Definition at line 143 of file itkShapePriorMAPCostFunction.h. |
|
|
This method is called when itkExceptionMacro executes. It allows the debugger to break on error. |
|
||||||||||
|
Compute the gradient term component of the MAP cost function. In particular, this method assume that ( 1 - FeatureImage ) approximates a Gaussian (zero mean, unit variance) algon the normal of the evolving contour. The gradient term is then given by a Laplacian of the goodness of fit of the Gaussian. Implements itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. |
|
||||||||||
|
Compute the inside term component of the MAP cost function. In particular, the method sums the number of pixels inside the current contour (defined by nodes of the active region that are less than zero) which are outside the shape specified by the input parameters. Implements itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. |
|
||||||||||
|
Compute the pose prior component of the MAP cost function. In particular, this method assumes that the pose parameters are uniformly distributed and returns a constant of zero. Implements itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. |
|
||||||||||
|
Compute the shape prior component of the MAP cost function. In particular, the method assumes that the shape parameters comes from independent Gaussian distributions defined by the ShapeParameterMeans and ShapeParameterVariances array. Implements itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. |
|
|
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::LightObject. |
|
|
Turn debugging output off. |
|
|
Turn debugging output on. |
|
|
Delete an itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting. |
|
|||||||||
|
|
|
|
Get the command associated with the given tag. NOTE: This returns a pointer to a Command, but it is safe to asign this to a Command::Pointer. Since Command inherits from LightObject, at this point in the code, only a pointer or a reference to the Command can be used. |
|
|
Get the value of the debug flag. |
|
||||||||||||||||
|
This method returns the derivative of the cost function corresponding to the specified parameters. Implements itk::SingleValuedCostFunction. Definition at line 116 of file itkShapePriorMAPCostFunctionBase.h. References itkExceptionMacro. |
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||
|
Run-time type information (and related methods). Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. |
|
||||||||||
|
Return the number of parameters. Implements itk::CostFunction. Definition at line 120 of file itkShapePriorMAPCostFunctionBase.h. |
|
|
Gets the reference count on this object. Definition at line 98 of file itkLightObject.h. |
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
This method returns the value of the cost function corresponding to the specified parameters. Implements itk::SingleValuedCostFunction. |
|
||||||||||||||||
|
|||||||||
|
|
|
|
Definition at line 100 of file itkObject.h. References itk::Object::SetGlobalWarningDisplay(). |
|
|
Definition at line 98 of file itkObject.h. References itk::Object::SetGlobalWarningDisplay(). |
|
|
Return true if an observer is registered for this event. |
|
||||||||||
|
Initialize the cost function by making sure that all the components are present. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. |
|
|
Call Execute on all the Commands observing this event id. The actions triggered by this call doesn't modify this object. |
|
|
Call Execute on all the Commands observing this event id. |
|
||||||||||||||||||||
|
Dimension constant. Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. |
|
|
|||||||||
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
||||||||||||
|
Cause the object to print itself out. |
|
||||||||||||
|
|
|
||||||||||||||||
|
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::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >. |
|
||||||||||||
|
|
|
|
Increase the reference count (mark as used by another object). Reimplemented from itk::LightObject. |
|
|
Remove all observers . |
|
|
Remove the observer with this tag value. |
|
||||||||||
|
|
|
|
Set the value of the debug flag. A non-zero value turns debugging on. |
|
||||||||||
|
|
|
|
Referenced by itk::Object::GlobalWarningDisplayOff(), and itk::Object::GlobalWarningDisplayOn(). |
|
|
|
|
|
Sets the reference count (use with care) Reimplemented from itk::LightObject. |
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|
Decrease the reference count (release by another object). Reimplemented from itk::LightObject. |
|
|
|
|
|
Definition at line 94 of file itkObject.h. |
|
|||||
|
Definition at line 101 of file itkShapePriorMAPCostFunction.h. |
|
|||||
|
Definition at line 152 of file itkShapePriorMAPCostFunctionBase.h. |
|
|||||
|
Definition at line 153 of file itkShapePriorMAPCostFunctionBase.h. |
|
|
Number of uses of this object by other objects. Definition at line 119 of file itkLightObject.h. |
|
|
Mutex lock to protect modification to the reference count Definition at line 122 of file itkLightObject.h. |
|
|||||
|
Definition at line 151 of file itkShapePriorMAPCostFunctionBase.h. |
|
|||||
|
Definition at line 101 of file itkShapePriorMAPCostFunction.h. |
|
|
|
|
|||||
|
Definition at line 101 of file itkShapePriorMAPCostFunction.h. |
1.4.2 written by Dimitri van Heesch,
© 1997-2000