URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2007-09-18 Guillaume Duhamel <guillaume.duhamel(a)lrde.epita.fr>
Fix a bug in mirroring.
* border_mirror.hh: Fix.
---
border_mirror.hh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: trunk/milena/sandbox/duhamel/border_mirror.hh
===================================================================
--- trunk/milena/sandbox/duhamel/border_mirror.hh (revision 1121)
+++ trunk/milena/sandbox/duhamel/border_mirror.hh (revision 1122)
@@ -111,7 +111,7 @@
// mirror left border
s = start;
for (std::size_t i = 0; i <= nbrows; ++i)
- for (std::size_t j = 0; j <= border; ++j)
+ for (std::size_t j = 1; j <= border; ++j)
const_cast<I&>(ima)[s + (i * real_nbcols) - j] = ima[s + (i * real_nbcols)
+ (j - 1)];
// mirror right border