Skip to Main Content
Haskell Data Analysis cookbook
book

Haskell Data Analysis cookbook

by Nishant Shukla
June 2014
Beginner to intermediate content levelBeginner to intermediate
334 pages
6h 8m
English
Packt Publishing
Content preview from Haskell Data Analysis cookbook

Manipulating images in parallel using Repa

Repa is a powerful library for manipulating high-dimensional arrays in parallel. We will use it to read and edit the pixels of an image.

Getting ready

Install Developer's Image Library (DevIL), a cross-platform image manipulation toolkit. It can be downloaded from http://openil.sourceforge.net/download.php or through apt-get on Debian systems as follows:

$ sudo apt-get install libdevil-dev

Install the Repa package from cabal for the DevIL toolkit as follows:

$ cabal install repa-devil

Create two images named image1.png and image2.png that have the same dimensions, which are shown as follows:

Getting ready

Here comes the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Haskell Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library

Haskell Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library

Stefania Loredana Nita, Marius Mihailescu

Publisher Resources

ISBN: 9781783286331Supplemental Content