URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena/sandbox
ChangeLog:
2009-01-23 Matthieu Garrigues <garrigues(a)lrde.epita.fr>
Fix Fix connectivity number values for c4.
* inim/ocr/simple_point.hh: Report change due to the patch 2900.
---
simple_point.hh | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
Index: trunk/milena/sandbox/inim/ocr/simple_point.hh
===================================================================
--- trunk/milena/sandbox/inim/ocr/simple_point.hh (revision 3198)
+++ trunk/milena/sandbox/inim/ocr/simple_point.hh (revision 3199)
@@ -90,25 +90,25 @@
static const unsigned char nb_connexity_c4[256] =
{
- 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 2, 2, 2, 1,
- 1, 2, 2, 2, 1, 2, 1, 1, 2, 2, 3, 2, 2, 2, 2, 1,
- 1, 2, 2, 2, 2, 3, 2, 2, 1, 1, 2, 1, 2, 2, 2, 1,
- 2, 3, 3, 3, 2, 3, 2, 2, 2, 2, 3, 2, 2, 2, 2, 1,
-
- 1, 2, 2, 2, 2, 3, 2, 2, 2, 2, 3, 2, 3, 3, 3, 2,
- 2, 3, 3, 3, 2, 3, 2, 2, 3, 3, 4, 3, 3, 3, 3, 2,
- 1, 2, 2, 2, 2, 3, 2, 2, 1, 1, 2, 1, 2, 2, 2, 1,
- 2, 3, 3, 3, 2, 3, 2, 2, 2, 2, 3, 2, 2, 2, 2, 1,
-
- 1, 2, 2, 2, 2, 3, 2, 2, 2, 2, 3, 2, 3, 3, 3, 2,
- 1, 2, 2, 2, 1, 2, 1, 1, 2, 2, 3, 2, 2, 2, 2, 1,
- 2, 3, 3, 3, 3, 4, 3, 3, 2, 2, 3, 2, 3, 3, 3, 2,
- 2, 3, 3, 3, 2, 3, 2, 2, 2, 2, 3, 2, 2, 2, 2, 1,
-
- 1, 2, 2, 2, 2, 3, 2, 2, 2, 2, 3, 2, 3, 3, 3, 2,
- 1, 2, 2, 2, 1, 2, 1, 1, 2, 2, 3, 2, 2,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