w2kmeans::KMeansSegmenter< T >::Pruner Class Reference

Inheritance diagram for w2kmeans::KMeansSegmenter< T >::Pruner:

w2img::Segmenter::RegionPruner List of all members.

Detailed Description

template<class T>
class w2kmeans::KMeansSegmenter< T >::Pruner

Controls pruning of regions based on size.

The choice of best region is made through comparing measure distance.


Public Member Functions

 Pruner (const KMeansSegmenter< T > &seg, const code::Image< int > &orig, const w2img::SegmenterResult &label, const w2img::ImageAttr< T > &attr, size_t min_size, int max_depth)
void setMinimumSize (size_t newSize)
void setScale (int sc)
virtual w2img::Segmenter::Replacement pruneRegions ()
 Performs one step of pruning and returns result Usually, you'd want to relabel the image that you get after pruning.
virtual ~Pruner ()


Constructor & Destructor Documentation

template<class T>
w2kmeans::KMeansSegmenter< T >::Pruner::Pruner ( const KMeansSegmenter< T > &  seg,
const code::Image< int > &  orig,
const w2img::SegmenterResult label,
const w2img::ImageAttr< T > &  attr,
size_t  min_size,
int  max_depth 
)

template<class T>
virtual w2kmeans::KMeansSegmenter< T >::Pruner::~Pruner (  )  [inline, virtual]


Member Function Documentation

template<class T>
virtual w2img::Segmenter::Replacement w2kmeans::KMeansSegmenter< T >::Pruner::pruneRegions (  )  [virtual]

Performs one step of pruning and returns result Usually, you'd want to relabel the image that you get after pruning.

Implements w2img::Segmenter::RegionPruner.

template<class T>
void w2kmeans::KMeansSegmenter< T >::Pruner::setMinimumSize ( size_t  newSize  )  [inline]

template<class T>
void w2kmeans::KMeansSegmenter< T >::Pruner::setScale ( int  sc  )  [inline]


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