Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Images - Segmentation - SegmentationC
 

  PUBLIC
SegmentationC::SegmentationC(void)
SegmentationC::SegmentationC(ImageC,UIntT)
SegmentationC::SegmentationC(const Tuple2C,UIntT> &)
SegmentationC::Body(void)
SegmentationC::Body(void) const
SegmentationC::Adjacency(bool)
SegmentationC::BoundryLength(void)
SegmentationC::RemoveSmallComponents(IntT)
SegmentationC::Areas(void)
SegmentationC::MergeComponents(ImageC &,UIntT,RealT,CmpT &,IntT)
SegmentationC::SegMap(void)
SegmentationC::Labels(void)
SegmentationC::ComputeMoments(bool)
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::Body(void)
RCHandleC::Body(void) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   SegmentationC   
 
Segmentation map.
 
include "Ravl/Image/Segmentation.hh"
Source file:Ravl/Image/Processing/Segmentation/Segmentation.hh
User Level:Normal
Library:RavlImageProc
In Scope:RavlImageN

Parent Classes: Methods:
SegmentationC()
Default constructor.
Creates an invalid handle.

SegmentationC(ImageC<UIntT> nsegmap,UIntT nlabels)
Constructor.

SegmentationC(const Tuple2C<ImageC<UIntT>,UIntT> & tup)
Constructor.

SegmentationBodyC & Body()
Access body.

const SegmentationBodyC & Body() const
Access body.

SArray1dC<HSetC<UIntT>> Adjacency(bool biDir = true)
Generate a table of region adjacencies.
For each region, a set of adjacent regions is generated. If biDir is false, only adjacenies in one direction are generated, otherwise both directions are registered.

SArray1dC<HashC<UIntT,UIntC>> BoundryLength()
Generate a table of region adjacencies boundry lengths.
only adjacenies from regions with a smaller id to those with a larger ID are generated

UIntT RemoveSmallComponents(IntT thrSize)
Remove small components from map, label them as 0.

SArray1dC<UIntT> Areas()
Compute the areas of all the segmented regions.

UIntT MergeComponents(ImageC<PixelT> & dat,UIntT thrSize,RealT maxDist,CmpT & cmp,IntT iter = 1)
Merge simlar components smaller than 'thrSize'.

ImageC<UIntT> & SegMap()
Access segmentation map.

UIntT Labels()
Access number of labels.

SArray1dC<Moments2d2C> ComputeMoments(bool ignoreZero = false)
Compute moments for each of the segmented regions.
if ignoreZero is true, region labeled 0 is ignored.

#include "Ravl/RefCounter.hh"
const RCHandleC<SegmentationBodyC> & operator =(const RCHandleC<SegmentationBodyC> & oth)
Assign handle.

RCHandleC<SegmentationBodyC> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<SegmentationBodyC> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<SegmentationBodyC> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

SegmentationBodyC & Body()
Access body of object.

const SegmentationBodyC & Body() const
Constant access to body of object.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<SegmentationBodyC> & obj)

istream & operator >>(istream & strm,RCHandleC<SegmentationBodyC> & obj)


Documentation by CxxDoc: Tue Aug 13 09:59:30 2002