$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Element Filtering

Functions

template<typename L >
void scribo::filter::images_in_paragraph (document< L > &doc)
template<typename L >
void scribo::filter::objects_in_borders (component_set< L > &components, float vratio, float hratio)
template<typename L >
void scribo::filter::separators_in_borders (document< L > &doc, float vratio, float hratio)
template<typename L >
void scribo::filter::separators_in_element (document< L > &doc)
template<typename L >
void scribo::filter::separators_in_paragraph (document< L > &doc, unsigned hmin_size, unsigned vmin_size)
template<typename L >
void scribo::filter::separators_vert_in_borders (document< L > &doc)

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]docA 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]componentsA component set.
[in]vratioRatio to be used for evaluating the inner border size in which vertical separators will be invalidated.
[in]hratioRatio 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]docA document structure.
[in]vratioRatio to be used for evaluating the inner border size in which vertical separators will be invalidated.
[in]hratioRatio 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]docA 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]docA document structure.
[in]hmin_sizeMinimum width of a line to be considered as separators.
[in]vmin_sizeMinimum 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]docA 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.
       | !    !  |
       |_!____!__|
       | !    !  |
       -----------