Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Manifest p = Manifest {
- manifestSize :: !Size
- manifestVector :: !(Vector p)
- data Delayed p = Delayed {
- delayedSize :: !Size
- delayedFun :: !(Point -> p)
- data DelayedMask p = DelayedMask {
- delayedMaskSize :: !Size
- delayedMaskFun :: !(Point -> Maybe p)
- delay :: Image i => i -> Delayed (ImagePixel i)
- compute :: (Image i, Storable (ImagePixel i)) => i -> Manifest (ImagePixel i)
- delayed :: Delayed p -> Delayed p
- manifest :: Manifest p -> Manifest p
Manifest images
Stores the image content in a Vector
.
Manifest | |
|
(Image src, Storable p) => FunctorImage src (Manifest p) Source # | |
Storable acc => SeparatelyFiltrable src (Manifest p) acc Source # | |
(Eq p, Storable p) => Eq (Manifest p) Source # | |
(Ord p, Storable p) => Ord (Manifest p) Source # | |
(Storable p, Show p) => Show (Manifest p) Source # | |
NFData (Manifest p) Source # | |
Storable p => FromFunction (Manifest p) Source # | |
Storable p => Image (Manifest p) Source # | |
Storable p => MaskedImage (Manifest p) Source # | |
(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Delayed p1) (Manifest p2) Source # | |
(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Manifest p1) (Delayed p2) Source # | |
(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Manifest p1) (Manifest p2) Source # | |
type SeparableFilterAccumulator src (Manifest p) acc Source # | |
type FromFunctionPixel (Manifest p) Source # | |
type ImagePixel (Manifest p) Source # | |
Delayed images
A delayed image is an image which is constructed using a function.
Usually, a delayed image maps each of its pixels over another image. Delayed images are useful by avoiding intermediate images in a transformation pipeline of images or by avoiding the computation of the whole resulting image when only a portion of its pixels will be accessed.
Delayed | |
|
(Image src, Storable p) => FunctorImage src (Delayed p) Source # | |
Storable acc => SeparatelyFiltrable src (Delayed p) acc Source # | |
FromFunction (Delayed p) Source # | |
Storable p => Image (Delayed p) Source # | |
Storable p => MaskedImage (Delayed p) Source # | |
(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Delayed p1) (Manifest p2) Source # | |
(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Delayed p1) (Delayed p2) Source # | |
(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Manifest p1) (Delayed p2) Source # | |
type SeparableFilterAccumulator src (Delayed p) acc Source # | |
type FromFunctionPixel (Delayed p) Source # | |
type ImagePixel (Delayed p) Source # | |
Delayed masked images
data DelayedMask p Source #
DelayedMask | |
|
(MaskedImage src, Storable p) => FunctorImage src (DelayedMask p) Source # | |
Storable p => FromFunction (DelayedMask p) Source # | |
Storable p => MaskedImage (DelayedMask p) Source # | |
type FromFunctionPixel (DelayedMask p) Source # | |
type ImagePixel (DelayedMask p) Source # | |
Conversion and type helpers
delay :: Image i => i -> Delayed (ImagePixel i) Source #
Delays an image in its delayed representation.
compute :: (Image i, Storable (ImagePixel i)) => i -> Manifest (ImagePixel i) Source #
Computes the value of an image into a manifest representation.