Olena-patches
Threads by month
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
June 2010
- 9 participants
- 276 discussions
03 Jun '10
* Makefile.am,
* apps/mesh-segm-skel/Makefile.am,
* mesh/Makefile.am,
* tests/Makefile.am,
* tests/accu/Makefile.am,
* tests/accu/image/Makefile.am,
* tests/accu/math/Makefile.am,
* tests/accu/shape/Makefile.am,
* tests/accu/site_set/Makefile.am,
* tests/accu/stat/Makefile.am,
* tests/algebra/Makefile.am,
* tests/arith/Makefile.am,
* tests/binarization/Makefile.am,
* tests/border/Makefile.am,
* tests/canvas/Makefile.am,
* tests/canvas/browsing/Makefile.am,
* tests/canvas/morpho/Makefile.am,
* tests/convert/Makefile.am,
* tests/convert/impl/Makefile.am,
* tests/core/Makefile.am,
* tests/core/alias/Makefile.am,
* tests/core/image/Makefile.am,
* tests/core/image/dmorph/Makefile.am,
* tests/core/image/imorph/Makefile.am,
* tests/core/image/vmorph/Makefile.am,
* tests/core/other/Makefile.am,
* tests/core/routine/Makefile.am,
* tests/core/site_set/Makefile.am,
* tests/data/Makefile.am,
* tests/data/approx/Makefile.am,
* tests/data/naive/Makefile.am,
* tests/debug/Makefile.am,
* tests/display/Makefile.am,
* tests/draw/Makefile.am,
* tests/estim/Makefile.am,
* tests/extension/Makefile.am,
* tests/extract/Makefile.am,
* tests/fun/Makefile.am,
* tests/fun/i2v/Makefile.am,
* tests/fun/p2b/Makefile.am,
* tests/fun/p2p/Makefile.am,
* tests/fun/p2v/Makefile.am,
* tests/fun/stat/Makefile.am,
* tests/fun/v2i/Makefile.am,
* tests/fun/v2v/Makefile.am,
* tests/fun/vv2v/Makefile.am,
* tests/fun/x2x/Makefile.am,
* tests/geom/Makefile.am,
* tests/graph/Makefile.am,
* tests/graph/attribute/Makefile.am,
* tests/histo/Makefile.am,
* tests/io/Makefile.am,
* tests/io/dicom/Makefile.am,
* tests/io/dump/Makefile.am,
* tests/io/fits/Makefile.am,
* tests/io/fld/Makefile.am,
* tests/io/magick/Makefile.am,
* tests/io/off/Makefile.am,
* tests/io/pbm/Makefile.am,
* tests/io/pbms/Makefile.am,
* tests/io/pfm/Makefile.am,
* tests/io/pgm/Makefile.am,
* tests/io/pgms/Makefile.am,
* tests/io/pnm/Makefile.am,
* tests/io/ppm/Makefile.am,
* tests/io/ppms/Makefile.am,
* tests/io/tiff/Makefile.am,
* tests/labeling/Makefile.am,
* tests/linear/Makefile.am,
* tests/linear/gaussian/Makefile.am,
* tests/linear/local/Makefile.am,
* tests/literal/Makefile.am,
* tests/logical/Makefile.am,
* tests/make/Makefile.am,
* tests/math/Makefile.am,
* tests/metal/Makefile.am,
* tests/metal/make/Makefile.am,
* tests/metal/math/Makefile.am,
* tests/morpho/Makefile.am,
* tests/morpho/approx/Makefile.am,
* tests/morpho/attribute/Makefile.am,
* tests/morpho/closing/Makefile.am,
* tests/morpho/closing/approx/Makefile.am,
* tests/morpho/elementary/Makefile.am,
* tests/morpho/opening/Makefile.am,
* tests/morpho/opening/approx/Makefile.am,
* tests/morpho/reconstruction/Makefile.am,
* tests/morpho/reconstruction/by_dilation/Makefile.am,
* tests/morpho/reconstruction/by_erosion/Makefile.am,
* tests/morpho/tree/Makefile.am,
* tests/morpho/tree/filter/Makefile.am,
* tests/morpho/watershed/Makefile.am,
* tests/norm/Makefile.am,
* tests/opt/Makefile.am,
* tests/pw/Makefile.am,
* tests/registration/Makefile.am,
* tests/set/Makefile.am,
* tests/subsampling/Makefile.am,
* tests/tag/Makefile.am,
* tests/test/Makefile.am,
* tests/topo/Makefile.am,
* tests/topo/skeleton/Makefile.am,
* tests/trace/Makefile.am,
* tests/trait/Makefile.am,
* tests/trait/image/Makefile.am,
* tests/trait/op/Makefile.am,
* tests/trait/value/Makefile.am,
* tests/transform/Makefile.am,
* tests/unit_test/Makefile.am,
* tests/upscaling/Makefile.am,
* tests/upscaling/art/Makefile.am,
* tests/util/Makefile.am,
* tests/value/Makefile.am,
* tests/value/builtin/Makefile.am,
* tests/value/concept/Makefile.am,
* tests/win/Makefile.am,
* tests/world/Makefile.am,
* tests/world/binary_2d/Makefile.am,
* tests/world/inter_pixel/Makefile.am,
* tests/world/inter_pixel/dim2/Makefile.am,
* tools/Makefile.am:
Here.
---
milena/ChangeLog | 127 ++++++++++++++++++++
milena/Makefile.am | 3 -
milena/apps/mesh-segm-skel/Makefile.am | 3 -
milena/mesh/Makefile.am | 3 -
milena/tests/Makefile.am | 3 -
milena/tests/accu/Makefile.am | 6 +-
milena/tests/accu/image/Makefile.am | 3 -
milena/tests/accu/math/Makefile.am | 3 -
milena/tests/accu/shape/Makefile.am | 3 -
milena/tests/accu/site_set/Makefile.am | 3 -
milena/tests/accu/stat/Makefile.am | 3 -
milena/tests/algebra/Makefile.am | 3 -
milena/tests/arith/Makefile.am | 6 +-
milena/tests/binarization/Makefile.am | 3 -
milena/tests/border/Makefile.am | 6 +-
milena/tests/canvas/Makefile.am | 7 +-
milena/tests/canvas/browsing/Makefile.am | 6 +-
milena/tests/canvas/morpho/Makefile.am | 3 -
milena/tests/convert/Makefile.am | 3 -
milena/tests/convert/impl/Makefile.am | 3 -
milena/tests/core/Makefile.am | 6 +-
milena/tests/core/alias/Makefile.am | 3 -
milena/tests/core/image/Makefile.am | 3 -
milena/tests/core/image/dmorph/Makefile.am | 3 -
milena/tests/core/image/imorph/Makefile.am | 3 -
milena/tests/core/image/vmorph/Makefile.am | 3 -
milena/tests/core/other/Makefile.am | 3 -
milena/tests/core/routine/Makefile.am | 3 -
milena/tests/core/site_set/Makefile.am | 3 -
milena/tests/data/Makefile.am | 3 -
milena/tests/data/approx/Makefile.am | 3 -
milena/tests/data/naive/Makefile.am | 3 -
milena/tests/debug/Makefile.am | 3 -
milena/tests/display/Makefile.am | 6 +-
milena/tests/draw/Makefile.am | 6 +-
milena/tests/estim/Makefile.am | 6 +-
milena/tests/extension/Makefile.am | 3 -
milena/tests/extract/Makefile.am | 3 -
milena/tests/fun/Makefile.am | 3 -
milena/tests/fun/i2v/Makefile.am | 3 -
milena/tests/fun/p2b/Makefile.am | 3 -
milena/tests/fun/p2p/Makefile.am | 3 -
milena/tests/fun/p2v/Makefile.am | 3 -
milena/tests/fun/stat/Makefile.am | 3 -
milena/tests/fun/v2i/Makefile.am | 3 -
milena/tests/fun/v2v/Makefile.am | 3 -
milena/tests/fun/vv2v/Makefile.am | 3 -
milena/tests/fun/x2x/Makefile.am | 6 +-
milena/tests/geom/Makefile.am | 6 +-
milena/tests/graph/Makefile.am | 3 -
milena/tests/graph/attribute/Makefile.am | 3 -
milena/tests/histo/Makefile.am | 6 +-
milena/tests/io/Makefile.am | 6 +-
milena/tests/io/dicom/Makefile.am | 3 -
milena/tests/io/dump/Makefile.am | 5 +-
milena/tests/io/fits/Makefile.am | 3 -
milena/tests/io/fld/Makefile.am | 5 +-
milena/tests/io/magick/Makefile.am | 3 -
milena/tests/io/off/Makefile.am | 3 -
milena/tests/io/pbm/Makefile.am | 5 +-
milena/tests/io/pbms/Makefile.am | 5 +-
milena/tests/io/pfm/Makefile.am | 3 -
milena/tests/io/pgm/Makefile.am | 3 -
milena/tests/io/pgms/Makefile.am | 5 +-
milena/tests/io/pnm/Makefile.am | 3 -
milena/tests/io/ppm/Makefile.am | 3 -
milena/tests/io/ppms/Makefile.am | 5 +-
milena/tests/io/tiff/Makefile.am | 3 -
milena/tests/labeling/Makefile.am | 6 +-
milena/tests/linear/Makefile.am | 5 +-
milena/tests/linear/gaussian/Makefile.am | 3 -
milena/tests/linear/local/Makefile.am | 6 +-
milena/tests/literal/Makefile.am | 6 +-
milena/tests/logical/Makefile.am | 6 +-
milena/tests/make/Makefile.am | 6 +-
milena/tests/math/Makefile.am | 3 -
milena/tests/metal/Makefile.am | 6 +-
milena/tests/metal/make/Makefile.am | 3 -
milena/tests/metal/math/Makefile.am | 6 +-
milena/tests/morpho/Makefile.am | 6 +-
milena/tests/morpho/approx/Makefile.am | 4 -
milena/tests/morpho/attribute/Makefile.am | 3 -
milena/tests/morpho/closing/Makefile.am | 3 -
milena/tests/morpho/closing/approx/Makefile.am | 3 -
milena/tests/morpho/elementary/Makefile.am | 3 -
milena/tests/morpho/opening/Makefile.am | 3 -
milena/tests/morpho/opening/approx/Makefile.am | 3 -
milena/tests/morpho/reconstruction/Makefile.am | 5 -
.../morpho/reconstruction/by_dilation/Makefile.am | 5 -
.../morpho/reconstruction/by_erosion/Makefile.am | 5 -
milena/tests/morpho/tree/Makefile.am | 5 +-
milena/tests/morpho/tree/filter/Makefile.am | 3 -
milena/tests/morpho/watershed/Makefile.am | 3 -
milena/tests/norm/Makefile.am | 3 -
milena/tests/opt/Makefile.am | 3 -
milena/tests/pw/Makefile.am | 6 +-
milena/tests/registration/Makefile.am | 3 -
milena/tests/set/Makefile.am | 6 +-
milena/tests/subsampling/Makefile.am | 3 -
milena/tests/tag/Makefile.am | 3 -
milena/tests/test/Makefile.am | 3 -
milena/tests/topo/Makefile.am | 3 -
milena/tests/topo/skeleton/Makefile.am | 3 -
milena/tests/trace/Makefile.am | 3 -
milena/tests/trait/Makefile.am | 6 +-
milena/tests/trait/image/Makefile.am | 6 +-
milena/tests/trait/op/Makefile.am | 6 +-
milena/tests/trait/value/Makefile.am | 6 +-
milena/tests/transform/Makefile.am | 3 -
milena/tests/unit_test/Makefile.am | 3 -
milena/tests/upscaling/Makefile.am | 4 -
milena/tests/upscaling/art/Makefile.am | 3 -
milena/tests/util/Makefile.am | 7 +-
milena/tests/value/Makefile.am | 3 -
milena/tests/value/builtin/Makefile.am | 6 +-
milena/tests/value/concept/Makefile.am | 3 -
milena/tests/win/Makefile.am | 6 +-
milena/tests/world/Makefile.am | 3 -
milena/tests/world/binary_2d/Makefile.am | 3 -
milena/tests/world/inter_pixel/Makefile.am | 3 -
milena/tests/world/inter_pixel/dim2/Makefile.am | 3 -
milena/tools/Makefile.am | 3 -
122 files changed, 195 insertions(+), 411 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 3355da2..929c182 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,130 @@
+2010-06-03 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Clean up a bit Milena's Makefiles.
+
+ * Makefile.am,
+ * apps/mesh-segm-skel/Makefile.am,
+ * mesh/Makefile.am,
+ * tests/Makefile.am,
+ * tests/accu/Makefile.am,
+ * tests/accu/image/Makefile.am,
+ * tests/accu/math/Makefile.am,
+ * tests/accu/shape/Makefile.am,
+ * tests/accu/site_set/Makefile.am,
+ * tests/accu/stat/Makefile.am,
+ * tests/algebra/Makefile.am,
+ * tests/arith/Makefile.am,
+ * tests/binarization/Makefile.am,
+ * tests/border/Makefile.am,
+ * tests/canvas/Makefile.am,
+ * tests/canvas/browsing/Makefile.am,
+ * tests/canvas/morpho/Makefile.am,
+ * tests/convert/Makefile.am,
+ * tests/convert/impl/Makefile.am,
+ * tests/core/Makefile.am,
+ * tests/core/alias/Makefile.am,
+ * tests/core/image/Makefile.am,
+ * tests/core/image/dmorph/Makefile.am,
+ * tests/core/image/imorph/Makefile.am,
+ * tests/core/image/vmorph/Makefile.am,
+ * tests/core/other/Makefile.am,
+ * tests/core/routine/Makefile.am,
+ * tests/core/site_set/Makefile.am,
+ * tests/data/Makefile.am,
+ * tests/data/approx/Makefile.am,
+ * tests/data/naive/Makefile.am,
+ * tests/debug/Makefile.am,
+ * tests/display/Makefile.am,
+ * tests/draw/Makefile.am,
+ * tests/estim/Makefile.am,
+ * tests/extension/Makefile.am,
+ * tests/extract/Makefile.am,
+ * tests/fun/Makefile.am,
+ * tests/fun/i2v/Makefile.am,
+ * tests/fun/p2b/Makefile.am,
+ * tests/fun/p2p/Makefile.am,
+ * tests/fun/p2v/Makefile.am,
+ * tests/fun/stat/Makefile.am,
+ * tests/fun/v2i/Makefile.am,
+ * tests/fun/v2v/Makefile.am,
+ * tests/fun/vv2v/Makefile.am,
+ * tests/fun/x2x/Makefile.am,
+ * tests/geom/Makefile.am,
+ * tests/graph/Makefile.am,
+ * tests/graph/attribute/Makefile.am,
+ * tests/histo/Makefile.am,
+ * tests/io/Makefile.am,
+ * tests/io/dicom/Makefile.am,
+ * tests/io/dump/Makefile.am,
+ * tests/io/fits/Makefile.am,
+ * tests/io/fld/Makefile.am,
+ * tests/io/magick/Makefile.am,
+ * tests/io/off/Makefile.am,
+ * tests/io/pbm/Makefile.am,
+ * tests/io/pbms/Makefile.am,
+ * tests/io/pfm/Makefile.am,
+ * tests/io/pgm/Makefile.am,
+ * tests/io/pgms/Makefile.am,
+ * tests/io/pnm/Makefile.am,
+ * tests/io/ppm/Makefile.am,
+ * tests/io/ppms/Makefile.am,
+ * tests/io/tiff/Makefile.am,
+ * tests/labeling/Makefile.am,
+ * tests/linear/Makefile.am,
+ * tests/linear/gaussian/Makefile.am,
+ * tests/linear/local/Makefile.am,
+ * tests/literal/Makefile.am,
+ * tests/logical/Makefile.am,
+ * tests/make/Makefile.am,
+ * tests/math/Makefile.am,
+ * tests/metal/Makefile.am,
+ * tests/metal/make/Makefile.am,
+ * tests/metal/math/Makefile.am,
+ * tests/morpho/Makefile.am,
+ * tests/morpho/approx/Makefile.am,
+ * tests/morpho/attribute/Makefile.am,
+ * tests/morpho/closing/Makefile.am,
+ * tests/morpho/closing/approx/Makefile.am,
+ * tests/morpho/elementary/Makefile.am,
+ * tests/morpho/opening/Makefile.am,
+ * tests/morpho/opening/approx/Makefile.am,
+ * tests/morpho/reconstruction/Makefile.am,
+ * tests/morpho/reconstruction/by_dilation/Makefile.am,
+ * tests/morpho/reconstruction/by_erosion/Makefile.am,
+ * tests/morpho/tree/Makefile.am,
+ * tests/morpho/tree/filter/Makefile.am,
+ * tests/morpho/watershed/Makefile.am,
+ * tests/norm/Makefile.am,
+ * tests/opt/Makefile.am,
+ * tests/pw/Makefile.am,
+ * tests/registration/Makefile.am,
+ * tests/set/Makefile.am,
+ * tests/subsampling/Makefile.am,
+ * tests/tag/Makefile.am,
+ * tests/test/Makefile.am,
+ * tests/topo/Makefile.am,
+ * tests/topo/skeleton/Makefile.am,
+ * tests/trace/Makefile.am,
+ * tests/trait/Makefile.am,
+ * tests/trait/image/Makefile.am,
+ * tests/trait/op/Makefile.am,
+ * tests/trait/value/Makefile.am,
+ * tests/transform/Makefile.am,
+ * tests/unit_test/Makefile.am,
+ * tests/upscaling/Makefile.am,
+ * tests/upscaling/art/Makefile.am,
+ * tests/util/Makefile.am,
+ * tests/value/Makefile.am,
+ * tests/value/builtin/Makefile.am,
+ * tests/value/concept/Makefile.am,
+ * tests/win/Makefile.am,
+ * tests/world/Makefile.am,
+ * tests/world/binary_2d/Makefile.am,
+ * tests/world/inter_pixel/Makefile.am,
+ * tests/world/inter_pixel/dim2/Makefile.am,
+ * tools/Makefile.am:
+ Here.
+
2010-05-12 Roland Levillain <roland(a)lrde.epita.fr>
Add missing copyright headers in Milena.
diff --git a/milena/Makefile.am b/milena/Makefile.am
index 6c6a420..bac240d 100644
--- a/milena/Makefile.am
+++ b/milena/Makefile.am
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
SUBDIRS = \
doc \
diff --git a/milena/apps/mesh-segm-skel/Makefile.am b/milena/apps/mesh-segm-skel/Makefile.am
index 0185535..5852011 100644
--- a/milena/apps/mesh-segm-skel/Makefile.am
+++ b/milena/apps/mesh-segm-skel/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to produce Makefile.in.
# Linking with gluit and GLUT/OpenGL.
gluit_builddir = $(top_builddir)/external/trimesh/gluit
diff --git a/milena/mesh/Makefile.am b/milena/mesh/Makefile.am
index ad91888..eebfaab 100644
--- a/milena/mesh/Makefile.am
+++ b/milena/mesh/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
## This Makefile makes use of GNU Make extensions (%-patterns,
## patsubst). We might want to turn it into something more portable
diff --git a/milena/tests/Makefile.am b/milena/tests/Makefile.am
index 562078e..83f946e 100644
--- a/milena/tests/Makefile.am
+++ b/milena/tests/Makefile.am
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/accu/Makefile.am b/milena/tests/accu/Makefile.am
index 5e8fb52..60beb52 100644
--- a/milena/tests/accu/Makefile.am
+++ b/milena/tests/accu/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/accu/image/Makefile.am b/milena/tests/accu/image/Makefile.am
index 903f0eb..141300f 100644
--- a/milena/tests/accu/image/Makefile.am
+++ b/milena/tests/accu/image/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/accu/math/Makefile.am b/milena/tests/accu/math/Makefile.am
index 14f863b..ca5358b 100644
--- a/milena/tests/accu/math/Makefile.am
+++ b/milena/tests/accu/math/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/accu/shape/Makefile.am b/milena/tests/accu/shape/Makefile.am
index 4677fc6..374ce89 100644
--- a/milena/tests/accu/shape/Makefile.am
+++ b/milena/tests/accu/shape/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/accu/site_set/Makefile.am b/milena/tests/accu/site_set/Makefile.am
index 6319f07..a44676e 100644
--- a/milena/tests/accu/site_set/Makefile.am
+++ b/milena/tests/accu/site_set/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/accu/stat/Makefile.am b/milena/tests/accu/stat/Makefile.am
index ab7e52e..c331db0 100644
--- a/milena/tests/accu/stat/Makefile.am
+++ b/milena/tests/accu/stat/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/algebra/Makefile.am b/milena/tests/algebra/Makefile.am
index a954f1b..471389e 100644
--- a/milena/tests/algebra/Makefile.am
+++ b/milena/tests/algebra/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/arith/Makefile.am b/milena/tests/arith/Makefile.am
index c7539a7..89dfc9e 100644
--- a/milena/tests/arith/Makefile.am
+++ b/milena/tests/arith/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/binarization/Makefile.am b/milena/tests/binarization/Makefile.am
index 3a258fd..5ef0e81 100644
--- a/milena/tests/binarization/Makefile.am
+++ b/milena/tests/binarization/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/border/Makefile.am b/milena/tests/border/Makefile.am
index 9337423..80241ad 100644
--- a/milena/tests/border/Makefile.am
+++ b/milena/tests/border/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/canvas/Makefile.am b/milena/tests/canvas/Makefile.am
index 57a60c8..d8db016 100644
--- a/milena/tests/canvas/Makefile.am
+++ b/milena/tests/canvas/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -25,4 +23,3 @@ check_PROGRAMS = \
chamfer
chamfer_SOURCES = chamfer.cc
-
diff --git a/milena/tests/canvas/browsing/Makefile.am b/milena/tests/canvas/browsing/Makefile.am
index e5c4a19..66b5b44 100644
--- a/milena/tests/canvas/browsing/Makefile.am
+++ b/milena/tests/canvas/browsing/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/canvas/morpho/Makefile.am b/milena/tests/canvas/morpho/Makefile.am
index 7909349..0504c8e 100644
--- a/milena/tests/canvas/morpho/Makefile.am
+++ b/milena/tests/canvas/morpho/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/convert/Makefile.am b/milena/tests/convert/Makefile.am
index ab369d9..856c143 100644
--- a/milena/tests/convert/Makefile.am
+++ b/milena/tests/convert/Makefile.am
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/convert/impl/Makefile.am b/milena/tests/convert/impl/Makefile.am
index 79f9727..a7cb10c 100644
--- a/milena/tests/convert/impl/Makefile.am
+++ b/milena/tests/convert/impl/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/core/Makefile.am b/milena/tests/core/Makefile.am
index 81cc72b..ba4b041 100644
--- a/milena/tests/core/Makefile.am
+++ b/milena/tests/core/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/core/alias/Makefile.am b/milena/tests/core/alias/Makefile.am
index dff2fce..9c47da2 100644
--- a/milena/tests/core/alias/Makefile.am
+++ b/milena/tests/core/alias/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/core/image/Makefile.am b/milena/tests/core/image/Makefile.am
index 0bfff01..5ac8889 100644
--- a/milena/tests/core/image/Makefile.am
+++ b/milena/tests/core/image/Makefile.am
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/core/image/dmorph/Makefile.am b/milena/tests/core/image/dmorph/Makefile.am
index 28445e9..3faee32 100644
--- a/milena/tests/core/image/dmorph/Makefile.am
+++ b/milena/tests/core/image/dmorph/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/core/image/imorph/Makefile.am b/milena/tests/core/image/imorph/Makefile.am
index aa0ccfc..b019f1c 100644
--- a/milena/tests/core/image/imorph/Makefile.am
+++ b/milena/tests/core/image/imorph/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/core/image/vmorph/Makefile.am b/milena/tests/core/image/vmorph/Makefile.am
index 40e190b..5f7eb98 100644
--- a/milena/tests/core/image/vmorph/Makefile.am
+++ b/milena/tests/core/image/vmorph/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/core/other/Makefile.am b/milena/tests/core/other/Makefile.am
index 9443837..85ce865 100644
--- a/milena/tests/core/other/Makefile.am
+++ b/milena/tests/core/other/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/core/routine/Makefile.am b/milena/tests/core/routine/Makefile.am
index da4d50b..2640c47 100644
--- a/milena/tests/core/routine/Makefile.am
+++ b/milena/tests/core/routine/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/core/site_set/Makefile.am b/milena/tests/core/site_set/Makefile.am
index a67544a..8d7c317 100644
--- a/milena/tests/core/site_set/Makefile.am
+++ b/milena/tests/core/site_set/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/data/Makefile.am b/milena/tests/data/Makefile.am
index 213cdbe..931c980 100644
--- a/milena/tests/data/Makefile.am
+++ b/milena/tests/data/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/data/approx/Makefile.am b/milena/tests/data/approx/Makefile.am
index 0c33433..7ca6b8f 100644
--- a/milena/tests/data/approx/Makefile.am
+++ b/milena/tests/data/approx/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/data/naive/Makefile.am b/milena/tests/data/naive/Makefile.am
index 7a9da64..575e1fe 100644
--- a/milena/tests/data/naive/Makefile.am
+++ b/milena/tests/data/naive/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/debug/Makefile.am b/milena/tests/debug/Makefile.am
index cc44bc1..0346f1a 100644
--- a/milena/tests/debug/Makefile.am
+++ b/milena/tests/debug/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/display/Makefile.am b/milena/tests/display/Makefile.am
index 40752fe..bdd6d0f 100644
--- a/milena/tests/display/Makefile.am
+++ b/milena/tests/display/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/draw/Makefile.am b/milena/tests/draw/Makefile.am
index 3cb7692..c823cfb 100644
--- a/milena/tests/draw/Makefile.am
+++ b/milena/tests/draw/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/estim/Makefile.am b/milena/tests/estim/Makefile.am
index d0c5bcf..2490ef9 100644
--- a/milena/tests/estim/Makefile.am
+++ b/milena/tests/estim/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/extension/Makefile.am b/milena/tests/extension/Makefile.am
index 890dff7..85f9835 100644
--- a/milena/tests/extension/Makefile.am
+++ b/milena/tests/extension/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/extract/Makefile.am b/milena/tests/extract/Makefile.am
index f7b0c1c..2168f8d 100644
--- a/milena/tests/extract/Makefile.am
+++ b/milena/tests/extract/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/Makefile.am b/milena/tests/fun/Makefile.am
index a39cf27..82d6e89 100644
--- a/milena/tests/fun/Makefile.am
+++ b/milena/tests/fun/Makefile.am
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/i2v/Makefile.am b/milena/tests/fun/i2v/Makefile.am
index 0b33406..a3de8f9 100644
--- a/milena/tests/fun/i2v/Makefile.am
+++ b/milena/tests/fun/i2v/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/p2b/Makefile.am b/milena/tests/fun/p2b/Makefile.am
index a8321f7..4c3ccb4 100644
--- a/milena/tests/fun/p2b/Makefile.am
+++ b/milena/tests/fun/p2b/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/p2p/Makefile.am b/milena/tests/fun/p2p/Makefile.am
index 12ecb5d..862c78b 100644
--- a/milena/tests/fun/p2p/Makefile.am
+++ b/milena/tests/fun/p2p/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/p2v/Makefile.am b/milena/tests/fun/p2v/Makefile.am
index a8321f7..4c3ccb4 100644
--- a/milena/tests/fun/p2v/Makefile.am
+++ b/milena/tests/fun/p2v/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/stat/Makefile.am b/milena/tests/fun/stat/Makefile.am
index bda940a..aac5327 100644
--- a/milena/tests/fun/stat/Makefile.am
+++ b/milena/tests/fun/stat/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/v2i/Makefile.am b/milena/tests/fun/v2i/Makefile.am
index a3dbd4e..e67e7d0 100644
--- a/milena/tests/fun/v2i/Makefile.am
+++ b/milena/tests/fun/v2i/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/v2v/Makefile.am b/milena/tests/fun/v2v/Makefile.am
index 872c7a5..d45fc4c 100644
--- a/milena/tests/fun/v2v/Makefile.am
+++ b/milena/tests/fun/v2v/Makefile.am
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/vv2v/Makefile.am b/milena/tests/fun/vv2v/Makefile.am
index 7cb53fd..d180e3d 100644
--- a/milena/tests/fun/vv2v/Makefile.am
+++ b/milena/tests/fun/vv2v/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/fun/x2x/Makefile.am b/milena/tests/fun/x2x/Makefile.am
index a7293e1..6ac5c22 100644
--- a/milena/tests/fun/x2x/Makefile.am
+++ b/milena/tests/fun/x2x/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/geom/Makefile.am b/milena/tests/geom/Makefile.am
index 16600dd..91fac5c 100644
--- a/milena/tests/geom/Makefile.am
+++ b/milena/tests/geom/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/graph/Makefile.am b/milena/tests/graph/Makefile.am
index 0e1349a..608b6d9 100644
--- a/milena/tests/graph/Makefile.am
+++ b/milena/tests/graph/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/graph/attribute/Makefile.am b/milena/tests/graph/attribute/Makefile.am
index b5f900b..cb07318 100644
--- a/milena/tests/graph/attribute/Makefile.am
+++ b/milena/tests/graph/attribute/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/histo/Makefile.am b/milena/tests/histo/Makefile.am
index 3bb2752..b5f7e7e 100644
--- a/milena/tests/histo/Makefile.am
+++ b/milena/tests/histo/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/Makefile.am b/milena/tests/io/Makefile.am
index a069ca8..bd6c0a4 100644
--- a/milena/tests/io/Makefile.am
+++ b/milena/tests/io/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/dicom/Makefile.am b/milena/tests/io/dicom/Makefile.am
index da98219..d8a4ea8 100644
--- a/milena/tests/io/dicom/Makefile.am
+++ b/milena/tests/io/dicom/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/dump/Makefile.am b/milena/tests/io/dump/Makefile.am
index cad3d5b..6ffe8cd 100644
--- a/milena/tests/io/dump/Makefile.am
+++ b/milena/tests/io/dump/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -29,4 +26,4 @@ TESTS = $(check_PROGRAMS)
# FIXME: each test should clean its output, temporary output should
# not be cleaned up by make.
-CLEANFILES = pic.dump
\ No newline at end of file
+CLEANFILES = pic.dump
diff --git a/milena/tests/io/fits/Makefile.am b/milena/tests/io/fits/Makefile.am
index 77770ce..dd8b9d1 100644
--- a/milena/tests/io/fits/Makefile.am
+++ b/milena/tests/io/fits/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/fld/Makefile.am b/milena/tests/io/fld/Makefile.am
index 776526d..7cbe50b 100644
--- a/milena/tests/io/fld/Makefile.am
+++ b/milena/tests/io/fld/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -28,4 +25,4 @@ fld2d_SOURCES = fld2d.cc
fld3d_SOURCES = fld3d.cc
fld1d_SOURCES = fld1d.cc
-TESTS = $(check_PROGRAMS)
\ No newline at end of file
+TESTS = $(check_PROGRAMS)
diff --git a/milena/tests/io/magick/Makefile.am b/milena/tests/io/magick/Makefile.am
index 0e1d9db..adb9274 100644
--- a/milena/tests/io/magick/Makefile.am
+++ b/milena/tests/io/magick/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/off/Makefile.am b/milena/tests/io/off/Makefile.am
index 2ed2594..91908a0 100644
--- a/milena/tests/io/off/Makefile.am
+++ b/milena/tests/io/off/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/pbm/Makefile.am b/milena/tests/io/pbm/Makefile.am
index 351207d..6a4fbea 100644
--- a/milena/tests/io/pbm/Makefile.am
+++ b/milena/tests/io/pbm/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -31,4 +28,4 @@ TESTS = $(check_PROGRAMS)
# FIXME: each test should clean its output, temporary output should
# not be cleaned up by make.
-CLEANFILES = out.pbm
\ No newline at end of file
+CLEANFILES = out.pbm
diff --git a/milena/tests/io/pbms/Makefile.am b/milena/tests/io/pbms/Makefile.am
index 1a3fc5c..81ad41b 100644
--- a/milena/tests/io/pbms/Makefile.am
+++ b/milena/tests/io/pbms/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -28,4 +25,4 @@ TESTS = $(check_PROGRAMS)
# FIXME: each test should clean its output, temporary output should
# not be cleaned up by make.
-CLEANFILES = out.pbm
\ No newline at end of file
+CLEANFILES = out.pbm
diff --git a/milena/tests/io/pfm/Makefile.am b/milena/tests/io/pfm/Makefile.am
index a8321f7..4c3ccb4 100644
--- a/milena/tests/io/pfm/Makefile.am
+++ b/milena/tests/io/pfm/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/pgm/Makefile.am b/milena/tests/io/pgm/Makefile.am
index f6eef7c..f3f078d 100644
--- a/milena/tests/io/pgm/Makefile.am
+++ b/milena/tests/io/pgm/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/pgms/Makefile.am b/milena/tests/io/pgms/Makefile.am
index 8a4f02a..312521c 100644
--- a/milena/tests/io/pgms/Makefile.am
+++ b/milena/tests/io/pgms/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -29,4 +26,4 @@ TESTS = $(check_PROGRAMS)
# FIXME: each test should clean its output, temporary output should
# not be cleaned up by make.
-CLEANFILES = out.pgm
\ No newline at end of file
+CLEANFILES = out.pgm
diff --git a/milena/tests/io/pnm/Makefile.am b/milena/tests/io/pnm/Makefile.am
index a8321f7..4c3ccb4 100644
--- a/milena/tests/io/pnm/Makefile.am
+++ b/milena/tests/io/pnm/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/ppm/Makefile.am b/milena/tests/io/ppm/Makefile.am
index 913dd04..45dd419 100644
--- a/milena/tests/io/ppm/Makefile.am
+++ b/milena/tests/io/ppm/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/io/ppms/Makefile.am b/milena/tests/io/ppms/Makefile.am
index 173a9f7..219fb67 100644
--- a/milena/tests/io/ppms/Makefile.am
+++ b/milena/tests/io/ppms/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -29,4 +26,4 @@ TESTS = $(check_PROGRAMS)
# FIXME: each test should clean its output, temporary output should
# not be cleaned up by make.
-CLEANFILES = out.ppm
\ No newline at end of file
+CLEANFILES = out.ppm
diff --git a/milena/tests/io/tiff/Makefile.am b/milena/tests/io/tiff/Makefile.am
index f21e2c1..356214b 100644
--- a/milena/tests/io/tiff/Makefile.am
+++ b/milena/tests/io/tiff/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/labeling/Makefile.am b/milena/tests/labeling/Makefile.am
index 1509d72..d7515fa 100644
--- a/milena/tests/labeling/Makefile.am
+++ b/milena/tests/labeling/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/linear/Makefile.am b/milena/tests/linear/Makefile.am
index 3bc1b01..2d51a10 100644
--- a/milena/tests/linear/Makefile.am
+++ b/milena/tests/linear/Makefile.am
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -54,4 +51,4 @@ TESTS = $(check_PROGRAMS)
# FIXME: each test should clean its output, temporary output should
# not be cleaned up by make.
-CLEANFILES = out.pgm
\ No newline at end of file
+CLEANFILES = out.pgm
diff --git a/milena/tests/linear/gaussian/Makefile.am b/milena/tests/linear/gaussian/Makefile.am
index a3000c3..054f5ea 100644
--- a/milena/tests/linear/gaussian/Makefile.am
+++ b/milena/tests/linear/gaussian/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/linear/local/Makefile.am b/milena/tests/linear/local/Makefile.am
index bb8608c..9f53cfb 100644
--- a/milena/tests/linear/local/Makefile.am
+++ b/milena/tests/linear/local/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/literal/Makefile.am b/milena/tests/literal/Makefile.am
index 4310a95..ef86851 100644
--- a/milena/tests/literal/Makefile.am
+++ b/milena/tests/literal/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/logical/Makefile.am b/milena/tests/logical/Makefile.am
index d095301..ca59622 100644
--- a/milena/tests/logical/Makefile.am
+++ b/milena/tests/logical/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/make/Makefile.am b/milena/tests/make/Makefile.am
index 27d65fb..34e0eff 100644
--- a/milena/tests/make/Makefile.am
+++ b/milena/tests/make/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/math/Makefile.am b/milena/tests/math/Makefile.am
index a8321f7..4c3ccb4 100644
--- a/milena/tests/math/Makefile.am
+++ b/milena/tests/math/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/metal/Makefile.am b/milena/tests/metal/Makefile.am
index e7e5f93..bc24893 100644
--- a/milena/tests/metal/Makefile.am
+++ b/milena/tests/metal/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/metal/make/Makefile.am b/milena/tests/metal/make/Makefile.am
index a8321f7..4c3ccb4 100644
--- a/milena/tests/metal/make/Makefile.am
+++ b/milena/tests/metal/make/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/metal/math/Makefile.am b/milena/tests/metal/math/Makefile.am
index f6b810d..cc48940 100644
--- a/milena/tests/metal/math/Makefile.am
+++ b/milena/tests/metal/math/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/morpho/Makefile.am b/milena/tests/morpho/Makefile.am
index 4a7c649..57a5ecb 100644
--- a/milena/tests/morpho/Makefile.am
+++ b/milena/tests/morpho/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/morpho/approx/Makefile.am b/milena/tests/morpho/approx/Makefile.am
index 85fc367..35d3e1b 100644
--- a/milena/tests/morpho/approx/Makefile.am
+++ b/milena/tests/morpho/approx/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -34,4 +31,3 @@ TESTS = $(check_PROGRAMS)
CLEANFILES = \
out.pbm \
ref.pbm
-
diff --git a/milena/tests/morpho/attribute/Makefile.am b/milena/tests/morpho/attribute/Makefile.am
index 1fcc2ab..ae0a5e5 100644
--- a/milena/tests/morpho/attribute/Makefile.am
+++ b/milena/tests/morpho/attribute/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/morpho/closing/Makefile.am b/milena/tests/morpho/closing/Makefile.am
index c75b590..6cd8dfb 100644
--- a/milena/tests/morpho/closing/Makefile.am
+++ b/milena/tests/morpho/closing/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/morpho/closing/approx/Makefile.am b/milena/tests/morpho/closing/approx/Makefile.am
index c9eb6b6..33fd975 100644
--- a/milena/tests/morpho/closing/approx/Makefile.am
+++ b/milena/tests/morpho/closing/approx/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/morpho/elementary/Makefile.am b/milena/tests/morpho/elementary/Makefile.am
index 224585e..37a726a 100644
--- a/milena/tests/morpho/elementary/Makefile.am
+++ b/milena/tests/morpho/elementary/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/morpho/opening/Makefile.am b/milena/tests/morpho/opening/Makefile.am
index 2b3425c..4fc7492 100644
--- a/milena/tests/morpho/opening/Makefile.am
+++ b/milena/tests/morpho/opening/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/morpho/opening/approx/Makefile.am b/milena/tests/morpho/opening/approx/Makefile.am
index 8afb5a9..c9d97b3 100644
--- a/milena/tests/morpho/opening/approx/Makefile.am
+++ b/milena/tests/morpho/opening/approx/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/morpho/reconstruction/Makefile.am b/milena/tests/morpho/reconstruction/Makefile.am
index ab3d108..4ea328e 100644
--- a/milena/tests/morpho/reconstruction/Makefile.am
+++ b/milena/tests/morpho/reconstruction/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -25,5 +22,3 @@ SUBDIRS = \
TESTS = $(check_PROGRAMS)
-
-
diff --git a/milena/tests/morpho/reconstruction/by_dilation/Makefile.am b/milena/tests/morpho/reconstruction/by_dilation/Makefile.am
index e6e8ea3..48f1460 100644
--- a/milena/tests/morpho/reconstruction/by_dilation/Makefile.am
+++ b/milena/tests/morpho/reconstruction/by_dilation/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -28,5 +25,3 @@ union_find_SOURCES = union_find.cc
TESTS = $(check_PROGRAMS)
-
-
diff --git a/milena/tests/morpho/reconstruction/by_erosion/Makefile.am b/milena/tests/morpho/reconstruction/by_erosion/Makefile.am
index e6e8ea3..48f1460 100644
--- a/milena/tests/morpho/reconstruction/by_erosion/Makefile.am
+++ b/milena/tests/morpho/reconstruction/by_erosion/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -28,5 +25,3 @@ union_find_SOURCES = union_find.cc
TESTS = $(check_PROGRAMS)
-
-
diff --git a/milena/tests/morpho/tree/Makefile.am b/milena/tests/morpho/tree/Makefile.am
index ed34881..303bd7c 100644
--- a/milena/tests/morpho/tree/Makefile.am
+++ b/milena/tests/morpho/tree/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -35,4 +32,4 @@ max_SOURCES = max.cc
TESTS = $(check_PROGRAMS)
SUBDIRS = \
- filter
\ No newline at end of file
+ filter
diff --git a/milena/tests/morpho/tree/filter/Makefile.am b/milena/tests/morpho/tree/filter/Makefile.am
index 176971f..41a0603 100644
--- a/milena/tests/morpho/tree/filter/Makefile.am
+++ b/milena/tests/morpho/tree/filter/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/morpho/watershed/Makefile.am b/milena/tests/morpho/watershed/Makefile.am
index 7e28a00..af0f169 100644
--- a/milena/tests/morpho/watershed/Makefile.am
+++ b/milena/tests/morpho/watershed/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/norm/Makefile.am b/milena/tests/norm/Makefile.am
index c1805f9..4c335be 100644
--- a/milena/tests/norm/Makefile.am
+++ b/milena/tests/norm/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/opt/Makefile.am b/milena/tests/opt/Makefile.am
index 7f2de05..27f0f0d 100644
--- a/milena/tests/opt/Makefile.am
+++ b/milena/tests/opt/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/pw/Makefile.am b/milena/tests/pw/Makefile.am
index b4ddc89..ae5a829 100644
--- a/milena/tests/pw/Makefile.am
+++ b/milena/tests/pw/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/registration/Makefile.am b/milena/tests/registration/Makefile.am
index 79372c7..2910259 100644
--- a/milena/tests/registration/Makefile.am
+++ b/milena/tests/registration/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/set/Makefile.am b/milena/tests/set/Makefile.am
index 0ce806a..ab6e345 100644
--- a/milena/tests/set/Makefile.am
+++ b/milena/tests/set/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/subsampling/Makefile.am b/milena/tests/subsampling/Makefile.am
index 89676d0..122b1a9 100644
--- a/milena/tests/subsampling/Makefile.am
+++ b/milena/tests/subsampling/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/tag/Makefile.am b/milena/tests/tag/Makefile.am
index a8321f7..4c3ccb4 100644
--- a/milena/tests/tag/Makefile.am
+++ b/milena/tests/tag/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/test/Makefile.am b/milena/tests/test/Makefile.am
index 18ab431..6e42c2c 100644
--- a/milena/tests/test/Makefile.am
+++ b/milena/tests/test/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/topo/Makefile.am b/milena/tests/topo/Makefile.am
index 5b5f73d..b8684bf 100644
--- a/milena/tests/topo/Makefile.am
+++ b/milena/tests/topo/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/topo/skeleton/Makefile.am b/milena/tests/topo/skeleton/Makefile.am
index 75611e4..0e60ff6 100644
--- a/milena/tests/topo/skeleton/Makefile.am
+++ b/milena/tests/topo/skeleton/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/trace/Makefile.am b/milena/tests/trace/Makefile.am
index a8321f7..4c3ccb4 100644
--- a/milena/tests/trace/Makefile.am
+++ b/milena/tests/trace/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/trait/Makefile.am b/milena/tests/trait/Makefile.am
index 66a1cb8..f3411f9 100644
--- a/milena/tests/trait/Makefile.am
+++ b/milena/tests/trait/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/trait/image/Makefile.am b/milena/tests/trait/image/Makefile.am
index 978aa1f..a428a33 100644
--- a/milena/tests/trait/image/Makefile.am
+++ b/milena/tests/trait/image/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/trait/op/Makefile.am b/milena/tests/trait/op/Makefile.am
index 7f41b15..8d83dd2 100644
--- a/milena/tests/trait/op/Makefile.am
+++ b/milena/tests/trait/op/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/trait/value/Makefile.am b/milena/tests/trait/value/Makefile.am
index 00d82c3..30e6d67 100644
--- a/milena/tests/trait/value/Makefile.am
+++ b/milena/tests/trait/value/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/transform/Makefile.am b/milena/tests/transform/Makefile.am
index 2184188..933483d 100644
--- a/milena/tests/transform/Makefile.am
+++ b/milena/tests/transform/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/unit_test/Makefile.am b/milena/tests/unit_test/Makefile.am
index 860b113..7327468 100644
--- a/milena/tests/unit_test/Makefile.am
+++ b/milena/tests/unit_test/Makefile.am
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/upscaling/Makefile.am b/milena/tests/upscaling/Makefile.am
index dbe5a89..3d0016f 100644
--- a/milena/tests/upscaling/Makefile.am
+++ b/milena/tests/upscaling/Makefile.am
@@ -13,12 +13,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
SUBDIRS = \
art
-
diff --git a/milena/tests/upscaling/art/Makefile.am b/milena/tests/upscaling/art/Makefile.am
index e001aaa..01900f4 100644
--- a/milena/tests/upscaling/art/Makefile.am
+++ b/milena/tests/upscaling/art/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/util/Makefile.am b/milena/tests/util/Makefile.am
index 07a3f94..0a1119e 100644
--- a/milena/tests/util/Makefile.am
+++ b/milena/tests/util/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
@@ -56,4 +54,3 @@ tree_fast_SOURCES = tree_fast.cc
tree_to_fast_SOURCES = tree_to_fast.cc
TESTS = $(check_PROGRAMS)
-
diff --git a/milena/tests/value/Makefile.am b/milena/tests/value/Makefile.am
index c61a738..975d471 100644
--- a/milena/tests/value/Makefile.am
+++ b/milena/tests/value/Makefile.am
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/value/builtin/Makefile.am b/milena/tests/value/builtin/Makefile.am
index 3a40bbd..fd5347d 100644
--- a/milena/tests/value/builtin/Makefile.am
+++ b/milena/tests/value/builtin/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/value/concept/Makefile.am b/milena/tests/value/concept/Makefile.am
index a8321f7..4c3ccb4 100644
--- a/milena/tests/value/concept/Makefile.am
+++ b/milena/tests/value/concept/Makefile.am
@@ -13,8 +13,5 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/win/Makefile.am b/milena/tests/win/Makefile.am
index ad28850..9c58718 100644
--- a/milena/tests/win/Makefile.am
+++ b/milena/tests/win/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -13,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/world/Makefile.am b/milena/tests/world/Makefile.am
index 41a8cba..3bae089 100644
--- a/milena/tests/world/Makefile.am
+++ b/milena/tests/world/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/world/binary_2d/Makefile.am b/milena/tests/world/binary_2d/Makefile.am
index eb97dd5..a52757c 100644
--- a/milena/tests/world/binary_2d/Makefile.am
+++ b/milena/tests/world/binary_2d/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/world/inter_pixel/Makefile.am b/milena/tests/world/inter_pixel/Makefile.am
index 327ba60..2d08ba2 100644
--- a/milena/tests/world/inter_pixel/Makefile.am
+++ b/milena/tests/world/inter_pixel/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tests/world/inter_pixel/dim2/Makefile.am b/milena/tests/world/inter_pixel/dim2/Makefile.am
index 8423f4b..10ac0fb 100644
--- a/milena/tests/world/inter_pixel/dim2/Makefile.am
+++ b/milena/tests/world/inter_pixel/dim2/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tests/tests.mk
diff --git a/milena/tools/Makefile.am b/milena/tools/Makefile.am
index be3c3e5..f7114d0 100644
--- a/milena/tools/Makefile.am
+++ b/milena/tools/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to create Makefile.in.
include $(top_srcdir)/milena/tools/tools.mk
--
1.5.6.5
1
0
03 Jun '10
* Makefile.am, external/Makefile.am: Here.
---
ChangeLog | 6 ++++++
Makefile.am | 7 +------
external/Makefile.am | 3 ---
3 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c35f101..51e3c84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-03 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Clean up a bit Olena's Makefiles.
+
+ * Makefile.am, external/Makefile.am: Here.
+
2010-06-02 Roland Levillain <roland(a)lrde.epita.fr>
* lrde-upload.sh: Fix and factor uses of chmod.
diff --git a/Makefile.am b/Makefile.am
index c591b00..347913f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,8 +15,6 @@
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-## Process this file through Automake to produce Makefile.in.
-
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = build-aux external milena
@@ -125,11 +123,10 @@ dist-hook:
)
-# Set the package version to olena-x.x-snapshot-dd-mm-yy
+# Set the package version to olena-x.x-snapshot-dd-mm-yy.
#
# Do not check NEWS file (this is not a release so there is no
# entries in this file for this package).
-#
snapshot:
current_date=`date +'%d-%m-%y'` \
&& sed -e "s/^\(AC_INIT(\[Olena\],\) \[\([\.[:alnum:]]*\)\(-snapshot-.*-[[:alnum:]]*\)*\], \(.*\)/\1 [\2-snapshot-$$current_date], \4/g" \
@@ -139,6 +136,4 @@ snapshot:
&& cp -f $(srcdir)/configure.ac.tmp $(srcdir)/configure.ac \
&& $(MAKE) $(AM_MAKEFLAGS) dist \
&& mv -f $(srcdir)/configure.ac.old $(srcdir)/configure.ac
-
#>>
-# && $(srcdir)/build-aux/lrde-upload.sh
\ No newline at end of file
diff --git a/external/Makefile.am b/external/Makefile.am
index 0eeb192..fba95ee 100644
--- a/external/Makefile.am
+++ b/external/Makefile.am
@@ -13,9 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-#
-
-## Process this file through Automake to produce Makefile.in.
SUBDIRS =
--
1.5.6.5
1
0
last-svn-commit-124-g24e4f68 * mln/io/magick/load.hh: set minimum resolution for PDF files to 300DPI.
by Guillaume Lazzara 03 Jun '10
by Guillaume Lazzara 03 Jun '10
03 Jun '10
---
milena/ChangeLog | 5 +++++
milena/mln/io/magick/load.hh | 12 +++++++++++-
2 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 1f2117e..98e20b3 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-18 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * mln/io/magick/load.hh: set minimum resolution for PDF files to
+ 300DPI.
+
2010-06-03 Guillaume Lazzara <z(a)lrde.epita.fr>
Add a function to convert qt::rgb32 values to int_u8.
diff --git a/milena/mln/io/magick/load.hh b/milena/mln/io/magick/load.hh
index 11d17bd..dfe9197 100644
--- a/milena/mln/io/magick/load.hh
+++ b/milena/mln/io/magick/load.hh
@@ -123,7 +123,17 @@ namespace mln
// abort();
//}
- Magick::Image im_file(filename);
+ Magick::Image im_file;
+ im_file.ping(filename);
+
+ // Force a minimum resolution of 300DPI for PDF document.
+ if (im_file.magick() == "PDF"
+ && (im_file.xResolution() < 300 || im_file.yResolution() < 300))
+ im_file.density(Magick::Geometry(300, 300));
+
+ im_file.read(filename);
+
+
im_file.modifyImage();
im_file.type(Magick::TrueColorType);
int columns = im_file.columns();
--
1.5.6.5
1
0
03 Jun '10
* src/text_in_article_preprocess.cc: Fix use of program
arguments.
* core/line_set.hh,
* text/clean.hh,
* text/merging.hh: Fix compilation.
* text/recognition.hh: Update output format.
---
scribo/ChangeLog | 13 +++++++++++++
scribo/core/line_set.hh | 3 +++
scribo/src/text_in_article_preprocess.cc | 2 +-
scribo/text/clean.hh | 2 ++
scribo/text/merging.hh | 15 +++++++++------
scribo/text/recognition.hh | 20 ++++++++++++++++++--
6 files changed, 46 insertions(+), 9 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 67159ad..e44137e 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,18 @@
2010-05-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Small fixes for Nuxeo/XWiki.
+
+ * src/text_in_article_preprocess.cc: Fix use of program
+ arguments.
+
+ * core/line_set.hh,
+ * text/clean.hh,
+ * text/merging.hh: Fix compilation.
+
+ * text/recognition.hh: Update output format.
+
+2010-05-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+
* text/merging.hh: Disable some debug.
2010-05-04 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/scribo/core/line_set.hh b/scribo/core/line_set.hh
index 80a79b3..5dca629 100644
--- a/scribo/core/line_set.hh
+++ b/scribo/core/line_set.hh
@@ -57,8 +57,11 @@ namespace scribo
// Forward declaration.
template <typename L> struct line_set;
+ template <typename L> struct line_info;
+ typedef mln::util::object_id<scribo::LineId, unsigned> line_id_t;
+
namespace internal
{
/// Data structure for \c scribo::line_set<I>.
diff --git a/scribo/src/text_in_article_preprocess.cc b/scribo/src/text_in_article_preprocess.cc
index 8cfa82f..bf70c7f 100644
--- a/scribo/src/text_in_article_preprocess.cc
+++ b/scribo/src/text_in_article_preprocess.cc
@@ -75,7 +75,7 @@ int main(int argc, char* argv[])
lambda = 1.2 * (input_rgb.nrows() + input_rgb.ncols());
// Extract foreground
- if (argc == 4 && atoi(argv[3]) == 1)
+ if (argc >= 4 && atoi(argv[3]) == 1)
{
std::cout << "Extracting foreground..." << std::endl;
input_rgb = preprocessing::split_bg_fg(input_rgb, lambda, 32).second();
diff --git a/scribo/text/clean.hh b/scribo/text/clean.hh
index f93bc6f..341d64c 100644
--- a/scribo/text/clean.hh
+++ b/scribo/text/clean.hh
@@ -31,6 +31,7 @@
///
/// Improve the quality of a text area.
+# include <mln/core/concept/image.hh>
# include <mln/core/concept/weighted_window.hh>
# include <mln/core/routine/extend.hh>
@@ -65,6 +66,7 @@
#include <mln/value/rgb8.hh>
#include <mln/io/pgm/all.hh>
+#include <scribo/core/line_info.hh>
#include <scribo/upsampling/bs2x.hh>
#include <scribo/subsampling/bilinear.hh>
diff --git a/scribo/text/merging.hh b/scribo/text/merging.hh
index 5309b10..7e943ef 100644
--- a/scribo/text/merging.hh
+++ b/scribo/text/merging.hh
@@ -59,12 +59,15 @@
+
namespace scribo
{
namespace text
{
+ using namespace mln;
+
/// \brief Merge text component in order to reconstruct text lines.
///
@@ -161,7 +164,7 @@ namespace scribo
- unsigned my_find_root(util::array<unsigned>& parent, unsigned x)
+ unsigned my_find_root(mln::util::array<unsigned>& parent, unsigned x)
{
if (parent[x] == x)
return x;
@@ -184,7 +187,7 @@ namespace scribo
unsigned do_union(scribo::line_set<L>& lines,
unsigned l1,
unsigned l2,
- util::array<unsigned>& parent)
+ mln::util::array<unsigned>& parent)
{
l1 = my_find_root(parent, l1);
l2 = my_find_root(parent, l2);
@@ -514,7 +517,7 @@ namespace scribo
const box2d& domain,
std::vector<scribo::line_id_t>& v,
scribo::line_set<L>& lines,
- util::array<unsigned>& parent)
+ mln::util::array<unsigned>& parent)
{
image2d<unsigned> billboard(domain);
data::fill(billboard, 0);
@@ -852,7 +855,7 @@ namespace scribo
v.reserve(n);
// Union-find parent data, used to merge lines.
- util::array<unsigned> parent(n + 1);
+ mln::util::array<unsigned> parent(n + 1);
// Initialize data
parent(0) = 0;
@@ -865,7 +868,7 @@ namespace scribo
// Sort lines by bbox.nelements() and ids.
std::sort(v.begin(), v.end(), func);
- util::timer t;
+ mln::util::timer t;
// Setting lines as text lines according to specific criterions.
@@ -912,7 +915,7 @@ namespace scribo
{
using namespace mln;
- util::timer t;
+ mln::util::timer t;
t.start();
scribo::line_set<L> output
diff --git a/scribo/text/recognition.hh b/scribo/text/recognition.hh
index 6f9dac7..fcc83dd 100644
--- a/scribo/text/recognition.hh
+++ b/scribo/text/recognition.hh
@@ -185,7 +185,15 @@ namespace scribo
{
std::string str(s);
str = str.substr(0, str.length() - 1);
- file << lines(i).bbox() << " " << str;
+ file << lines(i).bbox().pmin().row()
+ << " "
+ << lines(i).bbox().pmin().col()
+ << " "
+ << lines(i).bbox().pmax().row()
+ << " "
+ << lines(i).bbox().pmax().col()
+ << " "
+ << str;
}
}
@@ -248,7 +256,15 @@ namespace scribo
{
std::string str(s);
str = str.substr(0, str.length() - 1);
- file << line.domain() << " " << str;
+ file << line.domain().bbox().pmin().row()
+ << " "
+ << line.domain().bbox().pmin().col()
+ << " "
+ << line.domain().bbox().pmax().row()
+ << " "
+ << line.domain().bbox().pmax().col()
+ << " "
+ << str;
}
}
--
1.5.6.5
1
0
03 Jun '10
---
scribo/ChangeLog | 17 ++++++++++-------
scribo/text/merging.hh | 2 +-
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 59f9e67..67159ad 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,18 +1,21 @@
2010-05-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+ * text/merging.hh: Disable some debug.
+
+2010-05-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Prepare DIA tools for Nuxeo/XWiki.
- * scribo/src/Makefile.am: Add a new target.
+ * src/Makefile.am: Add a new target.
- * scribo/src/text_in_article_preprocess.cc: New.
+ * src/text_in_article_preprocess.cc: New.
- * scribo/src/text_in_article_pbm.cc: Add optional cropping and
- makes the debug optionnal.
+ * src/text_in_article_pbm.cc: Add optional cropping and makes the
+ debug optionnal.
- * scribo/text/clean.hh: Improve cleanup.
+ * text/clean.hh: Improve cleanup.
- * scribo/text/recognition.hh: Remove last '\n' in Tesseract's
- output.
+ * text/recognition.hh: Remove last '\n' in Tesseract's output.
2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/scribo/text/merging.hh b/scribo/text/merging.hh
index b29e63f..5309b10 100644
--- a/scribo/text/merging.hh
+++ b/scribo/text/merging.hh
@@ -606,7 +606,7 @@ namespace scribo
if (lines(mc).type() == line::Text) // included in a text line => weird
{
++count_txtline_IN_txtline;
- std::cout << "weird: inclusion of a txt_line in a txt_line!" << std::endl;
+// std::cout << "weird: inclusion of a txt_line in a txt_line!" << std::endl;
/// Merge is perform if the current line is a
/// petouille considered as a line.
--
1.5.6.5
1
0
03 Jun '10
* scribo/src/Makefile.am: Add a new target.
* scribo/src/text_in_article_preprocess.cc: New.
* scribo/src/text_in_article_pbm.cc: Add optional cropping and
makes the debug optionnal.
* scribo/text/clean.hh: Improve cleanup.
* scribo/text/recognition.hh: Remove last '\n' in Tesseract's
output.
---
scribo/ChangeLog | 16 ++
scribo/src/Makefile.am | 9 +
scribo/src/text_in_article_pbm.cc | 162 +++++++++++++-------
...sauvola_ms.cc => text_in_article_preprocess.cc} | 90 +++++-------
scribo/text/clean.hh | 13 +-
scribo/text/recognition.hh | 14 ++-
6 files changed, 184 insertions(+), 120 deletions(-)
copy scribo/src/{binarization/fg_sauvola_ms.cc => text_in_article_preprocess.cc} (53%)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index f2850e0..59f9e67 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,19 @@
+2010-05-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ Prepare DIA tools for Nuxeo/XWiki.
+
+ * scribo/src/Makefile.am: Add a new target.
+
+ * scribo/src/text_in_article_preprocess.cc: New.
+
+ * scribo/src/text_in_article_pbm.cc: Add optional cropping and
+ makes the debug optionnal.
+
+ * scribo/text/clean.hh: Improve cleanup.
+
+ * scribo/text/recognition.hh: Remove last '\n' in Tesseract's
+ output.
+
2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
Improve OCR recognition.
diff --git a/scribo/src/Makefile.am b/scribo/src/Makefile.am
index 80dc782..08b4bd9 100644
--- a/scribo/src/Makefile.am
+++ b/scribo/src/Makefile.am
@@ -82,6 +82,15 @@ if HAVE_TIFF
text_in_article_pbm_SOURCES = text_in_article_pbm.cc
+ bin_PROGRAMS += text_in_article_preprocess
+ text_in_article_preprocess_CPPFLAGS = $(AM_CPPFLAGS) \
+ `Magick++-config --cppflags`
+ text_in_article_preprocess_LDFLAGS = $(AM_LDFLAGS) \
+ -lpthread `Magick++-config --libs`
+ text_in_article_preprocess_SOURCES = text_in_article_preprocess.cc
+
+
+
bin_PROGRAMS += text_in_photo_fast
text_in_photo_fast_SOURCES = text_in_photo_fast.cc
text_in_photo_fast_CPPFLAGS = $(AM_CPPFLAGS) \
diff --git a/scribo/src/text_in_article_pbm.cc b/scribo/src/text_in_article_pbm.cc
index e71d21b..20a18e9 100644
--- a/scribo/src/text_in_article_pbm.cc
+++ b/scribo/src/text_in_article_pbm.cc
@@ -40,6 +40,8 @@
#include <mln/value/rgb8.hh>
#include <mln/value/label_16.hh>
+#include <mln/data/paste_without_localization.hh>
+
#include <scribo/core/line_set.hh>
#include <scribo/primitive/extract/components.hh>
@@ -85,6 +87,10 @@ const char *args_desc[][2] =
for the background." },
{ "out.txt", "Text output" },
{ "denoise", "1 enables denoising, 0 disables it. (enabled by default)" },
+ { "pmin_row", "Row index of the top left corner of the Region of interest." },
+ { "pmin_col", "Col index of the top left corner of the Region of interest." },
+ { "pmax_row", "Row index of the bottom right corner of the Region of interest." },
+ { "pmax_col", "Col index of the bottom right corner of the Region of interest." },
{ "debug_dir", "Output directory for debug image" },
{0, 0}
};
@@ -95,14 +101,20 @@ int main(int argc, char* argv[])
using namespace scribo;
using namespace mln;
- if (argc != 3 && argc != 4 && argc != 5)
+ if (argc != 3 && argc != 4 && argc != 5 && argc != 8 && argc != 9)
return scribo::debug::usage(argv,
"Find text lines using left/right validation and display x-height in a binarized article.",
- "input.pbm out.txt <denoise: 0|1> <debug_dir>",
+ "input.pbm out.txt <denoise: 0|1> [<pmin_row> <pmin_col> <pmax_row> <pmax_col>] <debug_dir>",
args_desc);
- if (argc == 5)
- scribo::make::internal::debug_filename_prefix = argv[4];
+ bool debug = false;
+
+ // Enable debug output.
+ if (argc == 5 || argc == 9)
+ {
+ scribo::make::internal::debug_filename_prefix = argv[argc - 1];
+ debug = true;
+ }
trace::entering("main");
@@ -110,6 +122,27 @@ int main(int argc, char* argv[])
image2d<bool> input;
mln::io::pbm::load(input, argv[1]);
+
+ // Optional Cropping
+ if (argc >= 8)
+ {
+ def::coord
+ minr = atoi(argv[4]),
+ minc = atoi(argv[5]),
+ maxr = atoi(argv[6]),
+ maxc = atoi(argv[7]);
+
+ box2d roi = mln::make::box2d(minr, minc, maxr, maxc);
+ image2d<bool> tmp(maxr - minr + 1, maxc - minc + 1);
+ data::paste_without_localization(input | roi, tmp);
+ input = tmp;
+
+ if (debug)
+ mln::io::pbm::save(input,
+ scribo::make::debug_filename("input_cropped.pbm"));
+ }
+
+
typedef value::label_16 V;
typedef image2d<V> L;
@@ -129,7 +162,9 @@ int main(int argc, char* argv[])
// whitespaces += separators;
- mln::io::pbm::save(separators, "vseparators.pbm");
+ if (debug)
+ mln::io::pbm::save(separators,
+ scribo::make::debug_filename("vseparators.pbm"));
// mln::io::pbm::save(whitespaces, "separators.pbm");
// mln::io::pbm::save(input_cleaned, "input_no_separators.pbm");
@@ -214,18 +249,20 @@ int main(int argc, char* argv[])
//===== DEBUG =====
- // Bboxes image.
- scribo::debug::save_bboxes_image(input, lines,
- scribo::make::debug_filename("step1_bboxes.ppm"));
+ if (debug)
+ {
- // Bboxes enlarged
- mln::io::ppm::save(scribo::debug::bboxes_enlarged_image(input, lines),
- scribo::make::debug_filename("step1_bboxes_enlarged.ppm"));
+ // Bboxes image.
+ scribo::debug::save_bboxes_image(input, lines,
+ scribo::make::debug_filename("step1_bboxes.ppm"));
- // Looks like a text line
- mln::io::ppm::save(scribo::debug::looks_like_a_text_line_image(input, lines),
- scribo::make::debug_filename("step1_looks_like_a_text_line.ppm"));
+ // Bboxes enlarged
+ mln::io::ppm::save(scribo::debug::bboxes_enlarged_image(input, lines),
+ scribo::make::debug_filename("step1_bboxes_enlarged.ppm"));
+ // Looks like a text line
+ mln::io::ppm::save(scribo::debug::looks_like_a_text_line_image(input, lines),
+ scribo::make::debug_filename("step1_looks_like_a_text_line.ppm"));
// // Bboxes + line infos
// {
@@ -261,10 +298,11 @@ int main(int argc, char* argv[])
// }
- // mean and base lines.
- mln::io::ppm::save(scribo::debug::mean_and_base_lines_image(input, lines),
- scribo::make::debug_filename("step1_x_height.ppm"));
+ // mean and base lines.
+ mln::io::ppm::save(scribo::debug::mean_and_base_lines_image(input, lines),
+ scribo::make::debug_filename("step1_x_height.ppm"));
+ }
//===== END OF DEBUG =====
@@ -277,56 +315,62 @@ int main(int argc, char* argv[])
//===== DEBUG =====
- // mean and base lines.
- mln::io::ppm::save(scribo::debug::mean_and_base_lines_image(input, lines),
- scribo::make::debug_filename("step2_x_height.ppm"));
+ if (debug)
+ {
- // Looks like a text line
- mln::io::ppm::save(scribo::debug::looks_like_a_text_line_image(input, lines),
- scribo::make::debug_filename("step2_looks_like_a_text_line.ppm"));
+ // mean and base lines.
+ mln::io::ppm::save(scribo::debug::mean_and_base_lines_image(input, lines),
+ scribo::make::debug_filename("step2_x_height.ppm"));
- // Bboxes image.
- scribo::debug::save_bboxes_image(input, lines,
- scribo::make::debug_filename("step2_bboxes.ppm"));
+ // Looks like a text line
+ mln::io::ppm::save(scribo::debug::looks_like_a_text_line_image(input, lines),
+ scribo::make::debug_filename("step2_looks_like_a_text_line.ppm"));
+ // Bboxes image.
+ scribo::debug::save_bboxes_image(input, lines,
+ scribo::make::debug_filename("step2_bboxes.ppm"));
- {
- std::ofstream file(scribo::make::debug_filename("step2_bboxes_100p.txt").c_str());
-// std::ofstream file_50p(scribo::make::debug_filename("step2_bboxes_50p.txt").c_str());
-
- for_all_lines(l, lines)
- if (lines(l).tag() != line::Merged
- && lines(l).tag() != line::Ignored
- && lines(l).tag() != line::Pathological)
- {
- file << lines(l).bbox().pmin().row() << " "
- << lines(l).bbox().pmin().col() << " "
- << lines(l).bbox().pmax().row() << " "
- << lines(l).bbox().pmax().col() << " "
- << lines(l).card() << " "
- << lines(l).baseline() << " "
- << lines(l).x_height() << " "
- << lines(l).meanline() << " "
- << lines(l).d_height() << " "
- << lines(l).a_height() << " "
- << lines(l).char_space() << " "
- << lines(l).char_width() << std::endl;
-
-// file_50p << lines(l).bbox().pmin().row() / 2 << " "
-// << lines(l).bbox().pmin().col() / 2 << " "
-// << lines(l).bbox().pmax().row() / 2 << " "
-// << lines(l).bbox().pmax().col() / 2 << std::endl;
- }
-
- file.close();
-// file_50p.close();
- }
+ }
- //===== END OF DEBUG =====
+
+// {
+// std::ofstream file(scribo::make::debug_filename("step2_bboxes_100p.txt").c_str());
+// // std::ofstream file_50p(scribo::make::debug_filename("step2_bboxes_50p.txt").c_str());
+
+// for_all_lines(l, lines)
+// if (lines(l).tag() != line::Merged
+// && lines(l).tag() != line::Ignored
+// && lines(l).tag() != line::Pathological)
+// {
+// file << lines(l).bbox().pmin().row() << " "
+// << lines(l).bbox().pmin().col() << " "
+// << lines(l).bbox().pmax().row() << " "
+// << lines(l).bbox().pmax().col() << " "
+// << lines(l).card() << " "
+// << lines(l).baseline() << " "
+// << lines(l).x_height() << " "
+// << lines(l).meanline() << " "
+// << lines(l).d_height() << " "
+// << lines(l).a_height() << " "
+// << lines(l).char_space() << " "
+// << lines(l).char_width() << std::endl;
+
+// // file_50p << lines(l).bbox().pmin().row() / 2 << " "
+// // << lines(l).bbox().pmin().col() / 2 << " "
+// // << lines(l).bbox().pmax().row() / 2 << " "
+// // << lines(l).bbox().pmax().col() / 2 << std::endl;
+// }
+
+// file.close();
+// // file_50p.close();
+// }
+
+
+ //===== END OF DEBUG =====
- scribo::io::xml::save_text_lines(argv[1], lines, "out.xml");
+ scribo::io::xml::save_text_lines(argv[1], lines, "out.xml");
diff --git a/scribo/src/binarization/fg_sauvola_ms.cc b/scribo/src/text_in_article_preprocess.cc
similarity index 53%
copy from scribo/src/binarization/fg_sauvola_ms.cc
copy to scribo/src/text_in_article_preprocess.cc
index 9c606d6..8cfa82f 100644
--- a/scribo/src/binarization/fg_sauvola_ms.cc
+++ b/scribo/src/text_in_article_preprocess.cc
@@ -1,5 +1,4 @@
-// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
-// (LRDE)
+// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -24,82 +23,69 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
+
+#include <libgen.h>
+#include <iostream>
+
#include <mln/core/image/image2d.hh>
-#include <mln/value/rgb8.hh>
+
#include <mln/io/magick/load.hh>
#include <mln/io/pbm/save.hh>
-#include <scribo/binarization/sauvola_ms.hh>
-#include <scribo/preprocessing/split_bg_fg.hh>
-#include <scribo/debug/usage.hh>
+#include <mln/value/rgb8.hh>
-bool check_args(int argc, char * argv[])
-{
- if (argc != 7)
- return false;
+#include <mln/logical/not.hh>
- int s = atoi(argv[4]);
+#include <scribo/binarization/sauvola_ms.hh>
- if (s < 2 || s > 3)
- {
- std::cout << "s must be set to 2 or 3."
- << std::endl;
- return false;
- }
+#include <scribo/debug/usage.hh>
+
+#include <scribo/preprocessing/split_bg_fg.hh>
- return true;
-}
const char *args_desc[][2] =
{
{ "input.*", "An image." },
- { "output.pbm", "A binary image." },
- { "lambda", "Lambda used to split bg/fg." },
- { "w", "Window size at scale 1. (Common value: 101)" },
- { "s", "First subsampling ratio (Common value: 3)." },
- { "min_area", "Minimum object area at scale 1 (Common value: 67)" },
+ { "output.pbm", "A text file with all the recognized text" },
+ { "enable fg/bg", "If set to 1 enables foreground extraction. (disabled by default)" },
+ { "lambda", "Lambda used in remove fg/bg (Automaticaly deduced by default)." },
{0, 0}
};
-
-
-int main(int argc, char *argv[])
+int main(int argc, char* argv[])
{
- using namespace mln;
using namespace scribo;
+ using namespace mln;
- if (!check_args(argc, argv))
+ if (argc != 3 && argc != 4 && argc != 5)
return scribo::debug::usage(argv,
- "Multi-Scale Binarization based on Sauvola's algorithm. Performs a binarization on each component of the color image and merges the results.",
- "input.* output.pbm w s area_threshold",
+ "Find text in a color document.",
+ "input.* output.pbm <enable fg/bg> <lambda>",
args_desc);
- trace::entering("main");
-
- unsigned lambda = atoi(argv[2]);
+ image2d<value::rgb8> input_rgb;
+ io::magick::load(input_rgb, argv[1]);
- // Window size
- unsigned w_1 = atoi(argv[3]); // Scale 1
+ unsigned lambda;
+ if (argc == 5)
+ lambda = atoi(argv[4]);
+ else
+ lambda = 1.2 * (input_rgb.nrows() + input_rgb.ncols());
- // First subsampling scale.
- unsigned s = atoi(argv[4]);
-
- // Lambda value
- unsigned lambda_min_1 = atoi(argv[5]);
-
-
- image2d<value::rgb8> input_1;
- io::magick::load(input_1, argv[1]);
+ // Extract foreground
+ if (argc == 4 && atoi(argv[3]) == 1)
+ {
+ std::cout << "Extracting foreground..." << std::endl;
+ input_rgb = preprocessing::split_bg_fg(input_rgb, lambda, 32).second();
+ }
- image2d<value::rgb8>
- fg = scribo::preprocessing::split_bg_fg(input_1, lambda, 32).first();
+ // Binarize foreground to use it in the processing chain.
+ std::cout << "Binarizing foreground..." << std::endl;
+ image2d<bool> input = scribo::binarization::sauvola_ms(input_rgb, 101, 3);
- image2d<bool>
- output = scribo::binarization::sauvola_ms(fg, w_1, s, lambda_min_1, SCRIBO_DEFAULT_SAUVOLA_K);
+ logical::not_inplace(input);
- io::pbm::save(output, argv[6]);
+ mln::io::pbm::save(input, argv[2]);
}
-
-
diff --git a/scribo/text/clean.hh b/scribo/text/clean.hh
index fa31ebe..f93bc6f 100644
--- a/scribo/text/clean.hh
+++ b/scribo/text/clean.hh
@@ -1,4 +1,5 @@
-// 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.
//
@@ -113,14 +114,14 @@ namespace scribo
if (fact < 1)
{
std::cout << "Upsampling..." << " - "
- << std::ceil(fact) << std::endl;
- while (fact < 1)
+ << fact << std::endl;
+ while (fact < 0.90)
{
output = scribo::upsampling::bs2x(output); // 2x upsampling
fact *= 2.0f;
-// std::cout << "fact = " << fact
-// << " - output.domain = " << output.domain()
-// << std::endl;
+// std::cout << "fact = " << fact
+// << " - output.domain = " << output.domain()
+// << std::endl;
}
}
else if (fact > 2.5f)
diff --git a/scribo/text/recognition.hh b/scribo/text/recognition.hh
index 72df1e2..6f9dac7 100644
--- a/scribo/text/recognition.hh
+++ b/scribo/text/recognition.hh
@@ -159,7 +159,7 @@ namespace scribo
/// text_ima_cleaned domain is larger than text_ima's.
I text_ima_cleaned = text::clean(lines(i), text_ima);
- mln::io::pbm::save(text_ima_cleaned, mln::debug::filename("line.pbm", debug_id++));
+// mln::io::pbm::save(text_ima_cleaned, mln::debug::filename("line.pbm", debug_id++));
// Setting objects to 'True'
logical::not_inplace(text_ima_cleaned);
@@ -182,7 +182,11 @@ namespace scribo
{
std::cerr << s << std::endl;
if (output_file != 0)
- file << lines(i).bbox() << " " << s << std::endl;
+ {
+ std::string str(s);
+ str = str.substr(0, str.length() - 1);
+ file << lines(i).bbox() << " " << str;
+ }
}
// The string has been allocated by Tesseract. We must free it.
@@ -241,7 +245,11 @@ namespace scribo
{
std::cout << s << std::endl;
if (output_file != 0)
- file << line.domain() << " " << s << std::endl;
+ {
+ std::string str(s);
+ str = str.substr(0, str.length() - 1);
+ file << line.domain() << " " << str;
+ }
}
// The string has been allocated by Tesseract. We must free it.
--
1.5.6.5
1
0
* src/text_in_article_pbm.cc: Update call to text::recognition.
* text/clean.hh: Resize text lines according to their x_height.
* text/extract_lines.hh: Update call to extract::components.
* text/merging.hh: Remove Debug.
* text/recognition.hh: Update call to text::clean and do
recognition only on lines considered as text.
* subsampling/bilinear.hh,
* upsampling/bs2x.hh: New.
---
scribo/ChangeLog | 18 +++++
scribo/src/text_in_article_pbm.cc | 147 +++++++++++++++++++------------------
scribo/subsampling/bilinear.hh | 114 ++++++++++++++++++++++++++++
scribo/text/clean.hh | 86 ++++++++++------------
scribo/text/extract_lines.hh | 6 +-
scribo/text/merging.hh | 30 ++++----
scribo/text/recognition.hh | 5 +-
scribo/upsampling/bs2x.hh | 147 +++++++++++++++++++++++++++++++++++++
8 files changed, 413 insertions(+), 140 deletions(-)
create mode 100644 scribo/subsampling/bilinear.hh
create mode 100644 scribo/upsampling/bs2x.hh
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 97f15b8..f2850e0 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,23 @@
2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Improve OCR recognition.
+
+ * src/text_in_article_pbm.cc: Update call to text::recognition.
+
+ * text/clean.hh: Resize text lines according to their x_height.
+
+ * text/extract_lines.hh: Update call to extract::components.
+
+ * text/merging.hh: Remove Debug.
+
+ * text/recognition.hh: Update call to text::clean and do
+ recognition only on lines considered as text.
+
+ * subsampling/bilinear.hh,
+ * upsampling/bs2x.hh: New.
+
+2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
+
* postprocessing/fill_object_holes.hh: New routine.
2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/scribo/src/text_in_article_pbm.cc b/scribo/src/text_in_article_pbm.cc
index 3f37529..e71d21b 100644
--- a/scribo/src/text_in_article_pbm.cc
+++ b/scribo/src/text_in_article_pbm.cc
@@ -48,12 +48,14 @@
#include <scribo/primitive/remove/separators.hh>
#include <scribo/primitive/link/merge_double_link.hh>
+#include <scribo/primitive/link/internal/dmax_width_and_height.hh>
#include <scribo/primitive/link/with_single_left_link_dmax_ratio.hh>
#include <scribo/primitive/link/with_single_right_link_dmax_ratio.hh>
#include <scribo/primitive/group/from_single_link.hh>
#include <scribo/filter/object_links_bbox_h_ratio.hh>
+#include <scribo/filter/objects_small.hh>
#include <scribo/debug/usage.hh>
@@ -71,6 +73,7 @@
#include <scribo/preprocessing/denoise_fg.hh>
+#include <scribo/io/xml/save_text_lines.hh>
// #include <mln/morpho/closing/structural.hh>
// #include <mln/win/rectangle2d.hh>
@@ -80,6 +83,7 @@ const char *args_desc[][2] =
{
{ "input.pbm", "A binary image. 'False' for object, 'True'\
for the background." },
+ { "out.txt", "Text output" },
{ "denoise", "1 enables denoising, 0 disables it. (enabled by default)" },
{ "debug_dir", "Output directory for debug image" },
{0, 0}
@@ -95,8 +99,7 @@ int main(int argc, char* argv[])
return scribo::debug::usage(argv,
"Find text lines using left/right validation and display x-height in a binarized article.",
"input.pbm out.txt <denoise: 0|1> <debug_dir>",
- args_desc,
- "Text output.");
+ args_desc);
if (argc == 5)
scribo::make::internal::debug_filename_prefix = argv[4];
@@ -151,13 +154,19 @@ int main(int argc, char* argv[])
components.add_separators(separators);
// components.add_separators(whitespaces);
+ components = scribo::filter::components_small(components, 3);
+
/// Linking potential objects
std::cout << "Linking objects..." << std::endl;
object_links<L> left_link
- = primitive::link::with_single_left_link_dmax_ratio(components, 2);
+ = primitive::link::with_single_left_link_dmax_ratio(components,
+ primitive::link::internal::dmax_width_and_height(1),
+ anchor::MassCenter);
object_links<L> right_link
- = primitive::link::with_single_right_link_dmax_ratio(components, 2);
+ = primitive::link::with_single_right_link_dmax_ratio(components,
+ primitive::link::internal::dmax_width_and_height(1),
+ anchor::MassCenter);
// Validating left and right links.
object_links<L>
@@ -218,38 +227,38 @@ int main(int argc, char* argv[])
scribo::make::debug_filename("step1_looks_like_a_text_line.ppm"));
- // Bboxes + line infos
- {
- std::ofstream file(scribo::make::debug_filename("step1_bboxes_100p.txt").c_str());
- std::ofstream file_50p(scribo::make::debug_filename("step1_bboxes_50p.txt").c_str());
-
- for_all_lines(l, lines)
- if (lines(l).tag() != line::Merged
- && lines(l).tag() != line::Ignored
- && lines(l).tag() != line::Pathological)
- {
- file << lines(l).bbox().pmin().row() << " "
- << lines(l).bbox().pmin().col() << " "
- << lines(l).bbox().pmax().row() << " "
- << lines(l).bbox().pmax().col() << " "
- << lines(l).card() << " "
- << lines(l).baseline() << " "
- << lines(l).x_height() << " "
- << lines(l).meanline() << " "
- << lines(l).d_height() << " "
- << lines(l).a_height() << " "
- << lines(l).char_space() << " "
- << lines(l).char_width() << std::endl;
+// // Bboxes + line infos
+// {
+// std::ofstream file(scribo::make::debug_filename("step1_bboxes_100p.txt").c_str());
+// // std::ofstream file_50p(scribo::make::debug_filename("step1_bboxes_50p.txt").c_str());
- file_50p << lines(l).bbox().pmin().row() / 2 << " "
- << lines(l).bbox().pmin().col() / 2 << " "
- << lines(l).bbox().pmax().row() / 2 << " "
- << lines(l).bbox().pmax().col() / 2 << std::endl;
- }
+// for_all_lines(l, lines)
+// if (lines(l).tag() != line::Merged
+// && lines(l).tag() != line::Ignored
+// && lines(l).tag() != line::Pathological)
+// {
+// file << lines(l).bbox().pmin().row() << " "
+// << lines(l).bbox().pmin().col() << " "
+// << lines(l).bbox().pmax().row() << " "
+// << lines(l).bbox().pmax().col() << " "
+// << lines(l).card() << " "
+// << lines(l).baseline() << " "
+// << lines(l).x_height() << " "
+// << lines(l).meanline() << " "
+// << lines(l).d_height() << " "
+// << lines(l).a_height() << " "
+// << lines(l).char_space() << " "
+// << lines(l).char_width() << std::endl;
+
+// // file_50p << lines(l).bbox().pmin().row() / 2 << " "
+// // << lines(l).bbox().pmin().col() / 2 << " "
+// // << lines(l).bbox().pmax().row() / 2 << " "
+// // << lines(l).bbox().pmax().col() / 2 << std::endl;
+// }
- file.close();
- file_50p.close();
- }
+// file.close();
+// // file_50p.close();
+// }
// mean and base lines.
@@ -280,57 +289,49 @@ int main(int argc, char* argv[])
scribo::debug::save_bboxes_image(input, lines,
scribo::make::debug_filename("step2_bboxes.ppm"));
- //===== END OF DEBUG =====
-
+ {
+ std::ofstream file(scribo::make::debug_filename("step2_bboxes_100p.txt").c_str());
+// std::ofstream file_50p(scribo::make::debug_filename("step2_bboxes_50p.txt").c_str());
- scribo::text::recognition(lines, "fra", argv[2]);
+ for_all_lines(l, lines)
+ if (lines(l).tag() != line::Merged
+ && lines(l).tag() != line::Ignored
+ && lines(l).tag() != line::Pathological)
+ {
+ file << lines(l).bbox().pmin().row() << " "
+ << lines(l).bbox().pmin().col() << " "
+ << lines(l).bbox().pmax().row() << " "
+ << lines(l).bbox().pmax().col() << " "
+ << lines(l).card() << " "
+ << lines(l).baseline() << " "
+ << lines(l).x_height() << " "
+ << lines(l).meanline() << " "
+ << lines(l).d_height() << " "
+ << lines(l).a_height() << " "
+ << lines(l).char_space() << " "
+ << lines(l).char_width() << std::endl;
+// file_50p << lines(l).bbox().pmin().row() / 2 << " "
+// << lines(l).bbox().pmin().col() / 2 << " "
+// << lines(l).bbox().pmax().row() / 2 << " "
+// << lines(l).bbox().pmax().col() / 2 << std::endl;
+ }
-// // Display median character space.
-// {
-// image2d<value::rgb8> output = data::convert(value::rgb8(), input);
-// typedef mln::value::int_u<8> median_t;
-// typedef mln::accu::stat::median_h<median_t> accu_t;
-// util::array<accu_t>
-// lspace_med(static_cast<unsigned>(grouped_objects.nlabels()) + 1);
-
-// for_all_components(i, filtered_objects.bboxes())
-// if (groups_packed(i) != 0)
-// {
-// if (hratio_filtered_links(i) != i)
-// {
-// unsigned
-// space = filtered_objects.bbox(i).pmin().col() - filtered_objects.bbox(hratio_filtered_links(i)).pmax().col();
+ file.close();
+// file_50p.close();
+ }
-// lspace_med(groups_packed(i)).take(space);
-// }
-// }
+ //===== END OF DEBUG =====
-// std::cout << "Drawing median character space" << std::endl;
-// for_all_components(i, filtered_objects.bboxes())
-// if (groups_packed(i) != 0 && lspace_med(groups_packed(i)).card() > 1)
-// {
-// unsigned med = lspace_med(groups_packed(i)).to_result();
-// mln::draw::box(output, grouped_objects.bbox(groups_packed(i)),
-// literal::purple);
+ scribo::io::xml::save_text_lines(argv[1], lines, "out.xml");
-// point2d
-// beg = filtered_objects.bbox(i).pmax(),
-// end = beg;
-// beg.row() = filtered_objects.bbox(i).pmin().row();
-// mln::draw::line(output, beg, end, literal::cyan);
-// beg.col() += med;
-// end.col() += med;
-// mln::draw::line(output, beg, end, literal::cyan);
-// }
-// io::ppm::save(output, "median_wspace.ppm");
+ scribo::text::recognition(lines, "fra", argv[2]);
-// }
trace::exiting("main");
}
diff --git a/scribo/subsampling/bilinear.hh b/scribo/subsampling/bilinear.hh
new file mode 100644
index 0000000..cb95a11
--- /dev/null
+++ b/scribo/subsampling/bilinear.hh
@@ -0,0 +1,114 @@
+// 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.
+
+#ifndef SCRIBO_SUBSAMPLING_BILINEAR_HH
+# define SCRIBO_SUBSAMPLING_BILINEAR_HH
+
+/// \file
+///
+/// Bilinear subsampling.
+
+# include <mln/core/concept/image.hh>
+# include <mln/opt/at.hh>
+
+
+namespace scribo
+{
+
+ namespace subsampling
+ {
+
+
+ template <typename I>
+ mln_concrete(I)
+ bilinear(const Image<I>& input_, int sub_ratio);
+
+
+# ifndef MLN_INCLUDE_ONLY
+
+
+ template <typename I>
+ mln_concrete(I)
+ bilinear(const Image<I>& input_, int sub_ratio)
+ {
+ trace::entering("scribo::subsampling::bilinear");
+
+ const I& input = exact(input_);
+ mln_precondition(input.is_valid());
+ mlc_is(mln_domain(I), box2d)::check();
+
+ mln_concrete(I) output(input.domain().nrows() / sub_ratio,
+ input.domain().ncols() / sub_ratio);
+
+ std::cout << "output domain = " << output.domain() << std::endl;
+
+ mln_piter(I) p(output.domain());
+ mln_value(I) pixels[4];
+
+ def::coord
+ x_offset = input.domain().pmin().col(),
+ y_offset = input.domain().pmin().row();
+
+ for_all(p)
+ {
+ int x = round(-0.5 + p.col() * sub_ratio);
+ int y = round(-0.5 + p.row() * sub_ratio);
+
+ if (x < 0)
+ x = 0;
+ else if (x >= geom::max_col(input))
+ x = input.ncols() - 1;
+
+ if (y < 0)
+ y = 0;
+ else if (y >= geom::max_row(input))
+ y = input.nrows() - 1;
+
+ double dx = (p.col() * sub_ratio) - x;
+ double dy = (p.row() * sub_ratio) - y;
+
+ pixels[0] = opt::at(input, y + y_offset, x + x_offset);
+ pixels[1] = opt::at(input, y + y_offset, x + x_offset + 1);
+ pixels[2] = opt::at(input, y + y_offset + 1, x + x_offset);
+ pixels[3] = opt::at(input, y + y_offset + 1, x + x_offset + 1);
+
+ output(p) = pixels[0] * (1 - dx) * (1 - dy) + pixels[1] * dx * (1 - dy) +
+ pixels[2] * (1 - dx) * dy + pixels[3] * dx * dy;
+
+ }
+
+ trace::exiting("scribo::subsampling::bilinear");
+ return output;
+ }
+
+# endif // ! MLN_INCLUDE_ONLY
+
+
+ } // end of namespace subsampling
+
+} // end of namespace scribo
+
+
+#endif // SCRIBO_SUBSAMPLING_BILINEAR_HH
diff --git a/scribo/text/clean.hh b/scribo/text/clean.hh
index ba200fc..fa31ebe 100644
--- a/scribo/text/clean.hh
+++ b/scribo/text/clean.hh
@@ -64,8 +64,9 @@
#include <mln/value/rgb8.hh>
#include <mln/io/pgm/all.hh>
-#include <sandbox/inim/2009/ocr/resize.hh>
-#include <sandbox/fabien/mln/upsampling/hq2x.hh>
+#include <scribo/upsampling/bs2x.hh>
+#include <scribo/subsampling/bilinear.hh>
+
namespace scribo
{
@@ -80,69 +81,60 @@ namespace scribo
///
/// \param[in] input_ A binary image. Object are set to 'false'
/// and backgroud to 'true'.
- /// \param[in] dmap_win_ A weighted window.
///
/// \return An image. The text have better quality.
//
- template <typename I, typename W>
+ template <typename L, typename I>
mln_concrete(I)
- clean(const Image<I>& input_, const Weighted_Window<W>& dmap_win_);
+ clean(const line_info<L>& line, const Image<I>& input_);
# ifndef MLN_INCLUDE_ONLY
- template <typename I, typename W>
+ template <typename L, typename I>
mln_concrete(I)
- clean(const Image<I>& input_, const Weighted_Window<W>& dmap_win_)
+ clean(const line_info<L>& line, const Image<I>& input_)
{
trace::entering("scribo::text::clean");
const I& input = exact(input_);
- const W& dmap_win = exact(dmap_win_);
mlc_bool(mln_site_(I)::dim == 2)::check();
mlc_equal(mln_value(I),bool)::check();
mln_precondition(input.is_valid());
- mln_precondition(dmap_win.is_valid());
- (void) dmap_win;
-
-
- // Resize
- typedef image2d<value::rgb8> J;
- J tmp = data::convert(value::rgb8(), input);
- J clarge = tmp;//mln::upsampling::hq2x(tmp); (FIXME: re-enable)
-
- //FIXME: not generic!
-// if (input.domain().pmax()[0] - input.domain().pmin()[0] <= 10)
-// clarge = mln::upsampling::hq4x(clarge);
-
- I input_large = data::convert(bool(), clarge);
-
- // Blur
- image2d<value::int_u8>
- blur = linear::gaussian(data::convert(value::int_u8(), input_large), 2);
-
- // Skeleton constraint
- I K = topo::skeleton::crest(input_large, blur, c8());
-
- // Skeleton
- I skel_on_gaussian =
- morpho::skeleton_constrained(input_large, c8(),
- topo::skeleton::is_simple_point<I,neighb2d>,
- extend(K, false), arith::revert(blur));
-
- // Dilation
- win::octagon2d oct(7);
- I dilate_on_gaussian = morpho::dilation(skel_on_gaussian, oct);
-
-// io::pgm::save(arith::revert(blur), "blur_revert.pgm");
-// io::pgm::save(blur, "gaussian.pgm");
-// io::pbm::save(input_large, mln::debug::filename("input_large_4x.pbm"));
-// io::pbm::save(K, mln::debug::filename("K.pbm"));
-// io::pbm::save(skel_on_gaussian, mln::debug::filename("skeleton_on_gaussian.pbm"));
-// io::pbm::save(dilate_on_gaussian, mln::debug::filename("dilation_on_gaussian.pbm"));
+ mln_precondition(line.is_valid());
+
+ mln_concrete(I) output = duplicate(input);
+
+ if (line.x_height() < 5) // Non significative text/remaining lines...
+ return output;
+
+ float fact = line.x_height() / 40.0f;
+ std::cout << fact << " - " << output.domain() << std::endl;
+ if (fact < 1)
+ {
+ std::cout << "Upsampling..." << " - "
+ << std::ceil(fact) << std::endl;
+ while (fact < 1)
+ {
+ output = scribo::upsampling::bs2x(output); // 2x upsampling
+ fact *= 2.0f;
+// std::cout << "fact = " << fact
+// << " - output.domain = " << output.domain()
+// << std::endl;
+ }
+ }
+ else if (fact > 2.5f)
+ {
+ std::cout << "subsampling::bilinear" << " - "
+ << std::ceil(fact) << std::endl;
+ output = subsampling::bilinear(output, std::ceil(fact - 0.5)); // math::floor instead?
+
+ }
+ else
+ std::cout << "not cleaning text. Seems ok." << std::endl;
trace::exiting("scribo::text::clean");
- return dilate_on_gaussian;
+ return output;
}
# endif // ! MLN_INCLUDE_ONLY
diff --git a/scribo/text/extract_lines.hh b/scribo/text/extract_lines.hh
index 44dca50..c720d70 100644
--- a/scribo/text/extract_lines.hh
+++ b/scribo/text/extract_lines.hh
@@ -47,7 +47,7 @@
# include <mln/util/graph.hh>
# include <mln/value/label_16.hh>
-# include <scribo/primitive/extract/objects.hh>
+# include <scribo/primitive/extract/components.hh>
# include <scribo/primitive/group/apply.hh>
# include <scribo/primitive/link/with_several_left_links.hh>
# include <scribo/primitive/link/with_several_right_links.hh>
@@ -75,7 +75,7 @@ namespace scribo
** \param[in,out] nbboxes Will hold the number of bounding boxes
** at the end of the routine.
**
- ** \return An object image with grouped potential text objects.
+ ** \return An object image with grouped potential text components.
*/
template <typename I, typename N, typename V>
object_image(mln_ch_value(I,V))
@@ -103,7 +103,7 @@ namespace scribo
typedef mln_ch_value(I,V) L;
typedef object_image(L) text_t;
- text_t text = scribo::primitive::extract::objects(input, nbh, nbboxes);
+ text_t text = scribo::primitive::extract::components(input, nbh, nbboxes);
# ifndef SCRIBO_NDEBUG
debug::save_bboxes_image(input, text.bboxes(), literal::red,
diff --git a/scribo/text/merging.hh b/scribo/text/merging.hh
index e509475..b29e63f 100644
--- a/scribo/text/merging.hh
+++ b/scribo/text/merging.hh
@@ -800,21 +800,21 @@ namespace scribo
(void) ith_pass;
- if (ith_pass == 1)
- {
- mln::io::pgm::save(log, "log_1.pgm");
- mln::io::pgm::save(data::wrap(int_u8(), billboard), "log_1e.pgm");
- }
- else if (ith_pass == 2)
- {
- mln::io::pgm::save(log, "log_2.pgm");
- mln::io::pgm::save(data::wrap(int_u8(), billboard), "log_2e.pgm");
- }
- else if (ith_pass == 3)
- {
- mln::io::pgm::save(log, "log_3.pgm");
- mln::io::pgm::save(data::wrap(int_u8(), billboard), "log_3e.pgm");
- }
+// if (ith_pass == 1)
+// {
+// mln::io::pgm::save(log, "log_1.pgm");
+// mln::io::pgm::save(data::wrap(int_u8(), billboard), "log_1e.pgm");
+// }
+// else if (ith_pass == 2)
+// {
+// mln::io::pgm::save(log, "log_2.pgm");
+// mln::io::pgm::save(data::wrap(int_u8(), billboard), "log_2e.pgm");
+// }
+// else if (ith_pass == 3)
+// {
+// mln::io::pgm::save(log, "log_3.pgm");
+// mln::io::pgm::save(data::wrap(int_u8(), billboard), "log_3e.pgm");
+// }
}
diff --git a/scribo/text/recognition.hh b/scribo/text/recognition.hh
index 5927d44..72df1e2 100644
--- a/scribo/text/recognition.hh
+++ b/scribo/text/recognition.hh
@@ -128,11 +128,12 @@ namespace scribo
/// Use text bboxes with Tesseract
for_all_lines(i, lines)
{
- if (! lines(i).is_valid())
+ if (! lines(i).is_valid() || lines(i).tag() != line::None || lines(i).type() != line::Text)
continue;
std::cout << "Text recognition... ("
<< i << "/" << lines.nelements() << ")" << std::endl;
+ std::cout << "x_height = " << lines(i).x_height() << std::endl;
mln_domain(I) box = lines(i).bbox();
// Make sure characters are isolated from the borders.
@@ -157,7 +158,7 @@ namespace scribo
/// Improve text quality.
/// text_ima_cleaned domain is larger than text_ima's.
- I text_ima_cleaned = text::clean(text_ima, dmap_win);
+ I text_ima_cleaned = text::clean(lines(i), text_ima);
mln::io::pbm::save(text_ima_cleaned, mln::debug::filename("line.pbm", debug_id++));
// Setting objects to 'True'
diff --git a/scribo/upsampling/bs2x.hh b/scribo/upsampling/bs2x.hh
new file mode 100644
index 0000000..6ff8546
--- /dev/null
+++ b/scribo/upsampling/bs2x.hh
@@ -0,0 +1,147 @@
+// 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.
+
+#ifndef SCRIBO_UPSAMPLING_BS2X_HH
+# define SCRIBO_UPSAMPLING_BS2X_HH
+
+/// \file
+///
+/// Scale 2x algorithm for binary images.
+
+# include <mln/core/concept/image.hh>
+# include <mln/core/alias/box2d.hh>
+# include <mln/opt/at.hh>
+# include <mln/geom/all.hh>
+
+
+
+namespace scribo
+{
+
+ namespace upsampling
+ {
+ using namespace mln;
+
+
+ /// \brief Scale 2x algorithm for binary images.
+ ///
+ //
+ template <typename I>
+ mln_concrete(I)
+ bs2x(const Image<I>& input);
+
+
+
+# ifndef MLN_INCLUDE_ONLY
+
+
+ template <typename I>
+ mln_concrete(I)
+ bs2x(const mln::Image<I>& input_)
+ {
+ trace::entering("scribo::upsampling::bs2x");
+
+ const I& input = exact(input_);
+
+ mlc_is(mln_domain(I), mln::box2d)::check();
+ mlc_is(mln_value(I), bool)::check();
+
+ mln_precondition(input.is_valid());
+
+ typedef mln_value(I) V;
+
+ def::coord
+ mrow = geom::min_row(input),
+ mcol = geom::min_col(input);
+
+
+ mln_piter(I) p(input.domain());
+ mln_concrete(I) output(mln::make::box2d(mrow, mcol,
+ mrow + 2 * input.nrows() - 1,
+ mcol + 2 * input.ncols() - 1));
+ for_all(p)
+ {
+ def::coord
+ row = mrow + 2 * (p.row() - mrow),
+ col = mcol + 2 * (p.col() - mcol);
+
+ if(p.row() == geom::min_row(input)
+ || p.col() == geom::min_col(input)
+ || p.row() == geom::max_row(input)
+ || p.col() == geom::max_col(input))
+ {
+ mln::box2d b = mln::make::box2d(row, col,
+ row + 1, col + 1);
+ V value = opt::at(input, p.row(), p.col());
+
+ data::fill((output | b).rw(), value);
+ }
+ else
+ {
+ // nw n ne
+ //
+ // w value e
+ //
+ // sw s se
+
+ V n = input(p + mln::up),
+ s = input(p + mln::down),
+ e = input(p + mln::right),
+ w = input(p + mln::left),
+ nw = input(p + mln::up_left),
+ ne = input(p + mln::up_right),
+ sw = input(p + mln::down_left),
+ se = input(p + mln::down_right),
+ value = input(p);
+
+ if(e != w && n != s)
+ {
+ opt::at(output, row, col) = (w == n &&((se != nw) || !value)) ? w : value;
+ opt::at(output, row, col + 1) = (e == n &&((sw != ne) || !value)) ? e : value;
+ opt::at(output, row + 1, col) = (w == s &&((ne != sw) || !value)) ? w : value;
+ opt::at(output, row + 1, col + 1) = (e == s &&((nw != se) || !value)) ? e : value;
+ }
+ else
+ {
+ mln::box2d b = mln::make::box2d(row, col,
+ row + 1, col + 1);
+ data::fill((output | b).rw(), value);
+ }
+ }
+ }
+
+ trace::exiting("scribo::upsampling::bs2x");
+ return output;
+ }
+
+# endif // ! MLN_INCLUDE_ONLY
+
+
+ } // end of namespace upsampling
+
+} // end of namespace scribo
+
+
+#endif // ! SCRIBO_UPSAMPLING_BS2X_HH
--
1.5.6.5
1
0
last-svn-commit-119-g28453cf postprocessing/fill_object_holes.hh: New routine.
by Guillaume Lazzara 03 Jun '10
by Guillaume Lazzara 03 Jun '10
03 Jun '10
---
scribo/ChangeLog | 12 ++-
.../fill_object_holes.hh} | 134 ++++++++++++++++----
2 files changed, 118 insertions(+), 28 deletions(-)
copy scribo/{filter/object_groups_with_holes.hh => postprocessing/fill_object_holes.hh} (65%)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 4aa545d..97f15b8 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,11 +1,15 @@
2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
+ * postprocessing/fill_object_holes.hh: New routine.
+
+2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Add new routines to detect separators.
- * scribo/primitive/extract/horizontal_separators.hh,
- * scribo/primitive/extract/separators.hh,
- * scribo/primitive/extract/vertical_separators.hh,
- * scribo/primitive/remove/separators.hh: New.
+ * primitive/extract/horizontal_separators.hh,
+ * primitive/extract/separators.hh,
+ * primitive/extract/vertical_separators.hh,
+ * primitive/remove/separators.hh: New.
2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/scribo/filter/object_groups_with_holes.hh b/scribo/postprocessing/fill_object_holes.hh
similarity index 65%
copy from scribo/filter/object_groups_with_holes.hh
copy to scribo/postprocessing/fill_object_holes.hh
index 570ae6a..4771844 100644
--- a/scribo/filter/object_groups_with_holes.hh
+++ b/scribo/postprocessing/fill_object_holes.hh
@@ -23,12 +23,16 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-#ifndef SCRIBO_FILTER_OBJECT_GROUPS_WITH_HOLES_HH
-# define SCRIBO_FILTER_OBJECT_GROUPS_WITH_HOLES_HH
+#ifndef SCRIBO_POSTPROCESSING_FILL_OBJECT_HOLES_HH
+# define SCRIBO_POSTPROCESSING_FILL_OBJECT_HOLES_HH
/// \file
///
-/// \brief Remove groups not having a minimum number of holes.
+/// \brief Fill-in object small holes.
+
+/// \FIXME share code with filter/object_groups_with_holes.hh
+/// \FIXME Merge the two following routines.
+/// \FIXME Use a size ratio in both overloads.
# include <sstream>
@@ -47,28 +51,32 @@
# include <mln/fun/i2v/array.hh>
# include <scribo/core/macros.hh>
-# include <scribo/core/component_set.hh>
+# include <scribo/core/object_groups.hh>
+# include <scribo/primitive/group/apply.hh>
namespace scribo
{
- namespace filter
+ namespace postprocessing
{
using namespace mln;
- /*! \brief Remove groups not having a minimum number of holes.
+ /*! \brief Fill-in object small holes.
+ */
+ template <typename I>
+ inline
+ mln_concrete(I)
+ fill_object_holes(const Image<I>& input, float ratio);
- */
template <typename L>
inline
object_groups<L>
- object_groups_with_holes(const object_groups<L>& components,
- unsigned min_size);
-
+ fill_object_holes(const object_groups<L>& groups,
+ unsigned min_size);
# ifndef MLN_INCLUDE_ONLY
@@ -124,7 +132,7 @@ namespace scribo
}
- } // end of namespace scribo::filter::internal
+ } // end of namespace scribo::postprocessing::internal
@@ -139,10 +147,10 @@ namespace scribo
template <typename L>
inline
object_groups<L>
- object_groups_with_holes(const object_groups<L>& groups,
+ fill_object_holes(const object_groups<L>& groups,
unsigned min_size)
{
- trace::entering("scribo::filter::impl::generic::object_groups_with_holes");
+ trace::entering("scribo::postprocessing::impl::generic::fill_object_holes");
// Grouping groups and relabel the underlying labeled image.
// Groups are now considered as components.
@@ -259,7 +267,7 @@ namespace scribo
if (kept == components.nelements())
{
- trace::exiting("scribo::filter::impl::generic::object_groups_with_holes");
+ trace::exiting("scribo::postprocessing::impl::generic::fill_object_holes");
return groups.duplicate();
}
@@ -269,15 +277,15 @@ namespace scribo
output(c) = 0;
- trace::exiting("scribo::filter::impl::generic::object_groups_with_holes");
+ trace::exiting("scribo::postprocessing::impl::generic::fill_object_holes");
return output;
}
}
- } // end of namespace scribo::filter::impl::generic
+ } // end of namespace scribo::postprocessing::impl::generic
- } // end of namespace scribo::filter::impl
+ } // end of namespace scribo::postprocessing::impl
@@ -286,25 +294,103 @@ namespace scribo
template <typename L>
inline
object_groups<L>
- object_groups_with_holes(const object_groups<L>& groups,
- unsigned min_size)
+ fill_object_holes(const object_groups<L>& groups,
+ unsigned min_size)
{
- trace::entering("scribo::filter::object_groups_with_holes");
+ trace::entering("scribo::postprocessing::fill_object_holes");
mln_precondition(groups.is_valid());
object_groups<L>
- output = impl::generic::object_groups_with_holes(groups, min_size);
+ output = impl::generic::fill_object_holes(groups, min_size);
+
+ trace::exiting("scribo::postprocessing::fill_object_holes");
+ return output;
+ }
+
+
+ template <typename I>
+ inline
+ mln_concrete(I)
+ fill_object_holes(const Image<I>& input_, float ratio)
+ {
+ trace::entering("scribo::postprocessing::fill_object_holes");
+
+ mln_precondition(input.is_valid());
+ mlc_is(mln_value(I), bool)::check();
+
+ const I& input = exact(input_);
+ mln_concrete(I) output = duplicate(input);
+
+ typedef value::int_u16 L;
+ typedef mln_ch_value(I, L) Li;
+ typedef accu::math::count<mln_site(Li)> A;
+
+ typedef util::couple<Li, util::couple<util::array<unsigned>,
+ util::array<A> > > res_t;
+
+ // Holes card Image
+
+ std::cout << "> Holes card image" << std::endl;
+
+ L nlabels;
+
+ res_t res = labeling::blobs_and_compute(input, c8(), nlabels, A());
- trace::exiting("scribo::filter::object_groups_with_holes");
+ util::array<unsigned>& holes_card = res.second().first();
+ mln_ch_value(I, unsigned)
+ holes = data::transform(res.first(), holes_card);
+
+
+
+ // Threshold Image
+
+ std::cout << "> Threshold image" << std::endl;
+
+
+ I input_i = logical::not_(input);
+ res = labeling::blobs_and_compute(input_i, c8(), nlabels, A());
+
+ util::array<unsigned>& card = res.second().first();
+ for (unsigned i = 1; i < card.size(); ++i)
+ card(i) = card(i) * ratio;
+
+ mln_ch_value(I, unsigned)
+ thres = data::transform(res.first(), card);
+ thres = transform::influence_zone_geodesic(thres, c8());
+
+
+
+ // Thresholding
+
+ std::cout << "> Thresholding" << std::endl;
+
+ I hole_mask;
+ initialize(hole_mask, holes);
+ data::fill(hole_mask, false);
+ mln_piter(I) p(input.domain());
+ for_all(p)
+ if (holes(p))
+ hole_mask(p) = holes(p) < thres(p);
+
+
+ // Cleanup
+
+ std::cout << "> Cleanup" << std::endl;
+
+ data::fill((output | pw::value(hole_mask)).rw(), false);
+
+
+ trace::exiting("scribo::postprocessing::fill_object_holes");
return output;
}
+
# endif // ! MLN_INCLUDE_ONLY
- } // end of namespace scribo::filter
+ } // end of namespace scribo::postprocessing
} // end of namespace scribo
-#endif // ! SCRIBO_FILTER_OBJECT_GROUPS_WITH_HOLES_HH
+#endif // ! SCRIBO_POSTPROCESSING_FILL_OBJECT_HOLES_HH
--
1.5.6.5
1
0
03 Jun '10
* scribo/primitive/extract/horizontal_separators.hh,
* scribo/primitive/extract/separators.hh,
* scribo/primitive/extract/vertical_separators.hh,
* scribo/primitive/remove/separators.hh: New.
---
scribo/ChangeLog | 9 ++
.../primitive/extract/horizontal_separators.hh | 69 ++++++++--------
.../extract/{lines_v_pattern.hh => separators.hh} | 78 ++++++++----------
.../primitive/extract/vertical_separators.hh | 69 ++++++++--------
.../lines_v_pattern.hh => remove/separators.hh} | 86 +++++++++----------
5 files changed, 155 insertions(+), 156 deletions(-)
copy milena/mln/world/inter_pixel/full2image.hh => scribo/primitive/extract/horizontal_separators.hh (53%)
copy scribo/primitive/extract/{lines_v_pattern.hh => separators.hh} (53%)
copy milena/mln/world/inter_pixel/full2image.hh => scribo/primitive/extract/vertical_separators.hh (53%)
copy scribo/primitive/{extract/lines_v_pattern.hh => remove/separators.hh} (50%)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index b4d325e..4aa545d 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,14 @@
2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Add new routines to detect separators.
+
+ * scribo/primitive/extract/horizontal_separators.hh,
+ * scribo/primitive/extract/separators.hh,
+ * scribo/primitive/extract/vertical_separators.hh,
+ * scribo/primitive/remove/separators.hh: New.
+
+2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Add A first draft of a README in Scribo.
* README: New.
diff --git a/milena/mln/world/inter_pixel/full2image.hh b/scribo/primitive/extract/horizontal_separators.hh
similarity index 53%
copy from milena/mln/world/inter_pixel/full2image.hh
copy to scribo/primitive/extract/horizontal_separators.hh
index db3bcf3..9a6ea39 100644
--- a/milena/mln/world/inter_pixel/full2image.hh
+++ b/scribo/primitive/extract/horizontal_separators.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -23,37 +23,44 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-#ifndef MLN_WORLD_INTER_PIXEL_FULL2IMAGE_HH
-# define MLN_WORLD_INTER_PIXEL_FULL2IMAGE_HH
+#ifndef SCRIBO_PRIMITIVE_EXTRACT_VERTICAL_SEPARATORS_HH
+# define SCRIBO_PRIMITIVE_EXTRACT_VERTICAL_SEPARATORS_HH
/// \file
///
-/// Convert an inter-pixel image to a classical image.
+/// Extract vertical separators.
# include <mln/core/concept/image.hh>
-# include <mln/data/paste_without_localization.hh>
-# include <mln/geom/nsites.hh>
-# include <mln/world/inter_pixel/is_pixel.hh>
+# include <mln/arith/plus.hh>
+# include <scribo/primitive/extract/lines_v_pattern.hh>
-namespace mln
+
+namespace scribo
{
- namespace world
+ namespace primitive
{
- namespace inter_pixel
+ namespace extract
{
- /// Convert an inter-pixel image to a classical image.
- ///
- /// \param[in] input An inter-pixel image.
- ///
- /// \return A classical image without inter-pixel data.
- //
+ using namespace mln;
+
+ /// \brief Extract vertical separators.
+ /*!
+ *
+ * \param[in] input A binary image.
+ * \param[in] line_length The minimum line length.
+ *
+ * \return A binary image were separators are set to 'True'.
+ *
+ * \sa primitive::remove::separators
+ */
template <typename I>
mln_concrete(I)
- full2image(const Image<I>& input);
+ vertical_separators(const Image<I>& input, unsigned line_length);
+
# ifndef MLN_INCLUDE_ONLY
@@ -61,34 +68,28 @@ namespace mln
template <typename I>
mln_concrete(I)
- full2image(const Image<I>& input_)
+ vertical_separators(const Image<I>& input_, unsigned line_length)
{
- trace::entering("world::inter_pixel::full2image");
-
- mlc_is_a(mln_domain(I), Box)::check();
+ trace::entering("scribo::primitive::extract::vertical_separators");
const I& input = exact(input_);
+ mlc_is(mln_value(I), bool)::check();
mln_precondition(input.is_valid());
- mln_domain(I) b(input.domain().pmin() / 2,
- input.domain().pmax() / 2);
- mln_concrete(I) output(b);
- mln_assertion(geom::nsites(output) == geom::nsites(input | is_pixel()));
+ mln_concrete(I)
+ vlines = extract::lines_v_pattern(input, line_length, 3);
- data::paste_without_localization(input | is_pixel(), output);
-
- trace::exiting("world::inter_pixel::full2image");
- return output;
+ trace::exiting("scribo::primitive::extract::vertical_separators");
+ return vlines;
}
# endif // ! MLN_INCLUDE_ONLY
+ } // end of namespace scribo::primitive::extract
- } // end of namespace mln::world::inter_pixel
-
- } // end of namespace mln::world
+ } // end of namespace scribo::primitive
-} // end of namespace mln
+} // end of namespace scribo
-#endif // ! MLN_WORLD_INTER_PIXEL_FULL2IMAGE_HH
+#endif // ! SCRIBO_PRIMITIVE_EXTRACT_VERTICAL_SEPARATORS_HH
diff --git a/scribo/primitive/extract/lines_v_pattern.hh b/scribo/primitive/extract/separators.hh
similarity index 53%
copy from scribo/primitive/extract/lines_v_pattern.hh
copy to scribo/primitive/extract/separators.hh
index ccd21c5..2ba22b4 100644
--- a/scribo/primitive/extract/lines_v_pattern.hh
+++ b/scribo/primitive/extract/separators.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -23,21 +23,19 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-#ifndef SCRIBO_PRIMITIVE_EXTRACT_LINES_V_PATTERN_HH
-# define SCRIBO_PRIMITIVE_EXTRACT_LINES_V_PATTERN_HH
+#ifndef SCRIBO_PRIMITIVE_EXTRACT_SEPARATORS_HH
+# define SCRIBO_PRIMITIVE_EXTRACT_SEPARATORS_HH
/// \file
///
-/// Extract vertical lines matching a specific pattern.
+/// Extract vertical and horizontal separators.
-#include <mln/core/concept/image.hh>
-#include <mln/core/alias/window2d.hh>
+# include <mln/core/concept/image.hh>
+# include <mln/arith/plus.hh>
-# include <mln/win/hline2d.hh>
+# include <scribo/primitive/extract/lines_h_pattern.hh>
+# include <scribo/primitive/extract/lines_v_pattern.hh>
-# include <mln/morpho/dilation.hh>
-
-# include <scribo/primitive/extract/lines_pattern.hh>
namespace scribo
{
@@ -50,17 +48,20 @@ namespace scribo
using namespace mln;
-
- /// Extract vertical lines matching a specific pattern.
- ///
- /// \param[in] input A binary image.
- /// \param[in] length The minimum line length.
- ///
- /// \result An image of vertical lines.
- //
+ /// \brief Extract vertical and horizontal separators.
+ /*!
+ *
+ * \param[in] input A binary image.
+ * \param[in] line_length The minimum line length.
+ *
+ * \return A binary image were separators are set to 'True'.
+ *
+ * \sa primitive::remove::separators
+ */
template <typename I>
mln_concrete(I)
- lines_v_pattern(const Image<I>& input, unsigned length, unsigned delta);
+ separators(const Image<I>& input, unsigned line_length);
+
# ifndef MLN_INCLUDE_ONLY
@@ -68,28 +69,21 @@ namespace scribo
template <typename I>
mln_concrete(I)
- lines_v_pattern(const Image<I>& input, unsigned length, unsigned delta)
+ separators(const Image<I>& input_, unsigned line_length)
{
- mln_precondition(length % 2 == 1);
-
-// bool win_def[1][7] = { { 1, 0, 0, 0, 0, 0, 1 } };
-
-// window2d win;
-// convert::from_to(win_def, win);
-
- // FIXME: not generic.
- window2d win;
- mln_deduce(I, site, dpsite)
- dp1(0, -delta),
- dp2(0, delta);
- win.insert(dp1);
- win.insert(dp2);
-
- //FIXME: Add reconstruction instead of this arbitrary dilation.
- win::vline2d vwin(length/2 + 2);
-// win::vline2d vwin(length);
- return morpho::dilation(lines_pattern(input, length, 0, win), vwin);
-// return lines_pattern(input, length, 0, win);
+ trace::entering("scribo::primitive::extract::separators");
+
+ const I& input = exact(input_);
+ mlc_is(mln_value(I), bool)::check();
+ mln_precondition(input.is_valid());
+
+ mln_concrete(I)
+ hlines = extract::lines_h_pattern(input, line_length, 3),
+ vlines = extract::lines_v_pattern(input, line_length, 3);
+ hlines += vlines;
+
+ trace::exiting("scribo::primitive::extract::separators");
+ return hlines;
}
@@ -101,6 +95,4 @@ namespace scribo
} // end of namespace scribo
-
-#endif // ! SCRIBO_PRIMITIVE_EXTRACT_LINES_V_PATTERN_HH
-
+#endif // ! SCRIBO_PRIMITIVE_EXTRACT_SEPARATORS_HH
diff --git a/milena/mln/world/inter_pixel/full2image.hh b/scribo/primitive/extract/vertical_separators.hh
similarity index 53%
copy from milena/mln/world/inter_pixel/full2image.hh
copy to scribo/primitive/extract/vertical_separators.hh
index db3bcf3..9a6ea39 100644
--- a/milena/mln/world/inter_pixel/full2image.hh
+++ b/scribo/primitive/extract/vertical_separators.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -23,37 +23,44 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-#ifndef MLN_WORLD_INTER_PIXEL_FULL2IMAGE_HH
-# define MLN_WORLD_INTER_PIXEL_FULL2IMAGE_HH
+#ifndef SCRIBO_PRIMITIVE_EXTRACT_VERTICAL_SEPARATORS_HH
+# define SCRIBO_PRIMITIVE_EXTRACT_VERTICAL_SEPARATORS_HH
/// \file
///
-/// Convert an inter-pixel image to a classical image.
+/// Extract vertical separators.
# include <mln/core/concept/image.hh>
-# include <mln/data/paste_without_localization.hh>
-# include <mln/geom/nsites.hh>
-# include <mln/world/inter_pixel/is_pixel.hh>
+# include <mln/arith/plus.hh>
+# include <scribo/primitive/extract/lines_v_pattern.hh>
-namespace mln
+
+namespace scribo
{
- namespace world
+ namespace primitive
{
- namespace inter_pixel
+ namespace extract
{
- /// Convert an inter-pixel image to a classical image.
- ///
- /// \param[in] input An inter-pixel image.
- ///
- /// \return A classical image without inter-pixel data.
- //
+ using namespace mln;
+
+ /// \brief Extract vertical separators.
+ /*!
+ *
+ * \param[in] input A binary image.
+ * \param[in] line_length The minimum line length.
+ *
+ * \return A binary image were separators are set to 'True'.
+ *
+ * \sa primitive::remove::separators
+ */
template <typename I>
mln_concrete(I)
- full2image(const Image<I>& input);
+ vertical_separators(const Image<I>& input, unsigned line_length);
+
# ifndef MLN_INCLUDE_ONLY
@@ -61,34 +68,28 @@ namespace mln
template <typename I>
mln_concrete(I)
- full2image(const Image<I>& input_)
+ vertical_separators(const Image<I>& input_, unsigned line_length)
{
- trace::entering("world::inter_pixel::full2image");
-
- mlc_is_a(mln_domain(I), Box)::check();
+ trace::entering("scribo::primitive::extract::vertical_separators");
const I& input = exact(input_);
+ mlc_is(mln_value(I), bool)::check();
mln_precondition(input.is_valid());
- mln_domain(I) b(input.domain().pmin() / 2,
- input.domain().pmax() / 2);
- mln_concrete(I) output(b);
- mln_assertion(geom::nsites(output) == geom::nsites(input | is_pixel()));
+ mln_concrete(I)
+ vlines = extract::lines_v_pattern(input, line_length, 3);
- data::paste_without_localization(input | is_pixel(), output);
-
- trace::exiting("world::inter_pixel::full2image");
- return output;
+ trace::exiting("scribo::primitive::extract::vertical_separators");
+ return vlines;
}
# endif // ! MLN_INCLUDE_ONLY
+ } // end of namespace scribo::primitive::extract
- } // end of namespace mln::world::inter_pixel
-
- } // end of namespace mln::world
+ } // end of namespace scribo::primitive
-} // end of namespace mln
+} // end of namespace scribo
-#endif // ! MLN_WORLD_INTER_PIXEL_FULL2IMAGE_HH
+#endif // ! SCRIBO_PRIMITIVE_EXTRACT_VERTICAL_SEPARATORS_HH
diff --git a/scribo/primitive/extract/lines_v_pattern.hh b/scribo/primitive/remove/separators.hh
similarity index 50%
copy from scribo/primitive/extract/lines_v_pattern.hh
copy to scribo/primitive/remove/separators.hh
index ccd21c5..9b45919 100644
--- a/scribo/primitive/extract/lines_v_pattern.hh
+++ b/scribo/primitive/remove/separators.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -23,21 +23,22 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-#ifndef SCRIBO_PRIMITIVE_EXTRACT_LINES_V_PATTERN_HH
-# define SCRIBO_PRIMITIVE_EXTRACT_LINES_V_PATTERN_HH
+#ifndef SCRIBO_PRIMITIVE_REMOVE_SEPARATORS_HH
+# define SCRIBO_PRIMITIVE_REMOVE_SEPARATORS_HH
/// \file
///
-/// Extract vertical lines matching a specific pattern.
+/// Remove separators in a binary image.
-#include <mln/core/concept/image.hh>
-#include <mln/core/alias/window2d.hh>
+# include <mln/core/concept/image.hh>
-# include <mln/win/hline2d.hh>
+# include <mln/core/routine/duplicate.hh>
-# include <mln/morpho/dilation.hh>
+# include <mln/core/image/dmorph/image_if.hh>
+# include <mln/pw/all.hh>
+
+# include <mln/data/fill.hh>
-# include <scribo/primitive/extract/lines_pattern.hh>
namespace scribo
{
@@ -45,22 +46,26 @@ namespace scribo
namespace primitive
{
- namespace extract
+ namespace remove
{
using namespace mln;
-
- /// Extract vertical lines matching a specific pattern.
- ///
- /// \param[in] input A binary image.
- /// \param[in] length The minimum line length.
- ///
- /// \result An image of vertical lines.
- //
+ /// \brief Remove separators in a binary image.
+ /*!
+ *
+ * \param[in] input A binary image. 'True' for objects, 'False'
+ * for the background.
+ * \param[in] separators A binary image of separators.
+ *
+ * \return \p input without separators.
+ *
+ * \sa primitive::extract::separators
+ */
template <typename I>
mln_concrete(I)
- lines_v_pattern(const Image<I>& input, unsigned length, unsigned delta);
+ separators(const Image<I>& input, const Image<I>& separators);
+
# ifndef MLN_INCLUDE_ONLY
@@ -68,39 +73,30 @@ namespace scribo
template <typename I>
mln_concrete(I)
- lines_v_pattern(const Image<I>& input, unsigned length, unsigned delta)
+ separators(const Image<I>& input_, const Image<I>& separators_)
{
- mln_precondition(length % 2 == 1);
-
-// bool win_def[1][7] = { { 1, 0, 0, 0, 0, 0, 1 } };
-
-// window2d win;
-// convert::from_to(win_def, win);
-
- // FIXME: not generic.
- window2d win;
- mln_deduce(I, site, dpsite)
- dp1(0, -delta),
- dp2(0, delta);
- win.insert(dp1);
- win.insert(dp2);
-
- //FIXME: Add reconstruction instead of this arbitrary dilation.
- win::vline2d vwin(length/2 + 2);
-// win::vline2d vwin(length);
- return morpho::dilation(lines_pattern(input, length, 0, win), vwin);
-// return lines_pattern(input, length, 0, win);
- }
+ trace::entering("scribo::primitive::remove::separators");
+
+ const I& input = exact(input_);
+ const I& separators = exact(separators_);
+ mlc_is(mln_value(I), bool)::check();
+ mln_precondition(input.is_valid());
+ mln_precondition(separators.is_valid());
+ mln_concrete(I) output = duplicate(input);
+ data::fill((output | (pw::value(separators) == pw::cst(true))).rw(),
+ false);
+
+ trace::exiting("scribo::primitive::remove::separators");
+ return output;
+ }
# endif // ! MLN_INCLUDE_ONLY
- } // end of namespace scribo::primitive::extract
+ } // end of namespace scribo::primitive::remove
} // end of namespace scribo::primitive
} // end of namespace scribo
-
-#endif // ! SCRIBO_PRIMITIVE_EXTRACT_LINES_V_PATTERN_HH
-
+#endif // ! SCRIBO_PRIMITIVE_REMOVE_SEPARATORS_HH
--
1.5.6.5
1
0
last-svn-commit-117-g464d58f Add A first draft of a README in Scribo.
by Guillaume Lazzara 03 Jun '10
by Guillaume Lazzara 03 Jun '10
03 Jun '10
* README: New.
---
scribo/ChangeLog | 72 +++++++++++++++++++++++++++++------------------------
scribo/README | 51 ++++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+), 33 deletions(-)
create mode 100644 scribo/README
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 0a98d9a..b4d325e 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,40 +1,46 @@
2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Add A first draft of a README in Scribo.
+
+ * README: New.
+
+2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Move AFP's GUI into Scribo's demo directory.
- * milena/sandbox/lazzara/afp/photos/gui/gui.pro,
- * milena/sandbox/lazzara/afp/photos/gui/gui.qrc,
- * milena/sandbox/lazzara/afp/photos/gui/icons/next.png,
- * milena/sandbox/lazzara/afp/photos/gui/icons/ok.png,
- * milena/sandbox/lazzara/afp/photos/gui/icons/photos.png,
- * milena/sandbox/lazzara/afp/photos/gui/icons/prev.png,
- * milena/sandbox/lazzara/afp/photos/gui/icons/remove.png,
- * milena/sandbox/lazzara/afp/photos/gui/src/custom_delegate.cc,
- * milena/sandbox/lazzara/afp/photos/gui/src/custom_delegate.hh,
- * milena/sandbox/lazzara/afp/photos/gui/src/launch_dialog.cc,
- * milena/sandbox/lazzara/afp/photos/gui/src/launch_dialog.hh,
- * milena/sandbox/lazzara/afp/photos/gui/src/main.cc,
- * milena/sandbox/lazzara/afp/photos/gui/src/main_window.cc,
- * milena/sandbox/lazzara/afp/photos/gui/src/main_window.hh,
- * milena/sandbox/lazzara/afp/photos/gui/ui/launch_dialog.ui,
- * milena/sandbox/lazzara/afp/photos/gui/ui/main_window.ui: Move...
-
- * scribo/demo/tip/gui.pro,
- * scribo/demo/tip/gui.qrc,
- * scribo/demo/tip/icons/next.png,
- * scribo/demo/tip/icons/ok.png,
- * scribo/demo/tip/icons/photos.png,
- * scribo/demo/tip/icons/prev.png,
- * scribo/demo/tip/icons/remove.png,
- * scribo/demo/tip/src/custom_delegate.cc,
- * scribo/demo/tip/src/custom_delegate.hh,
- * scribo/demo/tip/src/launch_dialog.cc,
- * scribo/demo/tip/src/launch_dialog.hh,
- * scribo/demo/tip/src/main.cc,
- * scribo/demo/tip/src/main_window.cc,
- * scribo/demo/tip/src/main_window.hh,
- * scribo/demo/tip/ui/launch_dialog.ui,
- * scribo/demo/tip/ui/main_window.ui: ... here.
+ * ../milena/sandbox/lazzara/afp/photos/gui/gui.pro,
+ * ../milena/sandbox/lazzara/afp/photos/gui/gui.qrc,
+ * ../milena/sandbox/lazzara/afp/photos/gui/icons/next.png,
+ * ../milena/sandbox/lazzara/afp/photos/gui/icons/ok.png,
+ * ../milena/sandbox/lazzara/afp/photos/gui/icons/photos.png,
+ * ../milena/sandbox/lazzara/afp/photos/gui/icons/prev.png,
+ * ../milena/sandbox/lazzara/afp/photos/gui/icons/remove.png,
+ * ../milena/sandbox/lazzara/afp/photos/gui/src/custom_delegate.cc,
+ * ../milena/sandbox/lazzara/afp/photos/gui/src/custom_delegate.hh,
+ * ../milena/sandbox/lazzara/afp/photos/gui/src/launch_dialog.cc,
+ * ../milena/sandbox/lazzara/afp/photos/gui/src/launch_dialog.hh,
+ * ../milena/sandbox/lazzara/afp/photos/gui/src/main.cc,
+ * ../milena/sandbox/lazzara/afp/photos/gui/src/main_window.cc,
+ * ../milena/sandbox/lazzara/afp/photos/gui/src/main_window.hh,
+ * ../milena/sandbox/lazzara/afp/photos/gui/ui/launch_dialog.ui,
+ * ../milena/sandbox/lazzara/afp/photos/gui/ui/main_window.ui: Move...
+
+ * demo/tip/gui.pro,
+ * demo/tip/gui.qrc,
+ * demo/tip/icons/next.png,
+ * demo/tip/icons/ok.png,
+ * demo/tip/icons/photos.png,
+ * demo/tip/icons/prev.png,
+ * demo/tip/icons/remove.png,
+ * demo/tip/src/custom_delegate.cc,
+ * demo/tip/src/custom_delegate.hh,
+ * demo/tip/src/launch_dialog.cc,
+ * demo/tip/src/launch_dialog.hh,
+ * demo/tip/src/main.cc,
+ * demo/tip/src/main_window.cc,
+ * demo/tip/src/main_window.hh,
+ * demo/tip/ui/launch_dialog.ui,
+ * demo/tip/ui/main_window.ui: ... here.
2010-04-30 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/scribo/README b/scribo/README
new file mode 100644
index 0000000..b8b7ca2
--- /dev/null
+++ b/scribo/README
@@ -0,0 +1,51 @@
+Copyright (C) 2009, 2010 EPITA Research and Development Laboratory (LRDE)
+
+This file is part of Scribo.
+
+Scribo 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.
+
+Scribo 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/>.
+
+The complete GNU General Public License Notice can also be found in
+the 'COPYING' file in the root directory.
+
+
+======================
+ Introduction to Olena
+======================
+
+Scribo aims to provide tools for Document Image Analysis (DIA).
+
+
+========
+ Content
+========
+
+demo/
+
+ demat
+ Sample GUI used to retrieve text from a whole document or a
+ region of interest.
+
+ wizard
+ Sample GUI used to retrieve text from a whole document or a
+ region of interest.
+
+ tip
+ Sample GUI used to display text localization in picture results.
+
+
+src/
+ text_in_article_pbm
+ Retrieve text from a document.
+
+ text_in_picture_fast
+ Localize text in pictures.
\ No newline at end of file
--
1.5.6.5
1
0