Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
pixelFoldMap :: forall m px . (Pixel px, Monoid m) => (px -> m) -> Image px -> mJuicyPixels Codec.Picture.Types Fold over the pixel of an image with a raster scan order: from top to bottom, left to right. This functions is analog to the foldMap from the Foldable typeclass, but due to the Pixel constraint, Image cannot be made an instance of it.
pixelMap :: (Pixel a, Pixel b) => (a -> b) -> Image a -> Image bJuicyPixels Codec.Picture.Types map equivalent for an image, working at the pixel level. Little example : a brightness function for an rgb image
brightnessRGB8 :: Int -> Image PixelRGB8 -> Image PixelRGB8 brightnessRGB8 add = pixelMap brightFunction where up v = fromIntegral (fromIntegral v + add) brightFunction (PixelRGB8 r g b) = PixelRGB8 (up r) (up g) (up b)
pixelMapXY :: (Pixel a, Pixel b) => (Int -> Int -> a -> b) -> Image a -> Image bJuicyPixels Codec.Picture.Types Just like pixelMap only the function takes the pixel coordinates as additional parameters.
toneMapping :: PixelF -> Image PixelRGBF -> Image PixelRGBFJuicyPixels Codec.Picture.Types Perform a tone mapping operation on an High dynamic range image.
parMap :: Strategy b -> (a -> b) -> [a] -> [b]parallel Control.Parallel.Strategies A combination of parList and map, encapsulating a common pattern:
parMap strat f = withStrategy (parList strat) . map f
seqMap :: Strategy k -> Strategy v -> Strategy (Map k v)parallel Control.Seq Evaluate the keys and values of a map according to the given strategies.
contramapRep :: Representable f => (a -> b) -> f b -> f aadjunctions Data.Functor.Contravariant.Rep No documentation available.
contramapWithRep :: Representable f => (b -> Either a (Rep f)) -> f a -> f badjunctions Data.Functor.Contravariant.Rep contramapWithRep f p ≡ tabulate $ either (index p) id . f
fmapRep :: Representable f => (a -> b) -> f a -> f badjunctions Data.Functor.Rep No documentation available.
ifoldMapRep :: (Representable r, Foldable r, Monoid m) => (Rep r -> a -> m) -> r a -> madjunctions Data.Functor.Rep No documentation available.