Safe Haskell | None |
---|
CV.ImageOp
- newtype ImageOperation c d = ImgOp (Image c d -> IO ())
- (#>) :: ImageOperation c d -> ImageOperation c d -> ImageOperation c d
- nonOp :: ImageOperation c d
- (<#) :: Image c d -> ImageOperation c d -> Image c d
- blitOp :: Image GrayScale D32 -> (Int, Int) -> ImageOperation GrayScale D32
- setPixelOp :: SetPixel (Image c d) => (Int, Int) -> SP (Image c d) -> ImageOperation c d
- fromImageOp :: ImageOperation t t1 -> IOP (Image t t1) (Image t t1)
- newtype IOP a b = IOP (a -> IO b)
- (&#&) :: IOP (Image c d) e -> IOP (Image c d) f -> IOP (Image c d) (Image c d, Image c d)
- unsafeOperate :: ImageOperation c d -> Image c d -> Image c d
- runIOP :: IOP (Image channels depth) a -> Image channels depth -> IO a
- (<##) :: Image c d -> [ImageOperation c d] -> Image c d
- operate :: ImageOperation c d -> Image c d -> IO (Image c d)
- operateOn :: Image c d -> ImageOperation c d -> IO (Image c d)
- times :: Int -> ImageOperation c d -> ImageOperation c d
- directOp :: Image t t1 -> ImageOperation t t1 -> IO ()
- operateInPlace :: ImageOperation t t1 -> Image t t1 -> IO ()
- unsafeOperateOn :: Image c d -> ImageOperation c d -> Image c d
- operateWithROI :: (Integral t2, Integral t3, Integral t4, Integral t5) => (t2, t3) -> (t4, t5) -> ImageOperation t t1 -> Image t t1 -> IO (Image t t1)
Documentation
newtype ImageOperation c d Source
ImageOperation is a name for unary operators that mutate images inplace.
(#>) :: 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
setPixelOp :: SetPixel (Image c d) => (Int, Int) -> SP (Image c d) -> ImageOperation c dSource
fromImageOp :: ImageOperation t t1 -> IOP (Image t t1) (Image t t1)Source
unsafeOperate :: ImageOperation c d -> Image c d -> Image c dSource
(<##) :: 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 (<#)
times :: Int -> ImageOperation c d -> ImageOperation c dSource
Iterate an operation N times
directOp :: Image t t1 -> ImageOperation t t1 -> IO ()Source
operateInPlace :: ImageOperation t t1 -> Image t t1 -> IO ()Source
unsafeOperateOn :: Image c d -> ImageOperation c d -> Image c dSource
operateWithROI :: (Integral t2, Integral t3, Integral t4, Integral t5) => (t2, t3) -> (t4, t5) -> ImageOperation t t1 -> Image t t1 -> IO (Image t t1)Source