#include <itkWatershedSegmentTree.h>
A data structure for storing segment merge information used in filters of the watershed segmentation algorithm. See itk::WatershedImageFilter for an overview.
Definition at line 46 of file itkWatershedSegmentTree.h.
Classes | |
struct | merge_comp |
struct | merge_t |
struct | sort_comp |
Public Types | |
using | ConstIterator = typename DequeType::const_iterator |
using | DequeType = std::deque<merge_t> |
using | Iterator = typename DequeType::iterator |
using | ValueType = typename DequeType::value_type |
![]() | |
using | ConstPointer = SmartPointer<const Self> |
using | DataObjectIdentifierType = std::string |
using | DataObjectPointerArraySizeType = std::vector<Pointer>::size_type |
using | Pointer = SmartPointer<Self> |
using | Self = DataObject |
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 | |
merge_t & | Back () |
const merge_t & | Back () const |
Iterator | Begin () |
ConstIterator | Begin () const |
void | Clear () |
bool | Empty () const |
Iterator | End () |
ConstIterator | End () const |
merge_t & | Front () |
const merge_t & | Front () const |
void | Initialize () override |
void | PopBack () |
void | PopFront () |
void | PushBack (const ValueType &t) |
void | PushFront (const ValueType &t) |
DequeType::size_type | Size () const |
![]() | |
virtual void | CopyInformation (const DataObject *) |
virtual void | DataHasBeenGenerated () |
void | DisconnectPipeline () |
bool | GetDataReleased () const |
virtual const bool & | GetReleaseDataFlag () const |
SmartPointer< ProcessObject > | GetSource () const |
DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
const DataObjectIdentifierType & | GetSourceOutputName () const |
virtual ModifiedTimeType | GetUpdateMTime () const |
virtual void | Graft (const DataObject *) |
virtual void | PrepareForNewData () |
virtual void | PropagateRequestedRegion () |
void | ReleaseData () |
virtual void | ReleaseDataFlagOff () |
virtual void | ReleaseDataFlagOn () |
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
virtual void | ResetPipeline () |
void | SetReleaseDataFlag (bool flag) |
virtual void | SetRequestedRegion (const DataObject *) |
virtual void | SetRequestedRegionToLargestPossibleRegion () |
bool | ShouldIReleaseData () const |
virtual void | Update () |
virtual void | UpdateOutputData () |
virtual void | UpdateOutputInformation () |
void | UpdateSource () const |
virtual bool | VerifyRequestedRegion () |
void | SetPipelineMTime (ModifiedTimeType time) |
virtual const ModifiedTimeType & | GetPipelineMTime () const |
virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
virtual const RealTimeStamp & | GetRealTimeStamp () const |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) 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) 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 |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
SegmentTree ()=default | |
~SegmentTree () override=default | |
![]() | |
DataObject () | |
virtual void | PropagateResetPipeline () |
~DataObject () override | |
![]() | |
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 | |
DequeType | m_Deque {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using | Self = SegmentTree |
using | Superclass = DataObject |
using | Pointer = SmartPointer<Self> |
using | ConstPointer = SmartPointer<const Self> |
using | ScalarType = TScalar |
static Pointer | New () |
virtual::itk::LightObject::Pointer | CreateAnother () const |
virtual const char * | GetNameOfClass () const |
Additional Inherited Members | |
![]() | |
static bool | GetGlobalReleaseDataFlag () |
static void | GlobalReleaseDataFlagOff () |
static void | GlobalReleaseDataFlagOn () |
static Pointer | New () |
static void | SetGlobalReleaseDataFlag (bool val) |
![]() | |
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::watershed::SegmentTree< TScalar >::ConstIterator = typename DequeType::const_iterator |
Definition at line 75 of file itkWatershedSegmentTree.h.
using itk::watershed::SegmentTree< TScalar >::ConstPointer = SmartPointer<const Self> |
Define itk Smart Pointers for this object
Definition at line 56 of file itkWatershedSegmentTree.h.
using itk::watershed::SegmentTree< TScalar >::DequeType = std::deque<merge_t> |
Define the container type used in this list data structure
Definition at line 73 of file itkWatershedSegmentTree.h.
using itk::watershed::SegmentTree< TScalar >::Iterator = typename DequeType::iterator |
Definition at line 74 of file itkWatershedSegmentTree.h.
using itk::watershed::SegmentTree< TScalar >::Pointer = SmartPointer<Self> |
Define itk Smart Pointers for this object
Definition at line 55 of file itkWatershedSegmentTree.h.
using itk::watershed::SegmentTree< TScalar >::ScalarType = TScalar |
Define itk Smart Pointers for this object
Definition at line 59 of file itkWatershedSegmentTree.h.
using itk::watershed::SegmentTree< TScalar >::Self = SegmentTree |
Define itk Smart Pointers for this object
Definition at line 53 of file itkWatershedSegmentTree.h.
using itk::watershed::SegmentTree< TScalar >::Superclass = DataObject |
Define itk Smart Pointers for this object
Definition at line 54 of file itkWatershedSegmentTree.h.
using itk::watershed::SegmentTree< TScalar >::ValueType = typename DequeType::value_type |
Definition at line 76 of file itkWatershedSegmentTree.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
inline |
Returns a reference to the back of the list
Definition at line 139 of file itkWatershedSegmentTree.h.
|
inline |
Returns a const reference to the back of the list (node with the greatest saliency value).
Definition at line 125 of file itkWatershedSegmentTree.h.
|
inline |
Returns an iterator pointing to the first element in the list.
Definition at line 174 of file itkWatershedSegmentTree.h.
|
inline |
Returns a const iterator pointing to the first element in the list.
Definition at line 181 of file itkWatershedSegmentTree.h.
|
inline |
Clears the Deque completely
Definition at line 204 of file itkWatershedSegmentTree.h.
|
virtual |
Define itk Smart Pointers for this object
Reimplemented from itk::Object.
|
inline |
Returns TRUE if the SegmentTree is empty, FALSE if the SegmentTree is not empty.
Definition at line 109 of file itkWatershedSegmentTree.h.
|
inline |
Returns an iterator pointing one element past the last element in the list.
Definition at line 189 of file itkWatershedSegmentTree.h.
|
inline |
Returns a const iterator pointing one element past the last element in the list.
Definition at line 197 of file itkWatershedSegmentTree.h.
|
inline |
Returns a reference to the front of the list
Definition at line 132 of file itkWatershedSegmentTree.h.
|
inline |
Returns a const reference to the front of the list (node with the least saliency value).
Definition at line 117 of file itkWatershedSegmentTree.h.
|
virtual |
Define itk Smart Pointers for this object
Reimplemented from itk::DataObject.
|
overridevirtual |
Standard DataObject routine to initialize. Returns the segment tree to a default state, deallocating memory.
Reimplemented from itk::DataObject.
|
static |
Define itk Smart Pointers for this object
|
inline |
Erases the node at the back of the list.
Definition at line 167 of file itkWatershedSegmentTree.h.
|
inline |
Erases the node at the front of the list.
Definition at line 160 of file itkWatershedSegmentTree.h.
|
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::DataObject.
|
inline |
Inserts a node at the back of the list
Definition at line 153 of file itkWatershedSegmentTree.h.
|
inline |
Inserts a node at the front of the list.
Definition at line 146 of file itkWatershedSegmentTree.h.
|
inline |
Returns the size of the list.
Definition at line 101 of file itkWatershedSegmentTree.h.
|
protected |
Definition at line 221 of file itkWatershedSegmentTree.h.