Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
olena
Commits
119d6787
Commit
119d6787
authored
Apr 01, 2014
by
Roland Levillain
Browse files
Milena: Simplify tests/pw/value.cc.
* tests/pw/value.cc: Here.
parent
c75b4cfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
milena/ChangeLog
View file @
119d6787
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>
Simplify the implementation of mln::fun::vv2v::algebra::vec.
milena/tests/pw/value.cc
View file @
119d6787
// 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.
//
...
...
@@ -23,11 +24,12 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
/// \brief Exercise mln::pw::value.
#include
<mln/core/image/image2d.hh>
#include
<mln/data/fill.hh>
#include
<mln/pw/all.hh>
int
main
()
{
using
namespace
mln
;
...
...
@@ -37,13 +39,6 @@ int main()
point2d
p
(
1
,
1
);
ima
(
p
)
=
51
;
mln_assertion
(
(
pw
::
value
(
ima
)
==
pw
::
cst
(
51
))(
p
)
==
true
);
mln_assertion
(
(
pw
::
value
(
ima
)
==
51
)(
p
)
==
true
);
// {
// image2d<float> imaf(3,3);
// imaf(p) = 51;
// mln_assertion(((pw::value(ima) + pw::value(imaf))(p) / 20) - 5.1 < 0.00001);
// }
mln_assertion
((
pw
::
value
(
ima
)
==
pw
::
cst
(
51
))(
p
));
mln_assertion
((
pw
::
value
(
ima
)
==
51
)(
p
));
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment