
URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena ChangeLog: 2007-10-19 Guillaume Duhamel <guillaume.duhamel@lrde.epita.fr> Update fllt. * fllt.hh: Update. --- fllt.hh | 5 +++++ 1 file changed, 5 insertions(+) Index: trunk/milena/sandbox/garrigues/fllt.hh =================================================================== --- trunk/milena/sandbox/garrigues/fllt.hh (revision 1360) +++ trunk/milena/sandbox/garrigues/fllt.hh (revision 1361) @@ -168,16 +168,21 @@ set_p<P>& N, V& gn) { + // Count the number of conected components of the border of R. image2d<int> tmp; unsigned n; labeling::level(convert::to_image(N), true, c8(), tmp, n); + if (n > 1) + { // 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}
participants (1)
-
Guillaume Duhamel