Inheritance diagram for w2kmeans::KMeansSegmenter< T >::Pruner:
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 () |
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 | |||
) |
virtual w2kmeans::KMeansSegmenter< T >::Pruner::~Pruner | ( | ) | [inline, virtual] |
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.
void w2kmeans::KMeansSegmenter< T >::Pruner::setMinimumSize | ( | size_t | newSize | ) | [inline] |
void w2kmeans::KMeansSegmenter< T >::Pruner::setScale | ( | int | sc | ) | [inline] |