#include <itkLevelSetEquationTermContainer.h>
Class for container holding the terms of a given level set update equation.
TInputImage | Input image or speed image or feature image for segmentation |
TLevelSetContainer | Container holding all the level set functions |
Definition at line 42 of file itkLevelSetEquationTermContainer.h.
Classes | |
class | ConstIterator |
class | Iterator |
Public Types | |
using | ConstPointer = SmartPointer<const Self> |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageType = TInputImage |
using | LevelSetContainerPointer = typename LevelSetContainerType::Pointer |
using | LevelSetContainerType = TLevelSetContainer |
using | LevelSetDataType = typename LevelSetContainerType::LevelSetDataType |
using | LevelSetGradientType = typename LevelSetContainerType::GradientType |
using | LevelSetHessianType = typename LevelSetContainerType::HessianType |
using | LevelSetIdentifierType = typename LevelSetContainerType::LevelSetIdentifierType |
using | LevelSetInputIndexType = typename LevelSetContainerType::InputIndexType |
using | LevelSetOutputPixelType = typename LevelSetContainerType::OutputType |
using | LevelSetOutputRealType = typename LevelSetContainerType::OutputRealType |
using | LevelSetPointer = typename LevelSetContainerType::LevelSetPointer |
using | LevelSetType = typename LevelSetContainerType::LevelSetType |
using | Pointer = SmartPointer<Self> |
using | Self = LevelSetEquationTermContainer |
using | Superclass = Object |
using | TermIdType = unsigned int |
using | TermPointer = typename TermType::Pointer |
using | TermType = LevelSetEquationTermBase<InputImageType, LevelSetContainerType> |
![]() | |
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 | |
void | AddTerm (const TermIdType &iId, TermType *iTerm) |
Iterator | Begin () |
ConstIterator | Begin () const |
LevelSetOutputRealType | ComputeCFLContribution () const |
void | ComputeRequiredData (const LevelSetInputIndexType &iP, LevelSetDataType &ioData) |
virtual::itk::LightObject::Pointer | CreateAnother () const |
Iterator | End () |
ConstIterator | End () const |
LevelSetOutputRealType | Evaluate (const LevelSetInputIndexType &iP) |
LevelSetOutputRealType | Evaluate (const LevelSetInputIndexType &iP, const LevelSetDataType &iData) |
virtual LevelSetIdentifierType | GetCurrentLevelSetId () |
virtual const LevelSetContainerType * | GetLevelSetContainer () const |
virtual LevelSetContainerType * | GetModifiableLevelSetContainer () |
const char * | GetNameOfClass () const override |
TermType * | GetTerm (const std::string &iName) |
TermType * | GetTerm (const TermIdType &iId) |
void | Initialize (const LevelSetInputIndexType &iP) |
void | InitializeParameters () |
void | PushTerm (TermType *iTerm) |
virtual void | SetCurrentLevelSetId (LevelSetIdentifierType _arg) |
virtual void | SetLevelSetContainer (LevelSetContainerType *_arg) |
void | Update () |
void | UpdatePixel (const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) |
virtual void | SetInput (InputImageType *_arg) |
virtual InputImageType * | GetModifiableInput () |
virtual const InputImageType * | GetInput () 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 |
const char * | GetNameOfClass () const override |
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 Member Functions | |
static Pointer | New () |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Protected Types | |
using | HashMapStringTermContainerType = std::unordered_map<std::string, TermPointer> |
using | MapCFLContainerConstIterator = typename MapCFLContainerType::const_iterator |
using | MapCFLContainerIterator = typename MapCFLContainerType::iterator |
using | MapCFLContainerType = std::map<TermIdType, std::atomic<LevelSetOutputRealType>> |
using | MapTermContainerConstIteratorType = typename MapTermContainerType::const_iterator |
using | MapTermContainerIteratorType = typename MapTermContainerType::iterator |
using | MapTermContainerType = std::map<TermIdType, TermPointer> |
using | RequiredDataType = typename TermType::RequiredDataType |
Protected Member Functions | |
LevelSetEquationTermContainer () | |
~LevelSetEquationTermContainer () override=default | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
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 | |
MapTermContainerType | m_Container {} |
LevelSetIdentifierType | m_CurrentLevelSetId {} |
InputImagePointer | m_Input {} |
LevelSetContainerPointer | m_LevelSetContainer {} |
HashMapStringTermContainerType | m_NameContainer {} |
RequiredDataType | m_RequiredData {} |
MapCFLContainerType | m_TermContribution {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
Friends | |
class | Iterator |
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::ConstPointer = SmartPointer<const Self> |
Definition at line 49 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 331 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::InputImagePointer = typename InputImageType::Pointer |
Definition at line 61 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::InputImageType = TInputImage |
Definition at line 60 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetContainerPointer = typename LevelSetContainerType::Pointer |
Definition at line 64 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetContainerType = TLevelSetContainer |
Definition at line 63 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetDataType = typename LevelSetContainerType::LevelSetDataType |
Definition at line 72 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetGradientType = typename LevelSetContainerType::GradientType |
Definition at line 74 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetHessianType = typename LevelSetContainerType::HessianType |
Definition at line 75 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetIdentifierType = typename LevelSetContainerType::LevelSetIdentifierType |
Definition at line 69 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetInputIndexType = typename LevelSetContainerType::InputIndexType |
Definition at line 73 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetOutputPixelType = typename LevelSetContainerType::OutputType |
Definition at line 70 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetOutputRealType = typename LevelSetContainerType::OutputRealType |
Definition at line 71 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetPointer = typename LevelSetContainerType::LevelSetPointer |
Definition at line 67 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::LevelSetType = typename LevelSetContainerType::LevelSetType |
Definition at line 66 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 342 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 341 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 340 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 142 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 141 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 140 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::Pointer = SmartPointer<Self> |
Definition at line 48 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 335 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::Self = LevelSetEquationTermContainer |
Definition at line 47 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::Superclass = Object |
Definition at line 50 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::TermIdType = unsigned int |
Definition at line 58 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::TermPointer = typename TermType::Pointer |
Definition at line 78 of file itkLevelSetEquationTermContainer.h.
using itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::TermType = LevelSetEquationTermBase<InputImageType, LevelSetContainerType> |
Definition at line 77 of file itkLevelSetEquationTermContainer.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
void itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::AddTerm | ( | const TermIdType & | iId, |
TermType * | iTerm ) |
Replace the pointer to the term with the given id
Iterator itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::Begin | ( | ) |
ConstIterator itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::Begin | ( | ) | const |
LevelSetOutputRealType itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::ComputeCFLContribution | ( | ) | const |
Return the CFL contribution of the current term
void itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::ComputeRequiredData | ( | const LevelSetInputIndexType & | iP, |
LevelSetDataType & | ioData ) |
|
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::LightObject.
Iterator itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::End | ( | ) |
ConstIterator itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::End | ( | ) | const |
LevelSetOutputRealType itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::Evaluate | ( | const LevelSetInputIndexType & | iP | ) |
Evaluate the term at a given pixel location
LevelSetOutputRealType itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::Evaluate | ( | const LevelSetInputIndexType & | iP, |
const LevelSetDataType & | iData ) |
|
virtual |
|
virtual |
Set/Get the input image to be segmented.
|
virtual |
|
virtual |
Set/Get the input image to be segmented.
|
virtual |
|
overridevirtual |
Reimplemented from itk::LightObject.
References LevelSetEquationTermContainer().
TermType * itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::GetTerm | ( | const std::string & | iName | ) |
Get the term with the given name
TermType * itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::GetTerm | ( | const TermIdType & | iId | ) |
Get the term with the given id
void itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::Initialize | ( | const LevelSetInputIndexType & | iP | ) |
void itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::InitializeParameters | ( | ) |
Initialize the term parameters prior to the start of an iteration
|
static |
Method for creation through object factory
void itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::PushTerm | ( | TermType * | iTerm | ) |
Add a term to the end of the container
|
virtual |
|
virtual |
Set/Get the input image to be segmented.
|
virtual |
void itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::Update | ( | ) |
Update the term parameters at end of iteration
void itk::LevelSetEquationTermContainer< TInputImage, TLevelSetContainer >::UpdatePixel | ( | const LevelSetInputIndexType & | iP, |
const LevelSetOutputRealType & | oldValue, | ||
const LevelSetOutputRealType & | newValue ) |
Supply the update at a given pixel location to update the term parameters
|
friend |
Definition at line 146 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 338 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 326 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 329 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 327 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 333 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 336 of file itkLevelSetEquationTermContainer.h.
|
protected |
Definition at line 344 of file itkLevelSetEquationTermContainer.h.