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

Functions

template<typename I , typename N >
line_set< typename
mln::trait::ch_value< I,
scribo::def::lbl_type >::ret
scribo::text::extract_lines (const Image< I > &input, const Neighborhood< N > &nbh, const typename mln::trait::ch_value< I, bool >::ret &separators)
template<typename I , typename N >
line_set< typename
mln::trait::ch_value< I,
scribo::def::lbl_type >::ret
scribo::text::extract_lines (const Image< I > &input, const Neighborhood< N > &nbh)
template<typename L >
line_set< typename
mln::trait::ch_value< L,
scribo::def::lbl_type >::ret
scribo::text::extract_lines (const component_set< L > &input)
template<typename I , typename J , typename N >
line_set< typename
mln::trait::ch_value< I,
scribo::def::lbl_type >::ret
scribo::text::extract_lines_with_features (const Image< I > &input, const Image< J > &input_binary, const Neighborhood< N > &nbh, const typename mln::trait::ch_value< I, bool >::ret &separators)
template<typename I , typename J , typename N >
line_set< typename
mln::trait::ch_value< I,
scribo::def::lbl_type >::ret
scribo::text::extract_lines_with_features (const Image< I > &input, const Image< J > &input_binary, const Neighborhood< N > &nbh)
template<typename I , typename N >
line_set< typename
mln::trait::ch_value< I,
scribo::def::lbl_type >::ret
scribo::text::extract_lines_wo_merge (const Image< I > &input, const Neighborhood< N > &nbh, const typename mln::trait::ch_value< I, bool >::ret &separators)
template<typename I , typename N >
line_set< typename
mln::trait::ch_value< I,
scribo::def::lbl_type >::ret
scribo::text::extract_lines_wo_merge (const Image< I > &input, const Neighborhood< N > &nbh)
template<typename L , typename N >
line_set< typename
mln::trait::ch_value< L,
scribo::def::lbl_type >::ret
scribo::text::extract_lines_wo_merge (const document< L > &doc, const Neighborhood< N > &nbh)
template<typename L , typename N >
line_set< typename
mln::trait::ch_value< L,
scribo::def::lbl_type >::ret
scribo::text::extract_lines_wo_merge (const document< L > &doc, const Neighborhood< N > &nbh, const typename mln::trait::ch_value< L, bool >::ret &separators)
template<typename L >
paragraph_set< L > scribo::text::extract_paragraphs (line_set< L > &lines, const image2d< bool > &input)
template<typename L >
paragraph_set< L > scribo::text::extract_paragraphs_hdoc (line_set< L > &lines, const image2d< bool > &input)
template<typename L >
line_links< L > scribo::text::link_lines (const line_set< L > &lines)
template<typename L >
line_set< L > scribo::text::merging (const scribo::line_set< L > &lines)
template<typename L >
line_set< L > scribo::text::merging_hdoc (const scribo::line_set< L > &lines)

Detailed Description

All routines/algorithms to extract text.

Function Documentation

template<typename I , typename N >
line_set<typename mln::trait::ch_value< I , scribo::def::lbl_type >::ret> scribo::text::extract_lines ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
const typename mln::trait::ch_value< I, bool >::ret separators 
)

Extract lines of text in a binary image.

Parameters
[in]inputA binary image.
[in]nbhA neighborhood used for labeling.
[in]separatorsA binary image with separator information.
Returns
A set of lines.
template<typename I , typename N >
line_set<typename mln::trait::ch_value< I , scribo::def::lbl_type >::ret> scribo::text::extract_lines ( const Image< I > &  input,
const Neighborhood< N > &  nbh 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename L >
line_set<typename mln::trait::ch_value< L , scribo::def::lbl_type >::ret> scribo::text::extract_lines ( const component_set< L > &  input)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename I , typename J , typename N >
line_set<typename mln::trait::ch_value< I , scribo::def::lbl_type >::ret> scribo::text::extract_lines_with_features ( const Image< I > &  input,
const Image< J > &  input_binary,
const Neighborhood< N > &  nbh,
const typename mln::trait::ch_value< I, bool >::ret separators 
)

Extract lines of text in a binary image.

Parameters
[in]inputOriginal color image.
[in]input_binaryA binary image.
[in]nbhA neighborhood used for labeling.
[in]separatorsA binary image with separator information.
Returns
A set of lines.
template<typename I , typename J , typename N >
line_set<typename mln::trait::ch_value< I , scribo::def::lbl_type >::ret> scribo::text::extract_lines_with_features ( const Image< I > &  input,
const Image< J > &  input_binary,
const Neighborhood< N > &  nbh 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename I , typename N >
line_set<typename mln::trait::ch_value< I , scribo::def::lbl_type >::ret> scribo::text::extract_lines_wo_merge ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
const typename mln::trait::ch_value< I, bool >::ret separators 
)

Extract lines of text in a binary image.

Parameters
[in]inputA binary image.
[in]nbhA neighborhood used for labeling.
[in]separatorsA binary image with separator information.
Returns
A set of lines.
template<typename I , typename N >
line_set<typename mln::trait::ch_value< I , scribo::def::lbl_type >::ret> scribo::text::extract_lines_wo_merge ( const Image< I > &  input,
const Neighborhood< N > &  nbh 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename L , typename N >
line_set<typename mln::trait::ch_value< L , scribo::def::lbl_type >::ret> scribo::text::extract_lines_wo_merge ( const document< L > &  doc,
const Neighborhood< N > &  nbh 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename L , typename N >
line_set<typename mln::trait::ch_value< L , scribo::def::lbl_type >::ret> scribo::text::extract_lines_wo_merge ( const document< L > &  doc,
const Neighborhood< N > &  nbh,
const typename mln::trait::ch_value< L, bool >::ret separators 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename L >
paragraph_set<L> scribo::text::extract_paragraphs ( line_set< L > &  lines,
const image2d< bool > &  input 
)
inline

Extract paragraphs.

template<typename L >
paragraph_set<L> scribo::text::extract_paragraphs_hdoc ( line_set< L > &  lines,
const image2d< bool > &  input 
)

Extract paragraph in old documents.

template<typename L >
line_links<L> scribo::text::link_lines ( const line_set< L > &  lines)

Link text lines to prepare paragraph construction.

Lines MUST be tagged as line::Text to be considered in this processing.

template<typename L >
line_set<L> scribo::text::merging ( const scribo::line_set< L > &  lines)

Merge text component in order to reconstruct text lines.

Parameters
[in]linesA line set.
Returns
A new line set. Line ids are preserved and merged lines (not valid anymore) are tagged with line::Merged. The lines produced with this algorithm (valid lines) are tagged with line::None. Line type is also set either with line::Text or line::Punctuation.
template<typename L >
line_set<L> scribo::text::merging_hdoc ( const scribo::line_set< L > &  lines)

Merge text component in order to reconstruct text lines in old documents.

Parameters
[in]linesA line set.
Returns
A new line set. Line ids are preserved and merged lines (not valid anymore) are tagged with line::Merged. The lines produced with this algorithm (valid lines) are tagged with line::None. Line type is also set either with line::Text or line::Punctuation.