ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkWatershedSegmentTable.h>
Classes | |
struct | edge_pair_t |
struct | segment_t |
Public Types | |
typedef HashMapType::const_iterator | ConstIterator |
typedef HashMapType::data_type | DataType |
typedef std::list< edge_pair_t > | edge_list_t |
typedef itksys::hash_map < IdentifierType, segment_t, itksys::hash< IdentifierType > > | HashMapType |
typedef HashMapType::iterator | Iterator |
typedef HashMapType::value_type | ValueType |
Public Member Functions | |
bool | Add (IdentifierType a, const segment_t &t) |
Iterator | Begin () |
ConstIterator | Begin () const |
void | Clear () |
void | Copy (const Self &o) |
bool | Empty () const |
Iterator | End () |
ConstIterator | End () const |
void | Erase (const IdentifierType a) |
ScalarType | GetMaximumDepth () const |
unsigned int | GetSegmentMemorySize () const |
segment_t * | Lookup (const IdentifierType a) |
const segment_t * | Lookup (const IdentifierType a) const |
void | PruneEdgeLists (ScalarType maximum_saliency) |
HashMapType::size_type | Size () const |
void | SortEdgeLists () |
bool | IsEntry (const IdentifierType a) const |
void | SetMaximumDepth (ScalarType s) |
Protected Member Functions | |
SegmentTable () | |
virtual | ~SegmentTable () |
Protected Attributes | |
HashMapType | m_HashMap |
ScalarType | m_MaximumDepth |
Private Member Functions | |
void | operator= (const Self &) |
typedef SegmentTable | Self |
typedef DataObject | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TScalarType | ScalarType |
static Pointer | New () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
A table for storing segmentation information in various component filters of the watershed segmentation algorithm. See itk::WatershedImageFilter for an overview.
Definition at line 47 of file itkWatershedSegmentTable.h.
typedef HashMapType::const_iterator itk::watershed::SegmentTable< TScalarType >::ConstIterator |
Definition at line 98 of file itkWatershedSegmentTable.h.
typedef SmartPointer< const Self > itk::watershed::SegmentTable< TScalarType >::ConstPointer |
Define smart pointers for this object
Reimplemented from itk::DataObject.
Definition at line 54 of file itkWatershedSegmentTable.h.
typedef HashMapType::data_type itk::watershed::SegmentTable< TScalarType >::DataType |
Definition at line 100 of file itkWatershedSegmentTable.h.
typedef std::list< edge_pair_t > itk::watershed::SegmentTable< TScalarType >::edge_list_t |
Structure for storing lists of adjacencies (edges) and their saliencies.
Definition at line 86 of file itkWatershedSegmentTable.h.
typedef itksys::hash_map< IdentifierType, segment_t, itksys::hash< IdentifierType > > itk::watershed::SegmentTable< TScalarType >::HashMapType |
Define the container type for the table
Definition at line 96 of file itkWatershedSegmentTable.h.
typedef HashMapType::iterator itk::watershed::SegmentTable< TScalarType >::Iterator |
Definition at line 97 of file itkWatershedSegmentTable.h.
typedef SmartPointer< Self > itk::watershed::SegmentTable< TScalarType >::Pointer |
Define smart pointers for this object
Reimplemented from itk::DataObject.
Definition at line 53 of file itkWatershedSegmentTable.h.
typedef TScalarType itk::watershed::SegmentTable< TScalarType >::ScalarType |
Define smart pointers for this object
Definition at line 55 of file itkWatershedSegmentTable.h.
typedef SegmentTable itk::watershed::SegmentTable< TScalarType >::Self |
Define smart pointers for this object
Reimplemented from itk::DataObject.
Definition at line 51 of file itkWatershedSegmentTable.h.
typedef DataObject itk::watershed::SegmentTable< TScalarType >::Superclass |
Define smart pointers for this object
Reimplemented from itk::DataObject.
Definition at line 52 of file itkWatershedSegmentTable.h.
typedef HashMapType::value_type itk::watershed::SegmentTable< TScalarType >::ValueType |
Definition at line 99 of file itkWatershedSegmentTable.h.
itk::watershed::SegmentTable< TScalarType >::SegmentTable | ( | ) | [inline, protected] |
Definition at line 210 of file itkWatershedSegmentTable.h.
virtual itk::watershed::SegmentTable< TScalarType >::~SegmentTable | ( | ) | [inline, protected, virtual] |
Definition at line 211 of file itkWatershedSegmentTable.h.
bool itk::watershed::SegmentTable< TScalarType >::Add | ( | IdentifierType | a, |
const segment_t & | t | ||
) |
Inserts a segment into the table
Iterator itk::watershed::SegmentTable< TScalarType >::Begin | ( | void | ) | [inline] |
Merges two entries of the table. from->to Returns an iterator pointing to the first element in the (unordered) table.
Definition at line 166 of file itkWatershedSegmentTable.h.
ConstIterator itk::watershed::SegmentTable< TScalarType >::Begin | ( | void | ) | const [inline] |
Returns a const iterator pointing to the first element in the (unordered) table.
Definition at line 174 of file itkWatershedSegmentTable.h.
void itk::watershed::SegmentTable< TScalarType >::Clear | ( | void | ) | [inline] |
Removes all the entries in the table.
Definition at line 145 of file itkWatershedSegmentTable.h.
void itk::watershed::SegmentTable< TScalarType >::Copy | ( | const Self & | o | ) | [inline] |
Copies the contents of another segment table into this segment table. This is really operator= in disguise, although superclass information is not copied.
Definition at line 203 of file itkWatershedSegmentTable.h.
virtual::itk::LightObject::Pointer itk::watershed::SegmentTable< TScalarType >::CreateAnother | ( | void | ) | const [virtual] |
Define smart pointers for this object
Reimplemented from itk::Object.
bool itk::watershed::SegmentTable< TScalarType >::Empty | ( | ) | const [inline] |
Returns true if the table is empty and false if the table is not empty.
Definition at line 150 of file itkWatershedSegmentTable.h.
Iterator itk::watershed::SegmentTable< TScalarType >::End | ( | void | ) | [inline] |
Returns an iterator pointing to one element past the last element in the (unordered table).
Definition at line 170 of file itkWatershedSegmentTable.h.
ConstIterator itk::watershed::SegmentTable< TScalarType >::End | ( | void | ) | const [inline] |
Returns a const iterator pointing to one element past the last element in the (unordered table).
Definition at line 178 of file itkWatershedSegmentTable.h.
void itk::watershed::SegmentTable< TScalarType >::Erase | ( | const IdentifierType | a | ) | [inline] |
Deletes an entry from the table.
Definition at line 141 of file itkWatershedSegmentTable.h.
ScalarType itk::watershed::SegmentTable< TScalarType >::GetMaximumDepth | ( | ) | const [inline] |
Definition at line 197 of file itkWatershedSegmentTable.h.
virtual const char* itk::watershed::SegmentTable< TScalarType >::GetNameOfClass | ( | ) | const [virtual] |
Define smart pointers for this object
Reimplemented from itk::DataObject.
unsigned int itk::watershed::SegmentTable< TScalarType >::GetSegmentMemorySize | ( | ) | const [inline] |
Convenience methods for debugging
Definition at line 181 of file itkWatershedSegmentTable.h.
bool itk::watershed::SegmentTable< TScalarType >::IsEntry | ( | const IdentifierType | a | ) | const [inline] |
Returns TRUE if the entry key is found in the table. FALSE if the key is not found in the table.
Definition at line 133 of file itkWatershedSegmentTable.h.
segment_t* itk::watershed::SegmentTable< TScalarType >::Lookup | ( | const IdentifierType | a | ) | [inline] |
Lookup a segment in the table. Returns a pointer to the entry. On failure, returns a null pointer.
Definition at line 113 of file itkWatershedSegmentTable.h.
const segment_t* itk::watershed::SegmentTable< TScalarType >::Lookup | ( | const IdentifierType | a | ) | const [inline] |
Lookup a segment in the table. Returns a const pointer to the entry. On failure, returns a null pointer.
Definition at line 123 of file itkWatershedSegmentTable.h.
static Pointer itk::watershed::SegmentTable< TScalarType >::New | ( | ) | [static] |
Define smart pointers for this object
Reimplemented from itk::Object.
void itk::watershed::SegmentTable< TScalarType >::operator= | ( | const Self & | ) | [inline, private] |
Reimplemented from itk::DataObject.
Definition at line 217 of file itkWatershedSegmentTable.h.
void itk::watershed::SegmentTable< TScalarType >::PruneEdgeLists | ( | ScalarType | maximum_saliency | ) |
Iterates through the table and removes edges in every edge list whose saliencies are above the specified maximum. Requires that the edge lists have been sorted prior to calling this method.
void itk::watershed::SegmentTable< TScalarType >::SetMaximumDepth | ( | ScalarType | s | ) | [inline] |
Set/Get the maximum depth of image on which this segment table is based. (Should set really be calling modified? jc 11/16/01)
Definition at line 190 of file itkWatershedSegmentTable.h.
HashMapType::size_type itk::watershed::SegmentTable< TScalarType >::Size | ( | void | ) | const [inline] |
Returns the number of entries in the table.
Definition at line 158 of file itkWatershedSegmentTable.h.
void itk::watershed::SegmentTable< TScalarType >::SortEdgeLists | ( | ) |
Sorts all the entries in the edge lists from least to greatest saliency.
HashMapType itk::watershed::SegmentTable< TScalarType >::m_HashMap [protected] |
Definition at line 213 of file itkWatershedSegmentTable.h.
ScalarType itk::watershed::SegmentTable< TScalarType >::m_MaximumDepth [protected] |
Definition at line 215 of file itkWatershedSegmentTable.h.