opencv-0.0.2.1: Haskell binding to OpenCV-3.x

Safe HaskellNone
LanguageHaskell2010

OpenCV.ImgCodecs

Synopsis

Documentation

imdecode :: ImreadMode -> ByteString -> Mat (S [D, D]) D D Source #

Reads an image from a buffer in memory.

The function reads an image from the specified buffer in the memory. If the buffer is too short or contains invalid data, the empty matrix/image is returned.

OpenCV Sphinx doc

imencode :: OutputFormat -> Mat shape channels depth -> CvExcept ByteString Source #

Encodes an image into a memory buffer.

WARNING: This function is not thread safe!

OpenCV Sphinx doc

imencodeM :: PrimMonad m => OutputFormat -> Mut (Mat shape channels depth) (PrimState m) -> CvExceptT m ByteString Source #

Encodes an image into a memory buffer.

See imencode