27 #ifndef SCRIBO_TOOLCHAIN_TEXT_IN_PICTURE_HH
28 # define SCRIBO_TOOLCHAIN_TEXT_IN_PICTURE_HH
35 # include <scribo/toolchain/internal/text_in_picture_functor.hh>
66 component_set<mln_ch_value(I, def::lbl_type)>
68 bool bg_removal,
bool multi_scale_bin,
69 unsigned max_dim_size = 0,
unsigned lambda = 0,
70 bool verbose =
false);
73 # ifndef MLN_INCLUDE_ONLY
76 component_set<mln_ch_value(I, def::lbl_type)>
78 bool bg_removal,
bool multi_scale_bin,
79 unsigned max_dim_size,
unsigned lambda,
82 mln_trace(
"scribo::toolchain::text_in_picture");
84 const I& input_rgb =
exact(input_rgb_);
85 mln_precondition(input_rgb.is_valid());
87 internal::text_in_picture_functor<I> f;
88 f.enable_bg_removal = bg_removal;
89 f.enable_multi_scale_bin = multi_scale_bin;
90 f.max_dim_size = max_dim_size;
94 component_set<mln_ch_value(I, def::lbl_type)>
95 output = f(input_rgb);
101 # endif // ! MLN_INCLUDE_ONLY
109 #endif // SCRIBO_TOOLCHAIN_TEXT_IN_PICTURE_HH