Inheritance diagram for kmeans::Segmenter::RegionPruner:
Public Types | |
typedef std::set< int > | Alternates |
Public Member Functions | |
const Segmenter::Replacement & | getReplacement () 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 |
typedef std::set<int> kmeans::Segmenter::RegionPruner::Alternates |
virtual kmeans::Segmenter::RegionPruner::~RegionPruner | ( | ) | [inline, protected, virtual] |
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.
friend class Segmenter [friend] |