$extrastylesheet
Functions | |
template<typename I , typename N , typename V > | |
mln::trait::concrete< I >::ret | scribo::filter::components_large (const Image< I > &input_, const Neighborhood< N > &nbh_, const V &label_type, unsigned max_size) |
template<typename L > | |
component_set< L > | scribo::filter::components_large (const component_set< L > &components, unsigned max_size) |
template<typename L > | |
component_set< L > | scribo::filter::components_on_border (const component_set< L > &components) |
template<typename I , typename N , typename V > | |
mln::trait::concrete< I >::ret | scribo::filter::components_small (const Image< I > &input, const Neighborhood< N > &nbh, V &nlabels, unsigned min_size) |
template<typename L > | |
component_set< L > | scribo::filter::components_small (const component_set< L > &components, unsigned min_size) |
template<typename I , typename N , typename V > | |
mln::trait::concrete< I >::ret | scribo::filter::components_thin (const Image< I > &input_, const Neighborhood< N > &nbh_, const V &label_type, unsigned min_thickness) |
template<typename L > | |
component_set< L > | scribo::filter::components_thin (const component_set< L > &components, unsigned min_thickness) |
template<typename L > | |
component_set< L > | scribo::filter::components_v_thin (const component_set< L > &comps, unsigned min_thinness) |
template<typename L > | |
component_set< L > | scribo::filter::components_with_two_holes (const component_set< L > &components, unsigned min_size) |
template<typename I , typename N , typename V > | |
mln::trait::concrete< I >::ret | scribo::filter::objects_h_thick (const Image< I > &input_, const Neighborhood< N > &nbh_, const V &label_type, unsigned max_thickness) |
template<typename L > | |
component_set< L > | scribo::filter::objects_h_thick (const component_set< L > &comps, unsigned max_thickness) |
template<typename I , typename N , typename V > | |
mln::trait::concrete< I >::ret | scribo::filter::objects_h_thin (const Image< I > &input_, const Neighborhood< N > &nbh_, const V &label_type, unsigned min_thinness) |
template<typename L > | |
component_set< L > | scribo::filter::objects_h_thin (const component_set< L > &comps, unsigned min_thinness) |
template<typename L > | |
component_set< L > | scribo::filter::objects_size_ratio (const component_set< L > &comps, float min_size_ratio) |
template<typename I , typename N , typename V > | |
mln::trait::concrete< I >::ret | scribo::filter::objects_thick (const Image< I > &input_, const Neighborhood< N > &nbh_, const V &label_type, unsigned max_thickness) |
template<typename L > | |
component_set< L > | scribo::filter::objects_thick (const component_set< L > &components, unsigned max_thickness) |
template<typename I , typename N , typename V > | |
mln::trait::concrete< I >::ret | scribo::filter::objects_v_thick (const Image< I > &input_, const Neighborhood< N > &nbh_, const V &label_type, unsigned max_thickness) |
template<typename L > | |
component_set< L > | scribo::filter::objects_v_thick (const component_set< L > &comps, unsigned max_thickness) |
template<typename I , typename N , typename V > | |
mln::trait::concrete< I >::ret | scribo::filter::objects_v_thin (const Image< I > &input, const Neighborhood< N > &nbh, const V &label_type, unsigned min_thinness) |
template<typename L > | |
component_set< L > | scribo::filter::objects_with_holes (const component_set< L > &components, unsigned min_holes_count, unsigned min_size) |
Component filtering routines.
mln::trait::concrete< I >::ret scribo::filter::components_large | ( | const Image< I > & | input_, |
const Neighborhood< N > & | nbh_, | ||
const V & | label_type, | ||
unsigned | max_size | ||
) |
Remove large objects in a binary image.
Set to 'false' all the removed objects.
[in] | input_ | A binary image. |
[in] | nbh_ | A neighborhood used for labeling input_ . |
[in] | label_type | The label type used for labeling. |
[in] | max_size | The minimum cardinality of an object. |
|
inline |
Remove too large components.
[in] | components | An object image. |
[in] | max_size | The maximum cardinality of an object. |
|
inline |
Remove components located on image borders.
[in] | components | An object image. |
mln::trait::concrete< I >::ret scribo::filter::components_small | ( | const Image< I > & | input, |
const Neighborhood< N > & | nbh, | ||
V & | nlabels, | ||
unsigned | min_size | ||
) |
Remove small components in a binary image.
Set to 'false' all the removed components.
[in] | input | A binary image. |
[in] | nbh | A neighborhood used for labeling input_ . |
[out] | nlabels | Return the number of components. Defines also the type used for labeling. |
[in] | min_size | The minimum cardinality of an object. |
component_set<L> scribo::filter::components_small | ( | const component_set< L > & | components, |
unsigned | min_size | ||
) |
Remove too small components.
[in] | components | An object image. |
[in] | min_size | The minimum cardinality of an object. |
|
inline |
Remove components thinner or equal to min_thickness
.
[in] | input_ | a binary image. |
[in] | nbh_ | a neighborhood used in labeling algorithms. |
[in] | label_type | the label type used for labeling. |
[in] | min_thickness | the minimum thickness value. |
|
inline |
Remove lines of text thinner or equal to min_thickness
.
[in] | components | An object image. |
[in] | min_thickness | the minimum thickness value. |
|
inline |
Remove lines of text thinner or equal to min_thinness
.
[in] | comps | A component set. |
[in] | min_thinness | the minimum thinness value. |
|
inline |
Remove components having at least two holes.
This is a fastest version since it is optimized for 2 holes detection.
[in] | components | A component set. |
[in] | min_size | The minimum hole area to take a hole into account. |
|
inline |
Remove objects horizontaly thicker or equal to max_thickness
.
[in] | input_ | A binary image. |
[in] | nbh_ | A neighborhood used in labeling algorithms. |
[in] | label_type | The label type used for labeling. |
[in] | max_thickness | The maximum thickness value. |
|
inline |
Remove objects horizontaly thicker or equal to max_thickness
.
[in] | comps | Component data. |
[in] | max_thickness | The minimum thickness value. |
|
inline |
Remove components thinner or equal to min_thinness
.
[in] | input_ | a binary image. |
[in] | nbh_ | a neighborhood used in labeling algorithms. |
[in] | label_type | the label type used for labeling. |
[in] | min_thinness | the minimum thinness value. |
|
inline |
Remove lines of text thinner or equal to min_thinness
.
[in] | comps | A component set. |
[in] | min_thinness | the minimum thinness value. |
component_set<L> scribo::filter::objects_size_ratio | ( | const component_set< L > & | comps, |
float | min_size_ratio | ||
) |
Invalidate components with a height/width ratio too low.
Compute the ratio height/width from the component bounding boxes and compare it to size_ratio
.
If the height/width ratio is lower than min_size_ratio then the component is invalidated.
|
inline |
Remove components thicker or equal to max_thickness
.
[in] | input_ | A binary image. |
[in] | nbh_ | A neighborhood used in labeling algorithms. |
[in] | label_type | The label type used for labeling. |
[in] | max_thickness | The maximum thickness value. |
|
inline |
Remove components thicker or equal to max_thickness
.
[in] | components | An object image. |
[in] | max_thickness | The maximum thickness value. |
|
inline |
Remove components verticaly thicker or equal to max_thickness
.
[in] | input_ | A binary image. |
[in] | nbh_ | A neighborhood used in labeling algorithms. |
[in] | label_type | The label type used for labeling. |
[in] | max_thickness | The maximum thickness value. |
|
inline |
Remove components verticaly thicker or equal to max_thickness
.
[in] | comps | A component set. |
[in] | max_thickness | The maximum thickness value. |
|
inline |
Remove components thinner or equal to min_thinness
.
[in] | input | a binary image. |
[in] | nbh | a neighborhood used in labeling algorithms. |
[in] | label_type | the label type used for labeling. |
[in] | min_thinness | the minimum thinness value. |
component_set<L> scribo::filter::objects_with_holes | ( | const component_set< L > & | components, |
unsigned | min_holes_count, | ||
unsigned | min_size | ||
) |
Remove components having a minimum number of holes.
[in] | components | A component set. |
[in] | min_holes_count | If a component have at least min_holes_count holes it is invalidated. |
[in] | min_size | The minimum hole area to take a hole into account. |