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

Catch up with the current interface of scribo::debug::usage.

	* src/debug/show_links_bottom_aligned.cc,
	* src/debug/show_links_top_aligned.cc,
	* src/misc/negate.cc,
	* src/misc/superpose.cc,
	* src/preprocessing/rotate_90.cc,
	* src/primitive/extract/lines_pattern.cc,
	* src/primitive/find/find_pattern_lines.cc,
	* src/table/extract.cc: Here.
parent 08771586
2010-08-09 Guillaume Lazzara <z@lrde.epita.fr>
Catch up with the current interface of scribo::debug::usage.
* src/debug/show_links_bottom_aligned.cc,
* src/debug/show_links_top_aligned.cc,
* src/misc/negate.cc,
* src/misc/superpose.cc,
* src/preprocessing/rotate_90.cc,
* src/primitive/extract/lines_pattern.cc,
* src/primitive/find/find_pattern_lines.cc,
* src/table/extract.cc: Here.
2010-08-09 Guillaume Lazzara <z@lrde.epita.fr>
Replace the use of object_image with component_set.
......
......@@ -65,10 +65,10 @@ int main(int argc, char* argv[])
if (argc != 5)
return scribo::debug::usage(argv,
"Show valid or invalid links according the horizontal alignment (based on bottom line).",
"Show valid or invalid links according the"
"horizontal alignment (based on bottom line).",
"input.pbm max_dist max_alpha output.ppm",
args_desc,
"A color image. Valid links are drawn in green, invalid ones in red.");
args_desc);
image2d<bool> input;
io::pbm::load(input, argv[1]);
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -48,7 +49,8 @@
const char *args_desc[][2] =
{
{ "input.pbm", "A binary image. True for objects and False for the background." },
{ "input.pbm", "A binary image. True for objects and False for the "
"background." },
{ "max_dist", "Maximum distance lookup (common value 45)" },
{ "max_alpha", "Max angle between two object tops. (common value : 5)" },
{0, 0}
......@@ -63,10 +65,10 @@ int main(int argc, char* argv[])
if (argc != 5)
return scribo::debug::usage(argv,
"Show valid or invalid links according the horizontal alignment (based on top line).",
"Show valid or invalid links according the "
"horizontal alignment (based on top line).",
"input.pbm max_dist max_alpha output.ppm",
args_desc,
"A color image. Valid links are drawn in green, invalid ones in red.");
args_desc);
image2d<bool> input;
io::pbm::load(input, argv[1]);
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -46,7 +47,7 @@ int main(int argc, char *argv[])
return scribo::debug::usage(argv,
"Negate a binary image",
"input.pbm output.pbm",
args_desc, "A binary image.");
args_desc);
image2d<bool> input;
io::pbm::load(input, argv[1]);
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -49,9 +50,7 @@ int main(int argc, char *argv[])
return scribo::debug::usage(argv,
"Superpose two binary images",
"input.pbm data.pbm output.ppm",
args_desc,
"A color image. Data from 'data.pbm' is \
colored in red.");
args_desc);
image2d<bool> input;
io::pbm::load(input, argv[1]);
......
// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
// Olena is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation, version 2 of the License.
//
// Olena is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Olena. If not, see <http://www.gnu.org/licenses/>.
//
// As a special exception, you may use this file as part of a free
// software project without restriction. Specifically, if other files
// instantiate templates or use macros or inline functions from this
// file, or you compile this file and link it with other files to produce
// an executable, this file does not by itself cause the resulting
// executable to be covered by the GNU General Public License. This
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
#include <mln/core/image/image2d.hh>
#include <mln/value/rgb8.hh>
#include <mln/io/magick/load.hh>
......@@ -13,7 +38,8 @@ const char *args_desc[][2] =
{
{ "input.*", "An image." },
{ "output.ppm", "A rotated image." },
{ "positive", "if set to 1, performs a +90 rotation; -90 otherwise. (default: 0)" },
{ "positive", "if set to 1, performs a +90 rotation; -90 otherwise. "
"(default: 0)" },
{0, 0}
};
......@@ -26,7 +52,7 @@ int main(int argc, char *argv[])
if (argc != 3 && argc != 4)
return scribo::debug::usage(argv,
"Fast +90/-90 rotation",
"input.* output.ppm",
"input.* output.ppm <positive>",
args_desc);
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -51,8 +52,7 @@ int main(int argc, char *argv[])
return scribo::debug::usage(argv,
"Extract horizontal lines patterns",
"input.pbm length delta output.pbm",
args_desc,
"A binary image of lines.");
args_desc);
trace::entering("main");
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -52,10 +53,10 @@ int main(int argc, char *argv[])
if (argc != 4)
return scribo::debug::usage(argv,
"Extract discontinued horizontal and vertical lines",
"Extract discontinued horizontal and "
"vertical lines",
"input.pbm length output.ppm",
args_desc,
"A color image. Horizontal lines are in red and vertical lines in green.");
args_desc);
trace::entering("main");
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -55,9 +56,7 @@ int main(int argc, char* argv[])
return scribo::debug::usage(argv,
"Extract tables from a binary image.",
"input.pbm output.dump output.ppm",
args_desc,
"A color images. 'White' color means \
the background, other colors indicates cells.");
args_desc);
trace::entering("main");
......
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