$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scribo::text Namespace Reference

Functions

template<typename L , typename I >
mln::trait::concrete< I >::ret clean (const line_info< L > &line, const Image< I > &input_)
template<typename L , typename I >
void clean_inplace (const line_info< L > &line, Image< I > &input)
template<typename I , typename N >
line_set< typename
mln::trait::ch_value< I,
scribo::def::lbl_type >::ret
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
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
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
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
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
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
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
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
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 > extract_paragraphs (line_set< L > &lines, const image2d< bool > &input)
template<typename L >
paragraph_set< L > extract_paragraphs_hdoc (line_set< L > &lines, const image2d< bool > &input)
template<typename L >
line_links< L > link_lines (const line_set< L > &lines)
template<typename L >
line_set< L > look_like_text_lines (const scribo::line_set< L > &l)
template<typename L >
void look_like_text_lines_inplace (scribo::line_set< L > &line)
template<typename L >
line_set< L > merging (const scribo::line_set< L > &lines)
template<typename L >
line_set< L > merging_hdoc (const scribo::line_set< L > &lines)
template<typename L >
mln::trait::concrete< L >::ret paragraphs_closing (const paragraph_set< L > &parset)
template<typename L >
void recognition (line_set< L > &lines, const char *language)
template<typename I >
void recognition (const Image< I > &line, const char *language, const std::string &output_file=std::string())

Detailed Description

Namespace of routines working on text components.

Function Documentation

template<typename L , typename I >
mln::trait::concrete< I >::ret scribo::text::clean ( const line_info< L > &  line,
const Image< I > &  input_ 
)

Improve quality of an image with text.

Parameters
[in]lineLine info providing statistics about the text in the corresponding image input.
[in]input_A binary image. Object are set to 'false' and backgroud to 'true'.
Returns
An image. The text have better quality.
template<typename L , typename I >
void scribo::text::clean_inplace ( const line_info< L > &  line,
Image< I > &  input 
)

Improve quality of an image with text.

Parameters
[in]lineLine info providing statistics about the text in the corresponding image input.
[in,out]inputA binary image. Object are set to 'false' and backgroud to 'true'.
template<typename L >
line_set<L> scribo::text::look_like_text_lines ( const scribo::line_set< L > &  l)

Set line type to line::Text according to criterion.

template<typename L >
void scribo::text::look_like_text_lines_inplace ( scribo::line_set< L > &  line)

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