Commit 94d54581 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Fix call to text_in_doc_preprocess().

	* src/content_in_hdoc.cc,
	* src/contest/hdlac-2011/content_in_hdoc_hdlac.cc,
	* src/non_text_components.cc,
	* src/text_in_doc_preprocess.cc: Here.
parent 6c791fef
2013-02-26 Guillaume Lazzara <z@lrde.epita.fr>
Fix call to text_in_doc_preprocess().
* src/content_in_hdoc.cc,
* src/contest/hdlac-2011/content_in_hdoc_hdlac.cc,
* src/non_text_components.cc,
* src/text_in_doc_preprocess.cc: Here.
2013-02-26 Guillaume Lazzara <z@lrde.epita.fr> 2013-02-26 Guillaume Lazzara <z@lrde.epita.fr>
Fix various warnings. Fix various warnings.
......
// Copyright (C) 2010, 2011, 2012 EPITA Research and Development // Copyright (C) 2010, 2011, 2012, 2013 EPITA Research and Development
// Laboratory (LRDE) // Laboratory (LRDE)
// //
// This file is part of Olena. // This file is part of Olena.
...@@ -118,7 +118,7 @@ int main(int argc, char* argv[]) ...@@ -118,7 +118,7 @@ int main(int argc, char* argv[])
std::cout << "Using K = " << K << std::endl; std::cout << "Using K = " << K << std::endl;
} }
input_preproc = toolchain::text_in_doc_preprocess(input, false, K, input_preproc = toolchain::text_in_doc_preprocess(input, false, 0, K,
false, false); false, false);
// Cleanup components on borders // Cleanup components on borders
......
...@@ -87,6 +87,8 @@ int main(int argc, char* argv[]) ...@@ -87,6 +87,8 @@ int main(int argc, char* argv[])
image2d<value::rgb8> input; image2d<value::rgb8> input;
mln::io::magick::load(input, argv[1]); mln::io::magick::load(input, argv[1]);
mln::debug::internal::filename_prefix = basename(argv[1]);
// Preprocess document // Preprocess document
image2d<bool> input_preproc; image2d<bool> input_preproc;
{ {
...@@ -133,5 +135,11 @@ int main(int argc, char* argv[]) ...@@ -133,5 +135,11 @@ int main(int argc, char* argv[])
scribo::io::xml::save(doc, argv[2], scribo::io::xml::Page); scribo::io::xml::save(doc, argv[2], scribo::io::xml::Page);
std::cout << "End of process - " << t << std::endl; std::cout << "End of process - " << t << std::endl;
scribo::io::img::save(doc, mln::debug::filename("debug_wo_image.png"),
scribo::io::img::DebugWoImage);
scribo::io::img::save(doc, mln::debug::filename("debug_with_image.png"),
scribo::io::img::DebugWithImage);
trace::exiting("main"); trace::exiting("main");
} }
...@@ -93,7 +93,7 @@ int main(int argc, char* argv[]) ...@@ -93,7 +93,7 @@ int main(int argc, char* argv[])
// Preprocess document // Preprocess document
image2d<bool> image2d<bool>
input_preproc = toolchain::text_in_doc_preprocess(input, false, 0.34, input_preproc = toolchain::text_in_doc_preprocess(input, false, 0, 0.34,
false, false); false, false);
......
...@@ -91,7 +91,7 @@ int main(int argc, char* argv[]) ...@@ -91,7 +91,7 @@ int main(int argc, char* argv[])
image2d<bool> output; image2d<bool> output;
output = toolchain::text_in_doc_preprocess(input_rgb, fg_extraction, output = toolchain::text_in_doc_preprocess(input_rgb, fg_extraction,
lambda, 0.34, verbose); lambda, 0.34, false, verbose);
mln::io::pbm::save(output, options.arg("output.pbm")); mln::io::pbm::save(output, options.arg("output.pbm"));
} }
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