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

Functions

template<typename I >
mln::trait::ch_value< I, bool >
::ret 
scribo::toolchain::text_in_doc_preprocess (const Image< I > &input, bool enable_fg_bg, unsigned lambda, double K, bool enable_deskew, bool verbose)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
scribo::toolchain::text_in_doc_preprocess (const Image< I > &input, bool enable_fg_bg, bool verbose)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
scribo::toolchain::text_in_doc_preprocess (const Image< I > &input, unsigned lambda, bool verbose)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
scribo::toolchain::text_in_doc_preprocess (const Image< I > &input, unsigned lambda, double k2, double k3, double k4, bool enable_fg_bg, Image< I > &fg, bool enable_deskew, bool verbose)
template<typename I >
mln::trait::ch_value< I, bool >
::ret 
scribo::toolchain::text_in_doc_preprocess (const Image< I > &input, unsigned lambda, bool enable_fg_bg, Image< I > &fg, bool enable_deskew, bool verbose)

Detailed Description

Classical preprocessing toolchains for document image.

Function Documentation

template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::toolchain::text_in_doc_preprocess ( const Image< I > &  input,
bool  enable_fg_bg,
unsigned  lambda,
double  K,
bool  enable_deskew,
bool  verbose 
)

Preprocess a document before looking for its content.

Parameters
[in]inputAn image.
[in]enable_fg_bgEnable/Disable background removal.
[in]lambdaParameter to the background removal. Maximum area of foreground objects.
[in]KBinarization threshold parameter. Use the same value for all scales.(Default 0.34)
[in]enable_deskewDeskew document.
[in]verboseEnable/Disable debug output on std::cout.

If enable_fg_bg is set to 'True' then a background removal is performed. Its parameter lambda is automatically set according to the input image size.

template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::toolchain::text_in_doc_preprocess ( const Image< I > &  input,
bool  enable_fg_bg,
bool  verbose 
)

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

template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::toolchain::text_in_doc_preprocess ( const Image< I > &  input,
unsigned  lambda,
bool  verbose 
)

Preprocess a document before looking for its content.

Parameters
[in]inputAn image.
[in]lambdaParameter to the background removal.
[in]verboseEnable/Disable debug information printed on std::cout.

If lambda is set to '0' no background removal is performed. Otherwise, a background removal is performed with the given lambda value.

template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::toolchain::text_in_doc_preprocess ( const Image< I > &  input,
unsigned  lambda,
double  k2,
double  k3,
double  k4,
bool  enable_fg_bg,
Image< I > &  fg,
bool  enable_deskew,
bool  verbose 
)

Preprocess a document before looking for its content. This methods relies on a multi-scale implementation of Sauvola's binarization.

Parameters
[in]inputAn image.
[in]lambdaParameter to the background removal.
[in]k2Binarization threshold parameter for scale 2. (Default 0.34)
[in]k3Binarization threshold parameter for scale 3. (Default 0.34)
[in]k4Binarization threshold parameter for scale 4. (Default 0.34)
[in]enable_fg_bgIf set to True tries to identify background components and remove them.
[in,out]fgThe foreground layer of input.
[in]enable_deskewDeskew document.
[in]verboseEnable/Disable debug information printed on std::cout.

If lambda is set to '0' no background removal is performed. Otherwise, a background removal is performed with the given lambda value.

template<typename I >
mln::trait::ch_value< I , bool >::ret scribo::toolchain::text_in_doc_preprocess ( const Image< I > &  input,
unsigned  lambda,
bool  enable_fg_bg,
Image< I > &  fg,
bool  enable_deskew,
bool  verbose 
)

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