Commit 674e43ac authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Invert threshold function test.

	* mln/fun/v2b/threshold.hh: Here.
parent 699326af
2011-10-14 Guillaume Lazzara <z@lrde.epita.fr>
Invert threshold function test.
* mln/fun/v2b/threshold.hh: Here.
2011-10-14 Guillaume Lazzara <z@lrde.epita.fr>
 
Add new crop routines.
// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2008, 2009, 2011 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
//
......@@ -69,7 +70,10 @@ namespace mln
bool
threshold<V>::operator()(const V& v) const
{
return v >= a;
// Here the test seems to be inversed compared to the usual
// use. Indeed, we want to preserve the following convention:
// True for foreground and False for background.
return v <= a;
}
# endif // ! MLN_INCLUDE_ONLY
......
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