Subject: [LrdeTools] 3158: Commit test.
From: Dalila Benboudjema <[email-masked]>
To: [email-masked]
Date: Thu, 15 Jan 2009 15:42:47 +0100
Newsgroups: lrde.proj
List-Id: Various projects from the LRDE <projects.lrde.epita.fr>

https://svn.lrde.epita.fr/svn/oln/trunk/milena/sandbox

Index: ChangeLog
from  Dalila Benboudjema  <[email-masked]>

	Commit test.

	* igr/code/test.cc: New test.

 test.cc |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Index: igr/code/test.cc
--- igr/code/test.cc	(revision 0)
+++ igr/code/test.cc	(revision 0)
@@ -0,0 +1,50 @@
+#include <iostream>
+
+#include <mln/core/image/image2d.hh>
+#include <mln/value/rgb8.hh>
+#include <mln/literal/colors.hh>
+
+#include <mln/arith/revert.hh>
+
+#include <mln/morpho/meyer_wst.hh>
+#include <mln/morpho/closing_volume.hh>
+#include <mln/morpho/closing_area.hh>
+#include <mln/morpho/elementary/gradient.hh>
+#include <mln/core/alias/neighb2d.hh>
+
+#include <mln/io/ppm/load.hh>
+#include <mln/io/ppm/save.hh>
+#include <mln/io/pgm/save.hh>
+
+#include <mln/data/paste.hh>
+#include <mln/level/apply.hh>
+
+#include <mln/fun/v2v/rgb_to_hsi.hh>
+#include <mln/fun/v2v/abs.hh>
+
+#include <mln/value/hsi.hh>
+
+using namespace mln;
+using namespace value;
+
+bool usage(int argc, char ** argv)
+{
+  if (argc != 2)
+  {
+    std::cout << "usage: "
+              << argv[0] << " image1" << std::endl;
+    return false;
+  }
+  return true;
+}
+
+int main(int argc, char ** argv)
+{
+  if (not usage(argc, argv))
+    return 1;
+
+  image2d<rgb8> ima =
+    io::ppm::load<value::rgb8>(argv[1]);
+
+  io::ppm::save(ima, "out.ppm");
+}