2919: [Scribo] Fix table removal.

* scribo/demat.hh: erosion had to be called vertically and horizontally before removing tables. --- milena/sandbox/ChangeLog | 8 ++++++++ milena/sandbox/scribo/demat.hh | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/milena/sandbox/ChangeLog b/milena/sandbox/ChangeLog index 3711cbb..3414875 100644 --- a/milena/sandbox/ChangeLog +++ b/milena/sandbox/ChangeLog @@ -1,3 +1,11 @@ +2008-11-19 Guillaume Lazzara <z@lrde.epita.fr> + + Fix table removal. + + * scribo/demat.hh: erosion had to be called vertically and + horizontally before removing tables. + + 2008-11-19 Alexandre Abraham <abraham@lrde.epita.fr> Little fixes. diff --git a/milena/sandbox/scribo/demat.hh b/milena/sandbox/scribo/demat.hh index 59e8014..87e8008 100644 --- a/milena/sandbox/scribo/demat.hh +++ b/milena/sandbox/scribo/demat.hh @@ -64,7 +64,7 @@ namespace scribo settings_t() { bbox_enlarge = 1; - ero_line_width = 101; + ero_line_width = 51; bbox_distance = 25; min_comp_size = 5; } @@ -493,7 +493,6 @@ namespace scribo #endif boxes_t vboxes = component_boxes(vfilter); - erase_table_boxes(in, vboxes, (settings.ero_line_width / 2), 0); // Lignes horizontales std::cout << "Removing horizontal lines" << std::endl; @@ -505,8 +504,9 @@ namespace scribo #endif boxes_t hboxes = component_boxes(hfilter); - erase_table_boxes(in, hboxes, (settings.ero_line_width / 2), 1); + erase_table_boxes(in, vboxes, (settings.ero_line_width / 2), 0); + erase_table_boxes(in, hboxes, (settings.ero_line_width / 2), 1); #ifndef NOUT image2d<rgb8> tmp = clone(output); -- 1.5.6.5
participants (1)
-
Guillaume Lazzara