OTB
9.0.0
Orfeo Toolbox
|
#include <otbLabelMapWithAdjacency.h>
Public Types | |
typedef std::map< LabelType, AdjacentLabelsContainerType > | AdjacencyMapType |
typedef std::set< LabelType > | AdjacentLabelsContainerType |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::WeakPointer< const Self > | ConstWeakPointer |
typedef TLabelObject | LabelObjectType |
typedef std::pair< LabelType, LabelType > | LabelPairType |
typedef std::vector< LabelPairType > | LabelPairVectorType |
typedef LabelObjectType::LabelType | LabelType |
typedef Functor::MergeLabelObjectFunctor< TLabelObject > | MergeFunctorType |
typedef itk::SmartPointer< Self > | Pointer |
typedef LabelMapWithAdjacency | Self |
typedef itk::LabelMap< TLabelObject > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
const AdjacencyMapType & | GetAdjacencyMap () const |
virtual const char * | GetNameOfClass () const |
void | SetAdjacencyMap (const AdjacencyMapType &amap) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = LabelObjectType::ImageDimension |
AdjacencyMapType | m_AdjacencyMap |
void | AddAdjacentLabel (LabelType label1, LabelType label2) |
void | ClearAdjacentLabels (LabelType label) |
void | RemoveAdjacentLabel (LabelType label1, LabelType label2) |
const AdjacentLabelsContainerType & | GetAdjacentLabels (LabelType label) const |
void | MergeLabels (const LabelType &label1, const LabelType &label2) |
void | MergeLabels (const LabelPairVectorType &labels) |
LabelMapWithAdjacency () | |
~LabelMapWithAdjacency () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
void | CopyInformation (const itk::DataObject *data) override |
LabelMapWithAdjacency (const Self &)=delete | |
void | operator= (const Self &)=delete |
This class is a LabelMap with additional adjacency information.
The adjacency information is stored as a map of set of labels, in order to avoid duplicated neighbors.
Definition at line 41 of file otbLabelMapWithAdjacency.h.
typedef std::map<LabelType, AdjacentLabelsContainerType> otb::LabelMapWithAdjacency< TLabelObject >::AdjacencyMapType |
A map containing the set of adjacent labels per label
Definition at line 73 of file otbLabelMapWithAdjacency.h.
typedef std::set<LabelType> otb::LabelMapWithAdjacency< TLabelObject >::AdjacentLabelsContainerType |
A set containing adjacent labels
Definition at line 70 of file otbLabelMapWithAdjacency.h.
typedef itk::SmartPointer<const Self> otb::LabelMapWithAdjacency< TLabelObject >::ConstPointer |
Definition at line 48 of file otbLabelMapWithAdjacency.h.
typedef itk::WeakPointer<const Self> otb::LabelMapWithAdjacency< TLabelObject >::ConstWeakPointer |
Definition at line 49 of file otbLabelMapWithAdjacency.h.
typedef TLabelObject otb::LabelMapWithAdjacency< TLabelObject >::LabelObjectType |
Typedef of the LabelObject
Definition at line 55 of file otbLabelMapWithAdjacency.h.
typedef std::pair<LabelType, LabelType> otb::LabelMapWithAdjacency< TLabelObject >::LabelPairType |
A pair of labels
Definition at line 79 of file otbLabelMapWithAdjacency.h.
typedef std::vector<LabelPairType> otb::LabelMapWithAdjacency< TLabelObject >::LabelPairVectorType |
A vector of pair of labels
Definition at line 82 of file otbLabelMapWithAdjacency.h.
typedef LabelObjectType::LabelType otb::LabelMapWithAdjacency< TLabelObject >::LabelType |
Label typedef support.
Definition at line 67 of file otbLabelMapWithAdjacency.h.
typedef Functor::MergeLabelObjectFunctor<TLabelObject> otb::LabelMapWithAdjacency< TLabelObject >::MergeFunctorType |
The merging functor
Definition at line 76 of file otbLabelMapWithAdjacency.h.
typedef itk::SmartPointer<Self> otb::LabelMapWithAdjacency< TLabelObject >::Pointer |
Definition at line 47 of file otbLabelMapWithAdjacency.h.
typedef LabelMapWithAdjacency otb::LabelMapWithAdjacency< TLabelObject >::Self |
Standard class typedefs
Definition at line 45 of file otbLabelMapWithAdjacency.h.
typedef itk::LabelMap<TLabelObject> otb::LabelMapWithAdjacency< TLabelObject >::Superclass |
Definition at line 46 of file otbLabelMapWithAdjacency.h.
|
inlineprotected |
Constructor
Definition at line 222 of file otbLabelMapWithAdjacency.h.
|
inlineoverrideprotected |
Destructor
Definition at line 227 of file otbLabelMapWithAdjacency.h.
|
privatedelete |
The adjacency map
|
inline |
Add a given label to the adjacent labels set of another label
Definition at line 96 of file otbLabelMapWithAdjacency.h.
|
inline |
Clear the adjacent labels of a given label
Definition at line 112 of file otbLabelMapWithAdjacency.h.
|
inlineoverrideprotected |
Re-implement CopyInformation to pass the adjancency graph through
Definition at line 239 of file otbLabelMapWithAdjacency.h.
References otb::LabelMapWithAdjacency< TLabelObject >::m_AdjacencyMap.
virtual::itk::LightObject::Pointer otb::LabelMapWithAdjacency< TLabelObject >::CreateAnother | ( | void | ) | const |
|
inline |
Definition at line 90 of file otbLabelMapWithAdjacency.h.
|
inline |
Get the set of adjacent labels from a given label
Definition at line 132 of file otbLabelMapWithAdjacency.h.
|
virtual |
Run-time type information (and related methods).
|
inline |
Merge a list of pairs of labels. For each pair, the first label will be the one retained
Definition at line 194 of file otbLabelMapWithAdjacency.h.
|
inline |
Merge two label objects. The first label will be the one retained
Definition at line 147 of file otbLabelMapWithAdjacency.h.
|
static |
Method for creation through the object factory.
|
privatedelete |
The adjacency map
|
inlineoverrideprotected |
Printself
Definition at line 232 of file otbLabelMapWithAdjacency.h.
|
inline |
Remove the given adjacent label from the given label
Definition at line 122 of file otbLabelMapWithAdjacency.h.
|
inline |
Set/Get the adjacency map
Definition at line 85 of file otbLabelMapWithAdjacency.h.
|
static |
Dimension of the image. This constant is used by functions that are templated over image type (as opposed to being templated over pixel type and dimension) when they need compile time access to the dimension of the image.
Definition at line 64 of file otbLabelMapWithAdjacency.h.
|
private |
The adjacency map
Definition at line 257 of file otbLabelMapWithAdjacency.h.
Referenced by otb::LabelMapWithAdjacency< TLabelObject >::CopyInformation().