
URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena ChangeLog: 2007-10-19 Matthieu Garrigues <garrigues@lrde.epita.fr> Update fllt. * sandbox/garrigues/fllt.hh: Update. --- fllt.hh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Index: trunk/milena/sandbox/garrigues/fllt.hh =================================================================== --- trunk/milena/sandbox/garrigues/fllt.hh (revision 1358) +++ trunk/milena/sandbox/garrigues/fllt.hh (revision 1359) @@ -163,6 +163,38 @@ tagged(qa) = true; } + // 4) + + // IF g < gn + if (g < gn) + { + // IF number of conected components of the border > 1 + // follow each border to find which is the exterior border + // and which are the holes. Keep one pixel of each holes. + // + // Remove from N border of holes. + // Recompute gn <- min u(x) x belongs to A + // + // g <- gn + // A <- {x belongs to N / u(x) == g} + // N <- N\{x belongs to N / u(x) == g} + // GO TO 3) + } + + // IF g == gn + if (g == gn) + { + // A <- {x belongs to N / u(x) == g} + // N <- N\{x belongs to N / u(x) == g} + // GO TO 3) + } + + // IF g > gn + if (g > gn) + { + // set the gray-level of the pixels of R to g. + // GO TO 1) + } } }
participants (1)
-
Matthieu Garrigues