DGtal-team/DGtal — Issue #254: bug in reading/writting pgm
Author: troussil
Created: 2012-01-06 09:13:32+00:00
State: open
Labels: Image, IO-Visualisation

In the following code, the output image is not equal to the input image (as expected), but is a version of the input image turned upside down.

typedef ImageContainerBySTLVector\ GrayImage;
GrayImage img = PNMReader\::importPGMImage( "lenna.pgm" );

typedef GradientColorMap\ ColorMap;
PNMWriter\::exportPGM( "lenna2.pgm", img, 0, 255, true );