hip-1.5.6.0: Haskell Image Processing (HIP) Library.

Copyright(c) Alexey Kuleshevich 2016
LicenseBSD3
MaintainerAlexey Kuleshevich <lehins@yandex.ru>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Graphics.Image.Interface.Repa

Contents

Description

 
Synopsis

Conversion

fromRepaArrayS :: Source r (Pixel cs e) => Array r DIM2 (Pixel cs e) -> Image RSU cs e Source #

Create a sequential unboxed image from a 2D Repa delayed array.

fromRepaArrayP :: Source r (Pixel cs e) => Array r DIM2 (Pixel cs e) -> Image RPU cs e Source #

Create a parallel unboxed image from a 2D Repa delayed array.

toRepaArray :: Array arr cs e => Image arr cs e -> Array U DIM2 (Pixel cs e) Source #

Convert into Repa Unboxed array from an image.

Representation

data RSU Source #

Repa Array representation backed by Unboxed Vector, which is computed sequentially.

Constructors

RSU 
Instances
Show RSU Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

Methods

showsPrec :: Int -> RSU -> ShowS #

show :: RSU -> String #

showList :: [RSU] -> ShowS #

BaseArray RSU cs e => Array RSU cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

Associated Types

type Manifest RSU :: Type Source #

type Vector RSU :: Type -> Type Source #

Methods

makeImage :: (Int, Int) -> ((Int, Int) -> Pixel cs e) -> Image RSU cs e Source #

makeImageWindowed :: (Int, Int) -> (Int, Int) -> (Int, Int) -> ((Int, Int) -> Pixel cs e) -> ((Int, Int) -> Pixel cs e) -> Image RSU cs e Source #

scalar :: Pixel cs e -> Image RSU cs e Source #

index00 :: Image RSU cs e -> Pixel cs e Source #

map :: Array RSU cs' e' => (Pixel cs' e' -> Pixel cs e) -> Image RSU cs' e' -> Image RSU cs e Source #

imap :: Array RSU cs' e' => ((Int, Int) -> Pixel cs' e' -> Pixel cs e) -> Image RSU cs' e' -> Image RSU cs e Source #

zipWith :: (Array RSU cs1 e1, Array RSU cs2 e2) => (Pixel cs1 e1 -> Pixel cs2 e2 -> Pixel cs e) -> Image RSU cs1 e1 -> Image RSU cs2 e2 -> Image RSU cs e Source #

izipWith :: (Array RSU cs1 e1, Array RSU cs2 e2) => ((Int, Int) -> Pixel cs1 e1 -> Pixel cs2 e2 -> Pixel cs e) -> Image RSU cs1 e1 -> Image RSU cs2 e2 -> Image RSU cs e Source #

traverse :: Array RSU cs' e' => Image RSU cs' e' -> ((Int, Int) -> (Int, Int)) -> (((Int, Int) -> Pixel cs' e') -> (Int, Int) -> Pixel cs e) -> Image RSU cs e Source #

traverse2 :: (Array RSU cs1 e1, Array RSU cs2 e2) => Image RSU cs1 e1 -> Image RSU cs2 e2 -> ((Int, Int) -> (Int, Int) -> (Int, Int)) -> (((Int, Int) -> Pixel cs1 e1) -> ((Int, Int) -> Pixel cs2 e2) -> (Int, Int) -> Pixel cs e) -> Image RSU cs e Source #

transpose :: Image RSU cs e -> Image RSU cs e Source #

backpermute :: (Int, Int) -> ((Int, Int) -> (Int, Int)) -> Image RSU cs e -> Image RSU cs e Source #

fromLists :: [[Pixel cs e]] -> Image RSU cs e Source #

(|*|) :: Image RSU cs e -> Image RSU cs e -> Image RSU cs e Source #

fold :: (Pixel cs e -> Pixel cs e -> Pixel cs e) -> Pixel cs e -> Image RSU cs e -> Pixel cs e Source #

foldIx :: (Pixel cs e -> (Int, Int) -> Pixel cs e -> Pixel cs e) -> Pixel cs e -> Image RSU cs e -> Pixel cs e Source #

eq :: Image RSU cs e -> Image RSU cs e -> Bool Source #

compute :: Image RSU cs e -> Image RSU cs e Source #

toManifest :: Image RSU cs e -> Image (Manifest RSU) cs e Source #

toVector :: Image RSU cs e -> Vector RSU (Pixel cs e) Source #

fromVector :: (Int, Int) -> Vector RSU (Pixel cs e) -> Image RSU cs e Source #

SuperClass RSU cs e => BaseArray RSU cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

Associated Types

type SuperClass RSU cs e :: Constraint Source #

data Image RSU cs e :: Type Source #

Methods

dims :: Image RSU cs e -> (Int, Int) Source #

type Manifest RSU Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

type Manifest RSU = VU
type Vector RSU Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

newtype Image RSU cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

newtype Image RSU cs e = SUImage (RImage U (Pixel cs e))
type SuperClass RSU cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

type SuperClass RSU cs e = (ColorSpace cs e, Elt e, Elt (Pixel cs e))

data RPU Source #

Repa Array representation backed by Unboxed Vector, which is computed in parallel.

Constructors

RPU 
Instances
Show RPU Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

Methods

showsPrec :: Int -> RPU -> ShowS #

show :: RPU -> String #

showList :: [RPU] -> ShowS #

BaseArray RPU cs e => Array RPU cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

Associated Types

type Manifest RPU :: Type Source #

type Vector RPU :: Type -> Type Source #

Methods

makeImage :: (Int, Int) -> ((Int, Int) -> Pixel cs e) -> Image RPU cs e Source #

makeImageWindowed :: (Int, Int) -> (Int, Int) -> (Int, Int) -> ((Int, Int) -> Pixel cs e) -> ((Int, Int) -> Pixel cs e) -> Image RPU cs e Source #

scalar :: Pixel cs e -> Image RPU cs e Source #

index00 :: Image RPU cs e -> Pixel cs e Source #

map :: Array RPU cs' e' => (Pixel cs' e' -> Pixel cs e) -> Image RPU cs' e' -> Image RPU cs e Source #

imap :: Array RPU cs' e' => ((Int, Int) -> Pixel cs' e' -> Pixel cs e) -> Image RPU cs' e' -> Image RPU cs e Source #

zipWith :: (Array RPU cs1 e1, Array RPU cs2 e2) => (Pixel cs1 e1 -> Pixel cs2 e2 -> Pixel cs e) -> Image RPU cs1 e1 -> Image RPU cs2 e2 -> Image RPU cs e Source #

izipWith :: (Array RPU cs1 e1, Array RPU cs2 e2) => ((Int, Int) -> Pixel cs1 e1 -> Pixel cs2 e2 -> Pixel cs e) -> Image RPU cs1 e1 -> Image RPU cs2 e2 -> Image RPU cs e Source #

traverse :: Array RPU cs' e' => Image RPU cs' e' -> ((Int, Int) -> (Int, Int)) -> (((Int, Int) -> Pixel cs' e') -> (Int, Int) -> Pixel cs e) -> Image RPU cs e Source #

traverse2 :: (Array RPU cs1 e1, Array RPU cs2 e2) => Image RPU cs1 e1 -> Image RPU cs2 e2 -> ((Int, Int) -> (Int, Int) -> (Int, Int)) -> (((Int, Int) -> Pixel cs1 e1) -> ((Int, Int) -> Pixel cs2 e2) -> (Int, Int) -> Pixel cs e) -> Image RPU cs e Source #

transpose :: Image RPU cs e -> Image RPU cs e Source #

backpermute :: (Int, Int) -> ((Int, Int) -> (Int, Int)) -> Image RPU cs e -> Image RPU cs e Source #

fromLists :: [[Pixel cs e]] -> Image RPU cs e Source #

(|*|) :: Image RPU cs e -> Image RPU cs e -> Image RPU cs e Source #

fold :: (Pixel cs e -> Pixel cs e -> Pixel cs e) -> Pixel cs e -> Image RPU cs e -> Pixel cs e Source #

foldIx :: (Pixel cs e -> (Int, Int) -> Pixel cs e -> Pixel cs e) -> Pixel cs e -> Image RPU cs e -> Pixel cs e Source #

eq :: Image RPU cs e -> Image RPU cs e -> Bool Source #

compute :: Image RPU cs e -> Image RPU cs e Source #

toManifest :: Image RPU cs e -> Image (Manifest RPU) cs e Source #

toVector :: Image RPU cs e -> Vector RPU (Pixel cs e) Source #

fromVector :: (Int, Int) -> Vector RPU (Pixel cs e) -> Image RPU cs e Source #

SuperClass RPU cs e => BaseArray RPU cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

Associated Types

type SuperClass RPU cs e :: Constraint Source #

data Image RPU cs e :: Type Source #

Methods

dims :: Image RPU cs e -> (Int, Int) Source #

type Manifest RPU Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

type Manifest RPU = VU
type Vector RPU Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

newtype Image RPU cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

newtype Image RPU cs e = PUImage (RImage U (Pixel cs e))
type SuperClass RPU cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Unboxed

type SuperClass RPU cs e = (ColorSpace cs e, Elt e, Elt (Pixel cs e))

data RSS Source #

Repa Array representation backed by Storable Vector, which is computed sequentially.

Constructors

RSS 
Instances
Show RSS Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

Methods

showsPrec :: Int -> RSS -> ShowS #

show :: RSS -> String #

showList :: [RSS] -> ShowS #

BaseArray RSS cs e => Array RSS cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

Associated Types

type Manifest RSS :: Type Source #

type Vector RSS :: Type -> Type Source #

Methods

makeImage :: (Int, Int) -> ((Int, Int) -> Pixel cs e) -> Image RSS cs e Source #

makeImageWindowed :: (Int, Int) -> (Int, Int) -> (Int, Int) -> ((Int, Int) -> Pixel cs e) -> ((Int, Int) -> Pixel cs e) -> Image RSS cs e Source #

scalar :: Pixel cs e -> Image RSS cs e Source #

index00 :: Image RSS cs e -> Pixel cs e Source #

map :: Array RSS cs' e' => (Pixel cs' e' -> Pixel cs e) -> Image RSS cs' e' -> Image RSS cs e Source #

imap :: Array RSS cs' e' => ((Int, Int) -> Pixel cs' e' -> Pixel cs e) -> Image RSS cs' e' -> Image RSS cs e Source #

zipWith :: (Array RSS cs1 e1, Array RSS cs2 e2) => (Pixel cs1 e1 -> Pixel cs2 e2 -> Pixel cs e) -> Image RSS cs1 e1 -> Image RSS cs2 e2 -> Image RSS cs e Source #

izipWith :: (Array RSS cs1 e1, Array RSS cs2 e2) => ((Int, Int) -> Pixel cs1 e1 -> Pixel cs2 e2 -> Pixel cs e) -> Image RSS cs1 e1 -> Image RSS cs2 e2 -> Image RSS cs e Source #

traverse :: Array RSS cs' e' => Image RSS cs' e' -> ((Int, Int) -> (Int, Int)) -> (((Int, Int) -> Pixel cs' e') -> (Int, Int) -> Pixel cs e) -> Image RSS cs e Source #

traverse2 :: (Array RSS cs1 e1, Array RSS cs2 e2) => Image RSS cs1 e1 -> Image RSS cs2 e2 -> ((Int, Int) -> (Int, Int) -> (Int, Int)) -> (((Int, Int) -> Pixel cs1 e1) -> ((Int, Int) -> Pixel cs2 e2) -> (Int, Int) -> Pixel cs e) -> Image RSS cs e Source #

transpose :: Image RSS cs e -> Image RSS cs e Source #

backpermute :: (Int, Int) -> ((Int, Int) -> (Int, Int)) -> Image RSS cs e -> Image RSS cs e Source #

fromLists :: [[Pixel cs e]] -> Image RSS cs e Source #

(|*|) :: Image RSS cs e -> Image RSS cs e -> Image RSS cs e Source #

fold :: (Pixel cs e -> Pixel cs e -> Pixel cs e) -> Pixel cs e -> Image RSS cs e -> Pixel cs e Source #

foldIx :: (Pixel cs e -> (Int, Int) -> Pixel cs e -> Pixel cs e) -> Pixel cs e -> Image RSS cs e -> Pixel cs e Source #

eq :: Image RSS cs e -> Image RSS cs e -> Bool Source #

compute :: Image RSS cs e -> Image RSS cs e Source #

toManifest :: Image RSS cs e -> Image (Manifest RSS) cs e Source #

toVector :: Image RSS cs e -> Vector RSS (Pixel cs e) Source #

fromVector :: (Int, Int) -> Vector RSS (Pixel cs e) -> Image RSS cs e Source #

SuperClass RSS cs e => BaseArray RSS cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

Associated Types

type SuperClass RSS cs e :: Constraint Source #

data Image RSS cs e :: Type Source #

Methods

dims :: Image RSS cs e -> (Int, Int) Source #

type Manifest RSS Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

type Manifest RSS = VS
type Vector RSS Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

newtype Image RSS cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

newtype Image RSS cs e = SSImage (RImage F (Pixel cs e))
type SuperClass RSS cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

type SuperClass RSS cs e = (ColorSpace cs e, Unbox (Pixel cs e), Storable e, Storable (Pixel cs e), Elt e, Elt (Pixel cs e))

data RPS Source #

Repa Array representation backed by Storable Vector, which is computed in parallel.

Constructors

RPS 
Instances
Show RPS Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

Methods

showsPrec :: Int -> RPS -> ShowS #

show :: RPS -> String #

showList :: [RPS] -> ShowS #

BaseArray RPS cs e => Array RPS cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

Associated Types

type Manifest RPS :: Type Source #

type Vector RPS :: Type -> Type Source #

Methods

makeImage :: (Int, Int) -> ((Int, Int) -> Pixel cs e) -> Image RPS cs e Source #

makeImageWindowed :: (Int, Int) -> (Int, Int) -> (Int, Int) -> ((Int, Int) -> Pixel cs e) -> ((Int, Int) -> Pixel cs e) -> Image RPS cs e Source #

scalar :: Pixel cs e -> Image RPS cs e Source #

index00 :: Image RPS cs e -> Pixel cs e Source #

map :: Array RPS cs' e' => (Pixel cs' e' -> Pixel cs e) -> Image RPS cs' e' -> Image RPS cs e Source #

imap :: Array RPS cs' e' => ((Int, Int) -> Pixel cs' e' -> Pixel cs e) -> Image RPS cs' e' -> Image RPS cs e Source #

zipWith :: (Array RPS cs1 e1, Array RPS cs2 e2) => (Pixel cs1 e1 -> Pixel cs2 e2 -> Pixel cs e) -> Image RPS cs1 e1 -> Image RPS cs2 e2 -> Image RPS cs e Source #

izipWith :: (Array RPS cs1 e1, Array RPS cs2 e2) => ((Int, Int) -> Pixel cs1 e1 -> Pixel cs2 e2 -> Pixel cs e) -> Image RPS cs1 e1 -> Image RPS cs2 e2 -> Image RPS cs e Source #

traverse :: Array RPS cs' e' => Image RPS cs' e' -> ((Int, Int) -> (Int, Int)) -> (((Int, Int) -> Pixel cs' e') -> (Int, Int) -> Pixel cs e) -> Image RPS cs e Source #

traverse2 :: (Array RPS cs1 e1, Array RPS cs2 e2) => Image RPS cs1 e1 -> Image RPS cs2 e2 -> ((Int, Int) -> (Int, Int) -> (Int, Int)) -> (((Int, Int) -> Pixel cs1 e1) -> ((Int, Int) -> Pixel cs2 e2) -> (Int, Int) -> Pixel cs e) -> Image RPS cs e Source #

transpose :: Image RPS cs e -> Image RPS cs e Source #

backpermute :: (Int, Int) -> ((Int, Int) -> (Int, Int)) -> Image RPS cs e -> Image RPS cs e Source #

fromLists :: [[Pixel cs e]] -> Image RPS cs e Source #

(|*|) :: Image RPS cs e -> Image RPS cs e -> Image RPS cs e Source #

fold :: (Pixel cs e -> Pixel cs e -> Pixel cs e) -> Pixel cs e -> Image RPS cs e -> Pixel cs e Source #

foldIx :: (Pixel cs e -> (Int, Int) -> Pixel cs e -> Pixel cs e) -> Pixel cs e -> Image RPS cs e -> Pixel cs e Source #

eq :: Image RPS cs e -> Image RPS cs e -> Bool Source #

compute :: Image RPS cs e -> Image RPS cs e Source #

toManifest :: Image RPS cs e -> Image (Manifest RPS) cs e Source #

toVector :: Image RPS cs e -> Vector RPS (Pixel cs e) Source #

fromVector :: (Int, Int) -> Vector RPS (Pixel cs e) -> Image RPS cs e Source #

SuperClass RPS cs e => BaseArray RPS cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

Associated Types

type SuperClass RPS cs e :: Constraint Source #

data Image RPS cs e :: Type Source #

Methods

dims :: Image RPS cs e -> (Int, Int) Source #

type Manifest RPS Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

type Manifest RPS = VS
type Vector RPS Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

newtype Image RPS cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

newtype Image RPS cs e = PSImage (RImage F (Pixel cs e))
type SuperClass RPS cs e Source # 
Instance details

Defined in Graphics.Image.Interface.Repa.Storable

type SuperClass RPS cs e = (ColorSpace cs e, Storable e, Storable (Pixel cs e), Unbox (Pixel cs e), Elt e, Elt (Pixel cs e))