$extrastylesheet
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) |
Classical preprocessing toolchains for document image.
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.
[in] | input | An image. |
[in] | enable_fg_bg | Enable/Disable background removal. |
[in] | lambda | Parameter to the background removal. Maximum area of foreground objects. |
[in] | K | Binarization threshold parameter. Use the same value for all scales.(Default 0.34) |
[in] | enable_deskew | Deskew document. |
[in] | verbose | Enable/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.
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.
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.
[in] | input | An image. |
[in] | lambda | Parameter to the background removal. |
[in] | verbose | Enable/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.
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.
[in] | input | An image. |
[in] | lambda | Parameter to the background removal. |
[in] | k2 | Binarization threshold parameter for scale 2. (Default 0.34) |
[in] | k3 | Binarization threshold parameter for scale 3. (Default 0.34) |
[in] | k4 | Binarization threshold parameter for scale 4. (Default 0.34) |
[in] | enable_fg_bg | If set to True tries to identify background components and remove them. |
[in,out] | fg | The foreground layer of input . |
[in] | enable_deskew | Deskew document. |
[in] | verbose | Enable/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.
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.