classPiiImage::ObjectSizeLimiter
#include <PiiLabeling.h>
An object size limiter for labelImage().
Description
This class counts the occurrences of each label and removes all objects smaller than or equal to than the specified threshold
Constructors and destructor
|
(
Create a size limiter that only accepts objects larger than
|
Public member functions
|
void
|
( )
Extend the list of stored labels by one. |
|
void
|
(
The labelImage() function found a pixel it labeled as
|
|
void
|
Retains all labels with more than |
|
void
|
Called by labelImage() to store the intial set of labels. |
Function details
-
ObjectSizeLimiter
(- int sizeThreshold
[inline]Create a size limiter that only accepts objects larger than
sizeThreshold. -
void addLabel
()[inline]Extend the list of stored labels by one.
-
void addPixel
(- int label
[inline]The labelImage() function found a pixel it labeled as
label.Increases the label's histogram.
-
Retains all labels with more than
sizeThresholdhistogram entries.Sets all other labels to zero.
-
Called by labelImage() to store the intial set of labels.
The labels are just cloned and stored.
Add a note
Not a single note added yet. Be the first, add yours.