29 #include <mln/core/image/image2d.hh>
30 #include <mln/core/alias/neighb2d.hh>
32 #include <mln/data/convert.hh>
34 #include <mln/value/rgb8.hh>
35 #include <mln/value/label_16.hh>
36 #include <mln/literal/colors.hh>
38 #include <mln/io/pbm/load.hh>
39 #include <mln/io/ppm/save.hh>
41 #include <scribo/core/component_set.hh>
43 #include <scribo/primitive/extract/components.hh>
44 #include <scribo/primitive/link/with_single_right_link.hh>
45 #include <scribo/filter/object_links_aligned.hh>
47 #include <scribo/debug/alignment_decision_image.hh>
48 #include <scribo/debug/usage.hh>
52 const char *args_desc[][2] =
54 {
"input.pbm",
"A binary image. True for objects and False for the background." },
55 {
"max_dist",
"Maximum distance lookup (common value 45)" },
56 {
"max_alpha",
"Max angle between two object bottoms. (common value : 5)" },
61 int main(
int argc,
char* argv[])
63 using namespace scribo;
64 using namespace scribo::primitive::internal;
69 "Show valid or invalid links according the"
70 "horizontal alignment (based on bottom line).",
71 "input.pbm max_dist max_alpha output.ppm",
78 value::label_16 nbboxes;
91 anchor::StrictBottomCenter);
98 anchor::StrictBottomCenter);