[Haskell-cafe] Reading images (PGM)

Ketil Malde ketil+haskell at ii.uib.no
Fri Jan 21 03:48:24 EST 2005


Greg Buchholz <haskell at sleepingsquirrel.org> writes:

>> 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



More information about the Haskell-Cafe mailing list