yarr-image-io-1.3.2.1: Image IO for Yarr library
Data.Yarr.IO.Image
Contents
Synopsis
data Image Source
Constructors
Instances
data Word8 :: *
8-bit unsigned integer type
readImage :: FilePath -> IO Image Source
Reads Image from file.
Image
writeImage :: FilePath -> Image -> IO () Source
Writes Image to file.
readRGB Source
Arguments
Passed red, green, blue component in 0-255 range
0-255
Image to import
Fuction to uniformly import images of any type.
Example:
anyImage <- readImage "lena.png" let image = readRGB (\r g b -> ...) anyImage
readImage
readRGBVectors :: (Vector v Word8, Dim v ~ N3) => Image -> UArray D L Dim2 (v Word8) Source
readRGBVectors = readRGB construct
readRGB
construct