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
9abe0474
Commit
9abe0474
authored
Apr 01, 2014
by
Roland Levillain
Browse files
Milena: Improve the documentation of mln::test::positive.
* mln/test/positive.hh: Here.
parent
119d6787
Changes
2
Hide whitespace changes
Inline
Side-by-side
milena/ChangeLog
View file @
9abe0474
2014-04-02 Roland Levillain <roland@lrde.epita.fr>
Milena: Improve the documentation of mln::test::positive.
* mln/test/positive.hh: Here.
2014-04-02 Roland Levillain <roland@lrde.epita.fr>
Milena: Simplify tests/pw/value.cc.
milena/mln/test/positive.hh
View file @
9abe0474
// Copyright (C) 2007, 2008, 2009, 2011 EPITA Research and
Development
// Laboratory (LRDE)
// Copyright (C) 2007, 2008, 2009, 2011
, 2014
EPITA Research and
//
Development
Laboratory (LRDE)
.
//
// This file is part of Olena.
//
...
...
@@ -29,7 +29,8 @@
/// \file
///
/// Test if an image only contains positive values.
/// Test if an image only contains positive or null
/// (i.e. ``non-negative'') values.
# include <mln/test/predicate.hh>
# include <mln/pw/all.hh>
...
...
@@ -43,7 +44,13 @@ namespace mln
namespace
test
{
/// Test if an image only contains positive values.
/// \brief Test if an image only contains positive or null
/// (i.e. ``non-negative'') values.
///
/// This routine checks whether all the values of an image are
/// non-negative, thus considering includes 0 as a valid value
/// (which is usually not the case of the term ``positive'' in
/// English).
template
<
typename
I
>
bool
positive
(
const
Image
<
I
>&
input
);
...
...
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