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

Functions

template<typename L >
paragraph_set< L > scribo::filter::paragraphs_bbox_overlap (const paragraph_set< L > &parset)
template<typename L >
void scribo::filter::paragraphs_in_borders (document< L > &doc)
template<typename L >
void scribo::filter::paragraphs_in_image (document< L > &doc)

Detailed Description

Paragraph filtering routines.

Function Documentation

template<typename L >
paragraph_set<L> scribo::filter::paragraphs_bbox_overlap ( const paragraph_set< L > &  parset)

Remove invalid paragraphs.

Parameters
[in]parsetA paragraph set.
Returns
A paragraph set with invalid paragraphs tag set to Paragraph::Ignored.
template<typename L >
void scribo::filter::paragraphs_in_borders ( document< L > &  doc)

Invalidate paragraphs located close to the image borders.

Parameters
[in,out]docA document structure.

Warning: it does not remove paragraphs from separator image. It only invalidate separator components in their respective component_set.

       -----------
       |_!____!__|
       | !    ! <--------- Paragraphs located in this area are
       | !    !  |         invalidated.
       | !    !  |
       |_!____!__|
       | !    !  |
       -----------
template<typename L >
void scribo::filter::paragraphs_in_image ( document< L > &  doc)

Remove invalid paragraphs.

Parameters
[in,out]docA document structure.
Returns
A paragraph set with invalid paragraphs tag set to Paragraph::Ignored.