All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::rp::SegmenterRegionGrowingSegment Struct Reference

Region Growing segment. More...

#include <SegmenterRegionGrowingSegment.h>

Public Types

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

Public Member Functions

void addNeighborSegment (SegmenterRegionGrowingSegment *const nSegPtr)
 Add a pointer of a neighbor segment (if it is not already there). More...
 
void clearNeighborSegments ()
 Remove all neighbor segments. 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...
 
SegmenterRegionGrowingSegmentoperator= (const SegmenterRegionGrowingSegment &other)
 
void removeNeighborSegment (SegmenterRegionGrowingSegment *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 ** 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...
 
SegmenterRegionGrowingSegmentm_nextActiveSegment
 A pointer to the next active segment. More...
 
SegmenterRegionGrowingSegmentm_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

Region Growing segment.

Definition at line 40 of file SegmenterRegionGrowingSegment.h.

Member Typedef Documentation

Feature type definition.

Definition at line 45 of file SegmenterRegionGrowingSegment.h.

Feature type definition.

Definition at line 50 of file SegmenterRegionGrowingSegment.h.

Member Function Documentation

void te::rp::SegmenterRegionGrowingSegment::addNeighborSegment ( SegmenterRegionGrowingSegment *const  nSegPtr)

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

Definition at line 50 of file SegmenterRegionGrowingSegment.cpp.

References m_neighborSegments, and m_neighborSegmentsSize.

Referenced by te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), and te::rp::SegmenterRegionGrowingStrategy::mergeSegments().

void te::rp::SegmenterRegionGrowingSegment::clearNeighborSegments ( )
void te::rp::SegmenterRegionGrowingSegment::disable ( )
inline

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

Definition at line 141 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), and te::rp::SegmenterRegionGrowingStrategy::mergeSegments().

bool te::rp::SegmenterRegionGrowingSegment::isEnabled ( ) const
inline

Returns true if this segment is enabled.

Returns
Returns true if this segment is enabled.

Definition at line 147 of file SegmenterRegionGrowingSegment.h.

void te::rp::SegmenterRegionGrowingSegment::removeNeighborSegment ( SegmenterRegionGrowingSegment *const  nSegPtr)

Remove all occurrences of a neighbor segment.

Definition at line 84 of file SegmenterRegionGrowingSegment.cpp.

References m_neighborSegments, and m_neighborSegmentsSize.

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

Member Data Documentation

unsigned int te::rp::SegmenterRegionGrowingSegment::m_featuresSize

The current size of m_features.

Definition at line 112 of file SegmenterRegionGrowingSegment.h.

Referenced by operator=().

IterationCounterType te::rp::SegmenterRegionGrowingSegment::m_mergetIteration

The current merge iteration.

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

Definition at line 118 of file SegmenterRegionGrowingSegment.h.

Referenced by te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().

SegmenterRegionGrowingSegment** te::rp::SegmenterRegionGrowingSegment::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 86 of file SegmenterRegionGrowingSegment.h.

Referenced by addNeighborSegment(), clearNeighborSegments(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), operator=(), and removeNeighborSegment().

unsigned int te::rp::SegmenterRegionGrowingSegment::m_neighborSegmentsSize
SegmenterRegionGrowingSegment* te::rp::SegmenterRegionGrowingSegment::m_prevActiveSegment

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