User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Images - Segmentation - SegmentationBodyC
 

  PUBLIC
SegmentationBodyC::SegmentationBodyC(ImageC,UIntT)
SegmentationBodyC::Adjacency(bool)
SegmentationBodyC::BoundryLength(void)
SegmentationBodyC::RemoveSmallComponents(IntT)
SegmentationBodyC::CompressAndRelabel(SArray1dC)
SegmentationBodyC::Areas(void)
SegmentationBodyC::RedoArea(SArray1dC,SArray1dC)
SegmentationBodyC::IdentityLabel(void)
SegmentationBodyC::MergeComponents(ImageC &,UIntT,RealT,CmpT &,IntT)
SegmentationBodyC::SegMap(void)
SegmentationBodyC::Labels(void)
SegmentationBodyC::ComputeMoments(bool)
RCBodyVC::Save(ostream &) const
RCBodyVC::Save(BinOStreamC &) const
RCBodyVC::Copy(void) const
RCBodyVC::DeepCopy(UIntT) const
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   SegmentationBodyC   
 
Segmentation map.
 
include "Ravl/Image/Segmentation.hh"
User Level:Develop
Library:RavlImageProc
In Scope:RavlImageN

Parent Classes: Variables:
Methods:
SegmentationBodyC(ImageC<UIntT> nsegmap,UIntT nlabels)
Constructor.

SArray1dC<HSetC<UIntT>> Adjacency(bool biDir = false)
Generate a table of region adjacencies.
For each region, a set of adjacent regions is generated. If biDir is false, only adjacenies from regions with a smaller id to those with a larger ID are generated, otherwise both direction 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.

UIntT CompressAndRelabel(SArray1dC<UIntT> newLabs)
Compress newlabs and re-label segmentation.
this correctly resolves multilevel mappings. Note: newLabs will be changed to contain a mapping from the original labels to there new values.

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

SArray1dC<UIntT> RedoArea(SArray1dC<UIntT> area,SArray1dC<UIntT> map)
recompute the areas from the original areas and a mapping.

SArray1dC<UIntT> IdentityLabel()
Make an array of labels mapping to themselves.
This is useful for making merge tables which can the be passed to CompressAndRelabel.

UIntT MergeComponents(ImageC<PixelT> & dat,UIntT thrSize,RealT maxDist,CmpT & cmp,IntT iter = 1)
Merge simlar components smaller than 'thrSize'.
This just looks for the difference between adjacent pixels from different regions. FIXME :- It maybe better to look at the average different.

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/RCHandleV.hh"
bool Save(ostream & out) const
Save to stream 'out'.

bool Save(BinOStreamC & out) const
Save to binary stream 'out'.

RCBodyVC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

#include "Ravl/RefCounter.hh"
UIntT References() const
Access count of handles open to this object.

RCBodyC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

void IncRefCounter()
Increment reference counter.

bool DecRefCounter()
Decrement reference counter.


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