OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ConnComponents Class Reference

Classify connected components of a binarized array 2D, components are sorted in size. User could get the best quadratic fit for the component if needed. More...

Public Member Functions

 ConnComponents (const Array2D< bool > &)
 
 ~ConnComponents ()
 
void compute (TaskRunner *tr=0)
 
int nrComponents () const
 
const TypeSet< int > * getComponent (int compidx)
 
const Array2D< int > * getLabel () const
 
void trimCompBranches (TypeSet< int > &comp)
 
float overLapRate (int componentidx)
 

Static Public Member Functions

static void trimCompBranches (TypeSet< int > &comp, int sz1)
 
static void getCompSticks (TypeSet< int > &comp, int sz1, int allowgapsz, int minsticksz, TypeSet< TypeSet< int > > &sticks)
 

Protected Member Functions

void classifyMarks (Array2D< int > &mark)
 
void setMark (Array2D< int > &r, int source, int newval)
 

Protected Attributes

const Array2D< bool > & input_
 
Array2D< int > * label_
 
TypeSet< TypeSet< int > > components_
 
TypeSet< int > sortedindex_
 

Detailed Description

Classify connected components of a binarized array 2D, components are sorted in size. User could get the best quadratic fit for the component if needed.

Constructor & Destructor Documentation

ConnComponents::ConnComponents ( const Array2D< bool > &  )
ConnComponents::~ConnComponents ( )

Member Function Documentation

void ConnComponents::classifyMarks ( Array2D< int > &  mark)
protected
void ConnComponents::compute ( TaskRunner tr = 0)
const TypeSet<int>* ConnComponents::getComponent ( int  compidx)
static void ConnComponents::getCompSticks ( TypeSet< int > &  comp,
int  sz1,
int  allowgapsz,
int  minsticksz,
TypeSet< TypeSet< int > > &  sticks 
)
static
const Array2D<int>* ConnComponents::getLabel ( ) const
inline
int ConnComponents::nrComponents ( ) const
float ConnComponents::overLapRate ( int  componentidx)
void ConnComponents::setMark ( Array2D< int > &  r,
int  source,
int  newval 
)
protected
void ConnComponents::trimCompBranches ( TypeSet< int > &  comp)
static void ConnComponents::trimCompBranches ( TypeSet< int > &  comp,
int  sz1 
)
static

Member Data Documentation

TypeSet< TypeSet<int> > ConnComponents::components_
protected
const Array2D<bool>& ConnComponents::input_
protected
Array2D<int>* ConnComponents::label_
protected
TypeSet<int> ConnComponents::sortedindex_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019