Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ImreadMode
- imdecode :: ImreadMode -> ByteString -> Mat (S [D, D]) D D
- imdecodeM :: PrimMonad m => ImreadMode -> ByteString -> m (Mut (Mat (S [D, D]) D D) (PrimState m))
- data OutputFormat
- data JpegParams = JpegParams {}
- defaultJpegParams :: JpegParams
- data PngStrategy
- data PngParams = PngParams {}
- defaultPngParams :: PngParams
- imencode :: OutputFormat -> Mat shape channels depth -> CvExcept ByteString
- imencodeM :: PrimMonad m => OutputFormat -> Mut (Mat shape channels depth) (PrimState m) -> CvExceptT m ByteString
Documentation
data ImreadMode Source #
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.
imdecodeM :: PrimMonad m => ImreadMode -> ByteString -> m (Mut (Mat (S [D, D]) D D) (PrimState m)) Source #
data OutputFormat Source #
OutputBmp | |
OutputExr | |
OutputHdr Bool | Compression (run length encoding) |
OutputJpeg JpegParams | |
OutputJpeg2000 | |
OutputPng PngParams | |
OutputPxm Bool | Binary |
OutputSunras | |
OutputTiff | |
OutputWebP Int | Quality [1..100], > 100 == lossless |
data JpegParams Source #
JpegParams | |
|
data PngStrategy Source #
imencode :: OutputFormat -> Mat shape channels depth -> CvExcept ByteString Source #