accelerate-io-JuicyPixels-0.1.0.0: Convert between Accelerate arrays and JuicyPixels images

Copyright[2019..2020] The Accelerate Team
LicenseBSD3
MaintainerTrevor L. McDonell <trevor.mcdonell@gmail.com>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.IO.Codec.Picture

Description

 
Synopsis

Documentation

imageOfArray :: (Elt pixel, Vector (PixelBaseComponent pixel) ~ Vectors (EltR pixel)) => Array DIM2 pixel -> Image pixel Source #

O(1). Convert an Accelerate Array into an Image.

arrayOfImage :: (Elt pixel, Vector (PixelBaseComponent pixel) ~ Vectors (EltR pixel)) => Image pixel -> Array DIM2 pixel Source #

O(1). Convert an Image into an Accelerate Array.