Recently I found that PGMReader<Image>::importPGM3D throws an IO exception when reading an ASCII(P2) pgm3d file. I have written a test for this and you can find it in my repository in branch PGM_P2_BROKEN - https://github.com/copyme/DGtal/tree/PGM_P2_BROKEN
When in file in its header there is only P2 exception message says that
No P3d format in /home/kacper/Projects/DGtal/tests/samples/ascii_ball.pgm3d
But after change to P2-3D
"nbread=0
terminate called after throwing an instance of 'DGtal::IOException'
Recently I found that
PGMReader<Image>::importPGM3D
throws an IO exception when reading an ASCII(P2) pgm3d file. I have written a test for this and you can find it in my repository in branch PGM_P2_BROKEN - https://github.com/copyme/DGtal/tree/PGM_P2_BROKENWhen in file in its header there is only
P2
exception message says thatNo P3d format in /home/kacper/Projects/DGtal/tests/samples/ascii_ball.pgm3d
But after change to
P2-3D
"nbread=0
terminate called after throwing an instance of 'DGtal::IOException'
what(): DGtal IO error"