Commit 119d6787 authored by Roland Levillain's avatar Roland Levillain
Browse files

Milena: Simplify tests/pw/value.cc.

	* tests/pw/value.cc: Here.
parent c75b4cfe
2014-04-02 Roland Levillain <roland@lrde.epita.fr>
Milena: Simplify tests/pw/value.cc.
* tests/pw/value.cc: Here.
2014-02-24 Roland Levillain <roland@lrde.epita.fr> 2014-02-24 Roland Levillain <roland@lrde.epita.fr>
   
Simplify the implementation of mln::fun::vv2v::algebra::vec. Simplify the implementation of mln::fun::vv2v::algebra::vec.
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE) // Copyright (C) 2007, 2008, 2009, 2014 EPITA Research and Development
// Laboratory (LRDE).
// //
// This file is part of Olena. // This file is part of Olena.
// //
...@@ -23,11 +24,12 @@ ...@@ -23,11 +24,12 @@
// exception does not however invalidate any other reasons why the // exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License. // executable file might be covered by the GNU General Public License.
/// \brief Exercise mln::pw::value.
#include <mln/core/image/image2d.hh> #include <mln/core/image/image2d.hh>
#include <mln/data/fill.hh> #include <mln/data/fill.hh>
#include <mln/pw/all.hh> #include <mln/pw/all.hh>
int main() int main()
{ {
using namespace mln; using namespace mln;
...@@ -37,13 +39,6 @@ int main() ...@@ -37,13 +39,6 @@ int main()
point2d p(1, 1); point2d p(1, 1);
ima(p) = 51; ima(p) = 51;
mln_assertion( (pw::value(ima) == pw::cst(51))(p) == true ); mln_assertion((pw::value(ima) == pw::cst(51))(p));
mln_assertion( (pw::value(ima) == 51)(p) == true ); mln_assertion((pw::value(ima) == 51)(p));
// {
// image2d<float> imaf(3,3);
// imaf(p) = 51;
// mln_assertion(((pw::value(ima) + pw::value(imaf))(p) / 20) - 5.1 < 0.00001);
// }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment