Commit b264e7a9 authored by Guillaume Lazzara's avatar Guillaume Lazzara

[Scribo] Fix table removal.

	* scribo/demat.hh: erosion had to be called vertically and
	horizontally before removing tables.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/branches/cleanup-2008@2919 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent c0f8ccc3
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.
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment