#include <itkShapePriorMAPCostFunctionBase.h>
Represents the base class of maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetImageFilter to estimate the shape parameters.
This class follows the shape and pose parameters estimation developed in [63].
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 44 of file itkShapePriorMAPCostFunctionBase.h.
Public Member Functions | |
virtual MeasureType | ComputeLogGradientTerm (const ParametersType &) const =0 |
virtual MeasureType | ComputeLogInsideTerm (const ParametersType &) const =0 |
virtual MeasureType | ComputeLogPosePriorTerm (const ParametersType &) const =0 |
virtual MeasureType | ComputeLogShapePriorTerm (const ParametersType &) const =0 |
void | GetDerivative (const ParametersType &, DerivativeType &) const override |
const char * | GetNameOfClass () const override |
unsigned int | GetNumberOfParameters () const override |
MeasureType | GetValue (const ParametersType ¶meters) const override |
virtual void | Initialize () |
virtual void | SetShapeFunction (ShapeFunctionType *_arg) |
virtual ShapeFunctionType * | GetModifiableShapeFunction () |
virtual const ShapeFunctionType * | GetShapeFunction () const |
virtual void | SetActiveRegion (const NodeContainerType *_arg) |
virtual const NodeContainerType * | GetActiveRegion () const |
virtual void | SetFeatureImage (const FeatureImageType *_arg) |
virtual const FeatureImageType * | GetFeatureImage () const |
![]() | |
const char * | GetNameOfClass () const override |
virtual void | GetValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TFeatureImage::ImageDimension |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
ShapePriorMAPCostFunctionBase () | |
~ShapePriorMAPCostFunctionBase () override=default | |
![]() | |
SingleValuedCostFunction ()=default | |
~SingleValuedCostFunction () override | |
![]() | |
CostFunctionTemplate ()=default | |
CostFunctionTemplate ()=default | |
~CostFunctionTemplate () override=default | |
~CostFunctionTemplate () override=default | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
![]() | |
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 () |
Protected Attributes | |
NodeContainerPointer | m_ActiveRegion {} |
FeatureImagePointer | m_FeatureImage {} |
ShapeFunctionPointer | m_ShapeFunction {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
Additional Inherited Members | |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::ConstPointer = SmartPointer<const Self> |
Definition at line 53 of file itkShapePriorMAPCostFunctionBase.h.
using itk::SingleValuedCostFunction::DerivativeType |
DerivativeType type alias. It defines a type used to return the cost function derivative.
Definition at line 59 of file itkSingleValuedCostFunction.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::FeatureImagePointer = typename FeatureImageType::ConstPointer |
Definition at line 72 of file itkShapePriorMAPCostFunctionBase.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::FeatureImageType = TFeatureImage |
Type of the feature image representing the edge potential map.
Definition at line 71 of file itkShapePriorMAPCostFunctionBase.h.
using itk::SingleValuedCostFunction::MeasureType |
MeasureType type alias. It defines a type used to return the cost function value.
Definition at line 50 of file itkSingleValuedCostFunction.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::NodeContainerPointer = typename NodeContainerType::ConstPointer |
Definition at line 85 of file itkShapePriorMAPCostFunctionBase.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::NodeContainerType = VectorContainer<unsigned int, NodeType> |
Type of container used to store the level set nodes.
Definition at line 84 of file itkShapePriorMAPCostFunctionBase.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::NodeType = LevelSetNode<PixelType, Self::ImageDimension> |
Type of node used to represent the active region around the zero set.
Definition at line 81 of file itkShapePriorMAPCostFunctionBase.h.
using itk::SingleValuedCostFunction::ParametersType |
ParametersType type alias. It defines a position in the optimization search space.
Definition at line 54 of file itkSingleValuedCostFunction.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::PixelType = TOutputPixel |
Type of pixel used to represent the level set.
Definition at line 78 of file itkShapePriorMAPCostFunctionBase.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::Pointer = SmartPointer<Self> |
Definition at line 52 of file itkShapePriorMAPCostFunctionBase.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::Self = ShapePriorMAPCostFunctionBase |
Standard class type aliases.
Definition at line 50 of file itkShapePriorMAPCostFunctionBase.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::ShapeFunctionPointer = typename ShapeFunctionType::Pointer |
Definition at line 89 of file itkShapePriorMAPCostFunctionBase.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::ShapeFunctionType = ShapeSignedDistanceFunction<double, Self::ImageDimension> |
Type of the shape signed distance function.
Definition at line 88 of file itkShapePriorMAPCostFunctionBase.h.
using itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >::Superclass = SingleValuedCostFunction |
Definition at line 51 of file itkShapePriorMAPCostFunctionBase.h.
|
protected |
|
overrideprotecteddefault |
|
pure virtual |
Compute the gradient term component of the MAP cost function. Subclasses should override this function
Implemented in itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >.
|
pure virtual |
Compute the inside term component of the MAP cost function. Subclasses should override this function
Implemented in itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >.
|
pure virtual |
Compute the pose prior component of the MAP cost function. Subclasses should override this function
Implemented in itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >.
|
pure virtual |
Compute the shape prior component of the MAP cost function. Subclasses should override this function
Implemented in itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >.
|
virtual |
Set/Get the active region.
|
inlineoverridevirtual |
This method returns the derivative of the cost function corresponding to the specified parameters.
Implements itk::SingleValuedCostFunction.
Definition at line 114 of file itkShapePriorMAPCostFunctionBase.h.
|
virtual |
Set/Get the feature image.
|
virtual |
Set/Get the shape distance function.
|
overridevirtual |
Reimplemented from itk::CostFunctionTemplate< double >.
|
inlineoverridevirtual |
Return the number of parameters.
Implements itk::CostFunctionTemplate< double >.
Definition at line 121 of file itkShapePriorMAPCostFunctionBase.h.
|
virtual |
Set/Get the shape distance function.
|
overridevirtual |
This method returns the value of the cost function corresponding to the specified parameters.
Implements itk::SingleValuedCostFunction.
|
virtual |
Initialize the cost function by making sure that all the components are present.
Reimplemented in itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >.
|
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::CostFunctionTemplate< double >.
|
virtual |
Set/Get the active region.
|
virtual |
Set/Get the feature image.
|
virtual |
Set/Get the shape distance function.
|
staticconstexpr |
Dimension constant.
Definition at line 75 of file itkShapePriorMAPCostFunctionBase.h.
|
protected |
Definition at line 159 of file itkShapePriorMAPCostFunctionBase.h.
|
protected |
Definition at line 161 of file itkShapePriorMAPCostFunctionBase.h.
|
protected |
Definition at line 158 of file itkShapePriorMAPCostFunctionBase.h.