![]() |
ITK
5.1.0
Insight Toolkit
|
#include <itkShapePriorMAPCostFunction.h>
Public Types | |
using | ArrayType = Array< double > |
using | ConstPointer = SmartPointer< const Self > |
using | FeatureImagePointer = typename Superclass::FeatureImagePointer |
using | FeatureImageType = typename Superclass::FeatureImageType |
using | MeasureType = typename Superclass::MeasureType |
using | NodeContainerType = typename Superclass::NodeContainerType |
using | NodeType = typename Superclass::NodeType |
using | ParametersType = typename Superclass::ParametersType |
using | PixelType = typename Superclass::PixelType |
using | Pointer = SmartPointer< Self > |
using | Self = ShapePriorMAPCostFunction |
using | ShapeFunctionType = typename Superclass::ShapeFunctionType |
using | Superclass = ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel > |
![]() | |
using | ConstPointer = SmartPointer< const Self > |
using | DerivativeType = typename Superclass::DerivativeType |
using | FeatureImagePointer = typename FeatureImageType::ConstPointer |
using | FeatureImageType = TFeatureImage |
using | MeasureType = typename Superclass::MeasureType |
using | NodeContainerPointer = typename NodeContainerType::ConstPointer |
using | NodeContainerType = VectorContainer< unsigned int, NodeType > |
using | NodeType = LevelSetNode< PixelType, Self::ImageDimension > |
using | ParametersType = typename Superclass::ParametersType |
using | PixelType = TOutputPixel |
using | Pointer = SmartPointer< Self > |
using | Self = ShapePriorMAPCostFunctionBase |
using | ShapeFunctionPointer = typename ShapeFunctionType::Pointer |
using | ShapeFunctionType = ShapeSignedDistanceFunction< double, Self::ImageDimension > |
using | Superclass = SingleValuedCostFunction |
![]() | |
using | ConstPointer = SmartPointer< const Self > |
using | DerivativeType = Array< ParametersValueType > |
using | MeasureType = double |
using | ParametersType = Superclass::ParametersType |
using | ParametersValueType = Superclass::ParametersValueType |
using | Pointer = SmartPointer< Self > |
using | Self = SingleValuedCostFunction |
using | Superclass = CostFunction |
![]() | |
using | ConstPointer = SmartPointer< const Self > |
using | ParametersType = OptimizerParameters< TInternalComputationValueType > |
using | ParametersValueType = TInternalComputationValueType |
using | Pointer = SmartPointer< Self > |
using | Self = CostFunctionTemplate |
using | Superclass = Object |
![]() | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
![]() | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual const char * | GetNameOfClass () const |
![]() | |
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 |
MeasureType | GetValue (const ParametersType ¶meters) const override |
void | GetDerivative (const ParametersType &, DerivativeType &) const override |
unsigned int | GetNumberOfParameters () const override |
![]() | |
virtual void | GetValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
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) |
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 |
![]() | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Additional Inherited Members | |
![]() | |
ShapePriorMAPCostFunctionBase () | |
~ShapePriorMAPCostFunctionBase () override=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
![]() | |
SingleValuedCostFunction ()=default | |
~SingleValuedCostFunction () override | |
![]() | |
CostFunctionTemplate ()=default | |
~CostFunctionTemplate () override=default | |
![]() | |
Object () | |
~Object () override | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
![]() | |
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 () |
![]() | |
ShapeFunctionPointer | m_ShapeFunction |
NodeContainerPointer | m_ActiveRegion |
FeatureImagePointer | m_FeatureImage |
![]() | |
std::atomic< int > | m_ReferenceCount |
Represents the maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetImageFilter to estimate the shape parameters.
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 50 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::ArrayType = Array<double> |
Type of the array for storing shape parameter mean and standard deviation. FIXME: should be templated.
Definition at line 96 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::ConstPointer = SmartPointer<const Self> |
Definition at line 59 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::FeatureImagePointer = typename Superclass::FeatureImagePointer |
Definition at line 73 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::FeatureImageType = typename Superclass::FeatureImageType |
Type of the feature image representing the edge potential map.
Definition at line 72 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::MeasureType = typename Superclass::MeasureType |
Type of the return measure value.
Definition at line 76 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::NodeContainerType = typename Superclass::NodeContainerType |
Type of container used to store the level set nodes.
Definition at line 88 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::NodeType = typename Superclass::NodeType |
Type of node used to represent the active region around the zero set.
Definition at line 85 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::ParametersType = typename Superclass::ParametersType |
ParametersType type alias. It defines a position in the optimization search space.
Definition at line 69 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::PixelType = typename Superclass::PixelType |
Type of pixel used to represent the level set.
Definition at line 82 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::Pointer = SmartPointer<Self> |
Definition at line 58 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::Self = ShapePriorMAPCostFunction |
Standard class type aliases.
Definition at line 56 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::ShapeFunctionType = typename Superclass::ShapeFunctionType |
Type of the shape signed distance function.
Definition at line 91 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::Superclass = ShapePriorMAPCostFunctionBase<TFeatureImage, TOutputPixel> |
Definition at line 57 of file itkShapePriorMAPCostFunction.h.
using itk::ShapePriorMAPCostFunction< TFeatureImage, TOutputPixel >::WeightsType = FixedArray<double, 4> |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
Definition at line 112 of file itkShapePriorMAPCostFunction.h.
|
protected |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
|
overrideprotecteddefault |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
|
overridevirtual |
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 >.
|
overridevirtual |
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 >.
|
overridevirtual |
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 >.
|
overridevirtual |
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 >.
|
virtual |
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::Object.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >.
|
virtual |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
|
virtual |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
|
virtual |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
|
overridevirtual |
Initialize the cost function by making sure that all the components are present.
Reimplemented from itk::ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
Reimplemented from itk::CostFunctionTemplate< TInternalComputationValueType >.
|
virtual |
Set/Get the array of shape parameters mean.
|
virtual |
Set/Get the array of shape parameters standard deviation.
|
virtual |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
|
staticconstexpr |
Dimension constant.
Definition at line 79 of file itkShapePriorMAPCostFunction.h.
|
private |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
Definition at line 163 of file itkShapePriorMAPCostFunction.h.
|
private |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
Definition at line 159 of file itkShapePriorMAPCostFunction.h.
|
private |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
Definition at line 160 of file itkShapePriorMAPCostFunction.h.
|
private |
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, LogGradientTerm, LogShapePriorTerm and LogPosePriorTerm.
Definition at line 161 of file itkShapePriorMAPCostFunction.h.