Detailed Description
Elements filtering routines.
Function Documentation
template<typename L >
void scribo::filter::images_in_paragraph |
( |
document< L > & |
doc | ) |
|
Invalidate false positive images.
- Parameters
-
[in,out] | doc | A document structure. |
template<typename L >
void scribo::filter::objects_in_borders |
( |
component_set< L > & |
components, |
|
|
float |
vratio, |
|
|
float |
hratio |
|
) |
| |
Invalidate components located close to the image borders.
- Parameters
-
[in,out] | components | A component set. |
[in] | vratio | Ratio to be used for evaluating the inner border size in which vertical separators will be invalidated. |
[in] | hratio | Ratio to be used for evaluating the inner border size in which horizontal separators will be invalidated. |
- Warning
- It only invalidates components in the given component_set.
-----------
|_!____!__|
| ! ! <--------- Components located in this area are
| ! ! | invalidated.
| ! ! |
|_!____!__|
| ! ! |
-----------
template<typename L >
void scribo::filter::separators_in_borders |
( |
document< L > & |
doc, |
|
|
float |
vratio, |
|
|
float |
hratio |
|
) |
| |
Invalidate separators located close to the image borders.
- Parameters
-
[in,out] | doc | A document structure. |
[in] | vratio | Ratio to be used for evaluating the inner border size in which vertical separators will be invalidated. |
[in] | hratio | Ratio to be used for evaluating the inner border size in which horizontal separators will be invalidated. |
- Warning
- it does not remove separators from separator image. It only invalidate separator components in their respective component_set.
-----------
|_!____!__|
| ! ! <--------- Separators located in this area are
| ! ! | invalidated.
| ! ! |
|_!____!__|
| ! ! |
-----------
template<typename L >
void scribo::filter::separators_in_element |
( |
document< L > & |
doc | ) |
|
Invalidate false positive separators.
- Parameters
-
[in,out] | doc | A document structure. |
Warning: it does not remove separators from separator image. It only invalidate separator components in their respective component_set.
template<typename L >
void scribo::filter::separators_in_paragraph |
( |
document< L > & |
doc, |
|
|
unsigned |
hmin_size, |
|
|
unsigned |
vmin_size |
|
) |
| |
Invalidate false positive separators.
- Parameters
-
[in,out] | doc | A document structure. |
[in] | hmin_size | Minimum width of a line to be considered as separators. |
[in] | vmin_size | Minimum height of a line to be considered as separators. |
Warning: it does not remove separators from separator image. It only invalidate separator components in their respective component_set.
template<typename L >
void scribo::filter::separators_vert_in_borders |
( |
document< L > & |
doc | ) |
|
Invalidate vertical separators located close to the image borders.
- Parameters
-
[in,out] | doc | A document structure. |
Warning: it does not remove separators from separator image. It only invalidate separator components in their respective component_set.
-----------
|_!____!__|
| ! ! <--------- Separators located in this area are
| ! ! | invalidated.
| ! ! |
|_!____!__|
| ! ! |
-----------