From: Andrew R. <and...@us...> - 2006-12-04 15:06:11
|
Update of /cvsroot/plplot/plplot/examples/c++ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17415/examples/c++ Modified Files: x20.cc Log Message: Fix error reading in lena.pgm in the C, C++ and octave versions of example 20. Differences still remain with the java version. This appears to be due to rounding errors, but investigations continue. Index: x20.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x20.cc,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- x20.cc 4 Dec 2006 12:48:23 -0000 1.17 +++ x20.cc 4 Dec 2006 15:06:06 -0000 1.18 @@ -296,6 +296,7 @@ ifs.putback(c); ifs >> w >> h >> *num_col; + ifs.getline(ver,80); //cout << "width=" << w << " height=" << h << " num_col=" << *num_col << endl; img = new unsigned char[w*h]; |