URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2008-01-21 Matthieu Garrigues <garrigues(a)lrde.epita.fr>
* mln/morpho/dilation.hh: Make dilation works on binary images.
---
dilation.hh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: trunk/milena/mln/morpho/dilation.hh
===================================================================
--- trunk/milena/mln/morpho/dilation.hh (revision 1676)
+++ trunk/milena/mln/morpho/dilation.hh (revision 1677)
@@ -99,9 +99,9 @@
mln_piter(I) p(input.domain());
mln_qiter(W) q(win, p);
for_all(p)
- if (input(p))
+ if (!input(p))
for_all(q) if (input.has(q))
- if (! input(q))
+ if (input(q))
{
output(p) = true;
break;