Stability | experimental |
---|---|
Maintainer | conal@conal.net |
Images (infinite & continuous)
- type Point = ComplexE R
- pointToR2 :: Point -> R2E
- r2ToPoint :: R2E -> Point
- type FilterG p a = Unop (p -> a)
- type Filter a = FilterG Point a
- samplerIm :: Sampler2 :=> Image Color
- scale2 :: (Floating s, ITrans (Complex s) a) => Complex s -> Unop a
- uscale2 :: (Floating s, ITrans (Complex s) a) => s -> Unop a
- translate2 :: (Floating s, ITrans (Complex s) a) => Complex s -> Unop a
- rotate2 :: (Floating s, ITrans (Complex s) a) => s -> Unop a
- bilerp :: VectorSpace w => w -> w -> w -> w -> (Scalar w, Scalar w) -> w
- bilerpC :: (VectorSpace w, Scalar w ~ s) => w -> w -> w -> w -> ImageG s w
- type ImageG s a = Complex s -> a
- type Image a = ImageG FloatE a
- type PRegion p = p -> BoolE
- type Region = Image BoolE
- universeR :: Applicative f => f BoolE
- emptyR :: Applicative f => f BoolE
- eqF :: (IsNat n, IsScalar a, Eq a, Applicative f) => f (VecE n a) -> f (VecE n a) -> f BoolE
- neqF :: (IsNat n, IsScalar a, Eq a, Applicative f) => f (VecE n a) -> f (VecE n a) -> f BoolE
- intersectR :: Applicative f => Binop (f BoolE)
- unionR :: Applicative f => Binop (f BoolE)
- xorR :: Applicative f => Binop (f BoolE)
- diffR :: Applicative f => Binop (f BoolE)
- complementR :: Applicative f => Unop (f BoolE)
- udisk :: (InnerSpace p, Scalar p ~ FloatE) => PRegion p
- disk :: (InnerSpace p, Scalar p ~ FloatE) => FloatE -> PRegion p
- annulus :: (InnerSpace p, Scalar p ~ FloatE) => FloatE -> FloatE -> PRegion p
- checker :: Region
- crop :: (Applicative f, Monoid (f a), IfB bool a) => f bool -> f a -> f a
- transformG :: (c -> ITransform p) -> (p -> c) -> Unop (p -> a)
- translate2Im :: AdditiveGroup p => Unop p -> Unop (p -> a)
- scale2Im :: Fractional s => Unop (Complex s) -> Unop (ImageG s a)
- uscale2Im :: Fractional s => ImageG s s -> Unop (ImageG s a)
- rotate2Im :: Floating s => ImageG s s -> Unop (ImageG s a)
- swirl :: Floating s => s -> Unop (ImageG s a)
- utile :: (Frac p, ITrans (Complex s) p, ITrans (Complex s) a, Floating s) => Unop (p -> a)
- tile :: (Floating s, Frac s, ITrans (Complex s) a) => Complex s -> Unop (ImageG s a)
Documentation
bilerp :: VectorSpace w => w -> w -> w -> w -> (Scalar w, Scalar w) -> wSource
Bilinear interpolation
bilerpC :: (VectorSpace w, Scalar w ~ s) => w -> w -> w -> w -> ImageG s wSource
Bilinear interpolation image
General regions
universeR :: Applicative f => f BoolESource
emptyR :: Applicative f => f BoolESource
intersectR :: Applicative f => Binop (f BoolE)Source
unionR :: Applicative f => Binop (f BoolE)Source
xorR :: Applicative f => Binop (f BoolE)Source
diffR :: Applicative f => Binop (f BoolE)Source
complementR :: Applicative f => Unop (f BoolE)Source
disk :: (InnerSpace p, Scalar p ~ FloatE) => FloatE -> PRegion pSource
Generalized disk/ball, given radius
annulus :: (InnerSpace p, Scalar p ~ FloatE) => FloatE -> FloatE -> PRegion pSource
Generalized annulus, given outer & inner radii
crop :: (Applicative f, Monoid (f a), IfB bool a) => f bool -> f a -> f a
Crop a function, filling in mempty
where the test yeis false.
Space-varying transformations
transformG :: (c -> ITransform p) -> (p -> c) -> Unop (p -> a)Source
General domain-varying transformation.
translate2Im :: AdditiveGroup p => Unop p -> Unop (p -> a)Source
Space-varying translate2