$extrastylesheet
#include <scribo/toolchain/internal/text_in_doc_preprocess_functor.hh>
Public Member Functions | |
virtual int | nsteps () const |
virtual void | on_end () |
virtual void | on_new_progress_label (const char *label) |
virtual void | on_progress () |
virtual void | on_start () |
mln::trait::ch_value< I, bool > ::ret | operator() (const Image< I > &input_) |
Public Attributes | |
mln::trait::concrete< I >::ret | bg |
Binarization_Algo | binarization_algo |
bool | enable_denoising |
bool | enable_deskew |
bool | enable_fg_extraction |
bool | enable_subsample |
mln::trait::concrete< I >::ret | fg |
mln::util::timer | gt |
unsigned | lambda |
image2d< bool > | output |
double | sauvola_k2 |
double | sauvola_k3 |
double | sauvola_k4 |
unsigned | sauvola_win |
mln::util::timer | t |
bool | verbose |
Functor performing custom preprocessing algorithms on documents.
Whatever the options selected, this functor converts an input image into a graylevel image and try to binarize the latter.
Optional algorithms can be performed too:
The binarization algorithm can be chosen through binarization_algo option. It can be one of the algorithms detailed in enum Binarization_Algo.
Few parameters can be set for algorithms:
Definition at line 115 of file text_in_doc_preprocess_functor.hh.