Copyright | (c) Alexey Kuleshevich 2017 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <lehins@yandex.ru> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- data VU = VU
- data VS = VS
- filter :: Array arr cs e => (Pixel cs e -> Bool) -> Image arr cs e -> Vector ((Int, Int), Pixel cs e)
- ifilter :: Array arr cs e => ((Int, Int) -> Pixel cs e -> Bool) -> Image arr cs e -> Vector ((Int, Int), Pixel cs e)
- toIx :: Int -> Int -> (Int, Int)
- fromIx :: Int -> (Int, Int) -> Int
Representation
Unboxed Vector
representation.
Show VU Source # | |
BaseArray VU cs e => MArray VU cs e Source # | |
(MArray VU cs e, BaseArray VU cs e) => Array VU cs e Source # | |
SuperClass VU cs e => BaseArray VU cs e Source # | |
type Manifest VU Source # | |
type Vector VU Source # | |
data Image VU Source # | |
data MImage s VU Source # | |
type SuperClass VU cs e Source # | |
Storable Vector
representation.
Filtering
:: Array arr cs e | |
=> (Pixel cs e -> Bool) | The predicate |
-> Image arr cs e | Source image |
-> Vector ((Int, Int), Pixel cs e) |
Filter out Pixels from an image that do not satisfy the predicate and convert a result into a flat unboxed vector with indexed Pixels.
:: Array arr cs e | |
=> ((Int, Int) -> Pixel cs e -> Bool) | The predicate |
-> Image arr cs e | Source image |
-> Vector ((Int, Int), Pixel cs e) |
Filter out Pixels from an image that do not satisfy the index aware predicate and convert a result into a flat unboxed vector with indexed Pixels.
Linear index conversion
Flat vector to 2D index conversion.