Tuesday, May 3, 2011

Haskell image processing library?

Anyone have a recommendation for a good image processing package for Haskell? Why do you like it?

From stackoverflow
  • I find a lot to like in the netpbm format and tools: simplicity, simplicity, and simplicity. There's some discussion of netpbm in the Real World Haskell book, and they have some source code. Since I don't have the book, I don't know if they give a full library.

    Hai : Real World Haskell is avaliable online: http://book.realworldhaskell.org/read/
  • There are at least two decoders in Hackage: stb-image (Partial implementation of JPEG, PNG, TGA, BMP, PSD decoders, with a really simple API) and pngload (pure Haskell loader for PNG images).

    Otherwise, you could use Haskell bindings for an existing library, for instance hsmagick or gd.

    There is also Codec-Image-DevIL which are Haskell bindings to DevIL library. It allows to load an image into Haskell array or to write an array as an image. Nothing else, but for reading/writing it supports tons of image formats.

0 comments:

Post a Comment