Doh!
ChangeLog | 8 ++++++++
oln/io/read_image_pnm_2d.hh | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
Index: olena/ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Fix PBM (binary) image reading.
* oln/io/read_image_pnm_2d.hh:
(read_pnm_bin::impl_read_point): Swap read value, as specified in
the PBM specification (1 for black, 0 for white).
Index: olena/oln/io/read_image_pnm_2d.hh
--- olena/oln/io/read_image_pnm_2d.hh (révision 237)
+++ olena/oln/io/read_image_pnm_2d.hh (copie de travail)
@@ -134,9 +134,9 @@
offset = 7;
}
if ((int)(v & (1<<offset--)) == 0)
- this->output[this->p] = 0;
- else
this->output[this->p] = 1;
+ else
+ this->output[this->p] = 0;
}
void impl_preconditions()
Show replies by date