Commit 8ac04a5a authored by Roland Levillain's avatar Roland Levillain
Browse files

mln/morpho/watershed/flooding.hh: Uniformity-related changes.

parent 253f29eb
2012-02-08 Roland Levillain <roland@lrde.epita.fr>
* mln/morpho/watershed/flooding.hh: Uniformity-related changes.
2012-02-08 Roland Levillain <roland@lrde.epita.fr>
 
* mln/data/stretch.hh: Do not name unused arguments.
......@@ -132,9 +132,10 @@ namespace mln
typedef mln_value(I) V;
const V max = mln_max(V);
// Initialize the output with the markers (minima components).
mln_ch_value(I, marker) output =
labeling::regional_minima (input, nbh, n_basins);
// Initialize the output with the markers (minima
// components).
typedef mln_ch_value(I, L) O;
O output = labeling::regional_minima(input, nbh, n_basins);
typedef mln_psite(I) psite;
......@@ -287,7 +288,7 @@ namespace mln
for (unsigned i = 0; i < n_nbhs; ++i)
{
unsigned n = p + dp[i];
// In the border, output is unmarked so N is ignored.
// In the border, OUTPUT is unmarked so N is ignored.
if (output.element(n) != unmarked)
{
if (adjacent_marker == unmarked)
......@@ -314,7 +315,7 @@ namespace mln
{
unsigned n = p + dp[i];
if (output.element(n) == unmarked
// In the border, in_queue is true so N is ignored.
// In the border, IN_QUEUE is true so N is ignored.
&& ! in_queue.element(n))
{
queue.push(max - input.element(n), n);
......
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