
21 Jan
2005
21 Jan
'05
3:48 a.m.
Greg Buchholz
I need to write a function in Haskell, which 1) reads a greyscale image (for instance, in JPEG, PNG or the like) and
If you can specify any image format you want, and you're not concerned with efficiency, you can't beat the simplicity of the portrable greymap (PGM) file format.
There are also variants using black and white (PBM) and color (PPM) and they also have textual value representations. Google for Andrew Cooke's pages, he has some code for reading/writing them as part of Pancito, IIRC. -kzm -- If I haven't seen further, it is by standing in the footprints of giants