Commit c5f99a53 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Small fixes in Scribo

	* scribo/core/line_info.hh: Fix invalid extended bboxes.

	* src/text_in_doc_preprocess.cc: Do not invert data anymore.

	* tests/filter/objects_with_holes.cc: Remove useless arguments.
parent 74fe4647
2010-10-25 Guillaume Lazzara <z@lrde.epita.fr>
Small fixes in Scribo
* scribo/core/line_info.hh: Fix invalid extended bboxes.
* src/text_in_doc_preprocess.cc: Do not invert data anymore.
* tests/filter/objects_with_holes.cc: Remove useless arguments.
2010-10-25 Guillaume Lazzara <z@lrde.epita.fr>
Add a new test for primitive::link::merge_double_link.
......
......@@ -672,6 +672,11 @@ namespace scribo
if (D <= 2 && A > 2)
D = A;
if (D < 0)
D = 0;
if (A < 0)
A = 0;
int delta = delta_of_line();
ebbox_ = mln::make::box2d(meanline_ - A, bbox().pmin().col() - delta,
......
......@@ -97,7 +97,5 @@ int main(int argc, char* argv[])
std::cout << "Binarizing foreground..." << std::endl;
image2d<bool> input_bin = scribo::binarization::sauvola_ms(input_gl, 101, 3);
logical::not_inplace(input_bin);
mln::io::pbm::save(input_bin, argv[2]);
}
......@@ -24,6 +24,8 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
// \file
#include <mln/core/image/image2d.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/io/pbm/load.hh>
......@@ -37,7 +39,7 @@
#include "tests/data.hh"
int main(int argc, char *argv[])
int main()
{
using namespace mln;
using namespace scribo;
......
Supports Markdown
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