CV-0.3.6.0: OpenCV based machine vision library

Safe HaskellSafe-Infered

CV.ImageOp

Synopsis

Documentation

newtype ImageOperation c d Source

ImageOperation is a name for unary operators that mutate images inplace.

Constructors

ImgOp (Image c d -> IO ()) 

(#>) :: ImageOperation c d -> ImageOperation c d -> ImageOperation c dSource

Compose two image operations

nonOp :: ImageOperation c dSource

An unit operation for compose

(<#) :: Image c d -> ImageOperation c d -> Image c dSource

Apply image operation to a Copy of an image

newtype IOP a b Source

Constructors

IOP (a -> IO b) 

Instances

(&#&) :: IOP (Image c d) e -> IOP (Image c d) f -> IOP (Image c d) (Image c d, Image c d)Source

runIOP :: IOP (Image channels depth) a -> Image channels depth -> IO aSource

(<##) :: Image c d -> [ImageOperation c d] -> Image c dSource

Apply list of image operations to a Copy of an image. (Makes a single copy and is faster than folding over (<#)

operate :: ImageOperation c d -> Image c d -> IO (Image c d)Source

times :: Int -> ImageOperation c d -> ImageOperation c dSource

Iterate an operation N times

directOp :: Image t t1 -> ImageOperation t t1 -> IO ()Source

operateWithROI :: (Integral t5, Integral t4, Integral t3, Integral t2) => (t2, t3) -> (t4, t5) -> ImageOperation t t1 -> Image t t1 -> IO (Image t t1)Source