kmeans::Segmenter::RegionPruner Class Reference

Inheritance diagram for kmeans::Segmenter::RegionPruner:

kmeans::KMeansSegmenter< T >::Pruner List of all members.

Detailed Description

The function object passed into Segmenter::pruneRegions that controls the criteria on which the pruning is done.

Author:
Lakshman
Version:
Id
Segmenter.h,v 1.5 2009/06/02 20:17:50 lakshman Exp


Public Types

typedef std::set< int > Alternates

Public Member Functions

const Segmenter::ReplacementgetReplacement () const
 Get the result after pruning, i.e.

Protected Member Functions

virtual bool shouldRemoveRegion (int reg_label) const =0
 The method that should be over-ridden to tell removeRegions whether to remove a region.
virtual int getReplacementLabel (int current_label, const Alternates &alternates) const =0
 The method that should be over-ridden to provide the way of choosing the alternate label to removeRegions.
virtual void recompute (const Segmenter::Replacement &replacements)=0
 Recompute any internal data after one pass of pruning.
virtual void getClosebyRegions (int regNo, std::set< int > *closeby)
 an option function that can be implemented to get closeby regions (other than those that border this one).
virtual ~RegionPruner ()

Friends

class Segmenter


Member Typedef Documentation

typedef std::set<int> kmeans::Segmenter::RegionPruner::Alternates


Constructor & Destructor Documentation

virtual kmeans::Segmenter::RegionPruner::~RegionPruner (  )  [inline, protected, virtual]


Member Function Documentation

virtual void kmeans::Segmenter::RegionPruner::getClosebyRegions ( int  regNo,
std::set< int > *  closeby 
) [inline, protected, virtual]

an option function that can be implemented to get closeby regions (other than those that border this one).

Reimplemented in kmeans::KMeansSegmenter< T >::Pruner.

const Segmenter::Replacement& kmeans::Segmenter::RegionPruner::getReplacement (  )  const [inline]

Get the result after pruning, i.e.

after a call to Segementer::pruneRegions.

virtual int kmeans::Segmenter::RegionPruner::getReplacementLabel ( int  current_label,
const Alternates alternates 
) const [protected, pure virtual]

The method that should be over-ridden to provide the way of choosing the alternate label to removeRegions.

The set of alternatives will not include candidates for removal, and therefore can be empty.

Implemented in kmeans::KMeansSegmenter< T >::Pruner.

virtual void kmeans::Segmenter::RegionPruner::recompute ( const Segmenter::Replacement replacements  )  [protected, pure virtual]

Recompute any internal data after one pass of pruning.

Implemented in kmeans::KMeansSegmenter< T >::Pruner.

virtual bool kmeans::Segmenter::RegionPruner::shouldRemoveRegion ( int  reg_label  )  const [protected, pure virtual]

The method that should be over-ridden to tell removeRegions whether to remove a region.

Implemented in kmeans::KMeansSegmenter< T >::Pruner.


Friends And Related Function Documentation

friend class Segmenter [friend]


Generated on Fri May 4 13:40:22 2012 for WDSS-IIw2algs by  doxygen 1.4.7