https://svn.lrde.epita.fr/svn/oln/trunk/milena/sandbox
Index: ChangeLog
from Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Forget it.
* icdar/2009/hsc/ws_to_wsl.hh: Prefer testing n() v. 0.
ws_to_wsl.hh | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
Index: icdar/2009/hsc/ws_to_wsl.hh
--- icdar/2009/hsc/ws_to_wsl.hh (revision 3649)
+++ icdar/2009/hsc/ws_to_wsl.hh (working copy)
@@ -306,15 +306,16 @@
& m1 = m[i1],
& m2 = m[i2];
-// if (m1.n() != 0 && m2.n() != 0)
+ if (m1.n() != 0 && m2.n() != 0)
+ d(e) = dist(m1, m2);
+ else
+ d(e) = 666.f;
+
+// if (m1.n() > 1000 && m2.n() > 1000) // FIXME: was 1000
// d(e) = dist(m1, m2);
// else
// d(e) = 666.f;
- if (m1.n() > 10 && m2.n() > 10) // FIXME: was 1000
- d(e) = dist(m1, m2);
- else
- d(e) = 666.f;
}
}