OpendTect  6.6
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)
 
const TypeSet< int > * getComponent (int compidx)
 
const Array2D< int > * getLabel () const
 
int nrComponents () const
 
float overLapRate (int componentidx)
 
void trimCompBranches (TypeSet< int > &comp)
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

TypeSet< TypeSet< int > > components_
 
const Array2D< bool > & input_
 
Array2D< int > * label_
 
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::ConnComponents ( const Array2D< bool > &  )

◆ ~ConnComponents()

ConnComponents::~ConnComponents ( )

Member Function Documentation

◆ classifyMarks()

void ConnComponents::classifyMarks ( Array2D< int > &  mark)
protected

◆ compute()

void ConnComponents::compute ( TaskRunner tr = 0)

◆ getComponent()

const TypeSet<int>* ConnComponents::getComponent ( int  compidx)

◆ getCompSticks()

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

◆ getLabel()

const Array2D<int>* ConnComponents::getLabel ( ) const
inline

◆ nrComponents()

int ConnComponents::nrComponents ( ) const

◆ overLapRate()

float ConnComponents::overLapRate ( int  componentidx)

◆ setMark()

void ConnComponents::setMark ( Array2D< int > &  r,
int  source,
int  newval 
)
protected

◆ trimCompBranches() [1/2]

void ConnComponents::trimCompBranches ( TypeSet< int > &  comp)

◆ trimCompBranches() [2/2]

static void ConnComponents::trimCompBranches ( TypeSet< int > &  comp,
int  sz1 
)
static

Member Data Documentation

◆ components_

TypeSet< TypeSet<int> > ConnComponents::components_
protected

◆ input_

const Array2D<bool>& ConnComponents::input_
protected

◆ label_

Array2D<int>* ConnComponents::label_
protected

◆ sortedindex_

TypeSet<int> ConnComponents::sortedindex_
protected

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