te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT > Struct Template Reference

Region Growing segment. More...

#include <SegmenterRegionGrowingSegment.h>

Public Types

typedef FeatureDataTypeT FeatureType
 Feature type definition. More...
 
typedef unsigned short int IterationCounterType
 Feature type definition. More...
 

Public Member Functions

void addNeighborSegmentPtr (SegmenterRegionGrowingSegment< FeatureDataTypeT > *const nSegPtr)
 Add a pointer of a neighbor segment (if it is not already there). More...
 
void disable ()
 Disable this segment ( same as m_mergetIteration = std::numeric_limits< SegmenterRegionGrowingSegment::IterationCounterType>::max() ). More...
 
bool isEnabled () const
 Returns true if this segment is enabled. More...
 
SegmenterRegionGrowingSegment< FeatureDataTypeT > & operator= (const SegmenterRegionGrowingSegment< FeatureDataTypeT > &other)
 
void removeAllNeighborSegmentsPtrs ()
 Remove all neighbor segments. More...
 
void removeNeighborSegmentPtr (SegmenterRegionGrowingSegment< FeatureDataTypeT > *const nSegPtr)
 Remove all occurrences of a neighbor segment. More...
 

Public Attributes

FeatureTypem_features
 A pionter to a fixed size vector of segment features. More...
 
unsigned int m_featuresSize
 The current size of m_features. More...
 
SegmenterSegmentsBlock::SegmentIdDataType m_id
 Segment ID. More...
 
IterationCounterType m_mergetIteration
 The current merge iteration. More...
 
SegmenterRegionGrowingSegment< FeatureDataTypeT > ** m_neighborSegments
 Neighborhood segments pointers (some pointers can be null) or a null pointer if there is no neighborhood. More...
 
unsigned int m_neighborSegmentsSize
 The current size of m_neighborSegments. More...
 
SegmenterRegionGrowingSegment< FeatureDataTypeT > * m_nextActiveSegment
 A pointer to the next active segment. More...
 
SegmenterRegionGrowingSegment< FeatureDataTypeT > * m_prevActiveSegment
 A pointer to the previous active segment. More...
 
unsigned int m_size
 Segment area (pixels number). More...
 
unsigned int m_xBound
 Segment lower bound X coordinate box over the label image. More...
 
unsigned int m_xStart
 Segment left X coordinate box over the label image. More...
 
unsigned int m_yBound
 Segment lower bound Y coordinate box over the label image. More...
 
unsigned int m_yStart
 Segment upper Y coordinate box over the label image. More...
 

Detailed Description

template<typename FeatureDataTypeT>
struct te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >

Region Growing segment.

Definition at line 41 of file SegmenterRegionGrowingSegment.h.

Member Typedef Documentation

template<typename FeatureDataTypeT>
typedef FeatureDataTypeT te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::FeatureType

Feature type definition.

Definition at line 46 of file SegmenterRegionGrowingSegment.h.

template<typename FeatureDataTypeT>
typedef unsigned short int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::IterationCounterType

Feature type definition.

Definition at line 51 of file SegmenterRegionGrowingSegment.h.

Member Function Documentation

template<typename FeatureDataTypeT>
void te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::addNeighborSegmentPtr ( SegmenterRegionGrowingSegment< FeatureDataTypeT > *const  nSegPtr)

Add a pointer of a neighbor segment (if it is not already there).

Definition at line 195 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments().

template<typename FeatureDataTypeT>
void te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::disable ( )
inline

Disable this segment ( same as m_mergetIteration = std::numeric_limits< SegmenterRegionGrowingSegment::IterationCounterType>::max() ).

Definition at line 143 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments().

template<typename FeatureDataTypeT>
bool te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::isEnabled ( ) const
inline

Returns true if this segment is enabled.

Returns
Returns true if this segment is enabled.

Definition at line 149 of file SegmenterRegionGrowingSegment.h.

template<typename FeatureDataTypeT >
void te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::removeAllNeighborSegmentsPtrs ( )

Remove all neighbor segments.

Definition at line 272 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments().

template<typename FeatureDataTypeT>
void te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::removeNeighborSegmentPtr ( SegmenterRegionGrowingSegment< FeatureDataTypeT > *const  nSegPtr)

Remove all occurrences of a neighbor segment.

Definition at line 230 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments().

Member Data Documentation

template<typename FeatureDataTypeT>
FeatureType* te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_features

A pionter to a fixed size vector of segment features.

Note
The segments pool have the ownership of this vector.

Definition at line 108 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().

template<typename FeatureDataTypeT>
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_featuresSize

The current size of m_features.

Definition at line 113 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().

template<typename FeatureDataTypeT>
IterationCounterType te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_mergetIteration

The current merge iteration.

Note
Disabled: std::numeric_limits< SegmenterRegionGrowingSegment::IterationCounterType>::max()

Definition at line 119 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().

template<typename FeatureDataTypeT>
SegmenterRegionGrowingSegment< FeatureDataTypeT >** te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_neighborSegments

Neighborhood segments pointers (some pointers can be null) or a null pointer if there is no neighborhood.

Note
The segments pool will delete the vector pointed by this pointer at this segment deletion time.

Definition at line 87 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().

template<typename FeatureDataTypeT>
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_neighborSegmentsSize

The current size of m_neighborSegments.

Definition at line 92 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().

template<typename FeatureDataTypeT>
SegmenterRegionGrowingSegment< FeatureDataTypeT >* te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_nextActiveSegment
template<typename FeatureDataTypeT>
SegmenterRegionGrowingSegment< FeatureDataTypeT >* te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_prevActiveSegment

A pointer to the previous active segment.

Definition at line 97 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().

template<typename FeatureDataTypeT>
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_size
template<typename FeatureDataTypeT>
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_xBound

Segment lower bound X coordinate box over the label image.

Definition at line 71 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().

template<typename FeatureDataTypeT>
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_xStart

Segment left X coordinate box over the label image.

Definition at line 66 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().

template<typename FeatureDataTypeT>
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_yBound

Segment lower bound Y coordinate box over the label image.

Definition at line 81 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().

template<typename FeatureDataTypeT>
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_yStart

Segment upper Y coordinate box over the label image.

Definition at line 76 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().


The documentation for this struct was generated from the following file: