2020-01-04 13:10:36 +00:00
|
|
|
#ifndef _OPENCV3_IMGCODECS_H_
|
|
|
|
#define _OPENCV3_IMGCODECS_H_
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <opencv2/opencv.hpp>
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "core.h"
|
|
|
|
|
|
|
|
Mat Image_IMRead(const char* filename, int flags);
|
|
|
|
bool Image_IMWrite(const char* filename, Mat img);
|
|
|
|
bool Image_IMWrite_WithParams(const char* filename, Mat img, IntVector params);
|
2021-09-01 20:08:47 +00:00
|
|
|
void Image_IMEncode(const char* fileExt, Mat img, void* vector);
|
|
|
|
|
|
|
|
void Image_IMEncode_WithParams(const char* fileExt, Mat img, IntVector params, void* vector);
|
2020-01-04 13:10:36 +00:00
|
|
|
Mat Image_IMDecode(ByteArray buf, int flags);
|
2024-04-02 17:24:34 +00:00
|
|
|
void Image_IMDecodeIntoMat(ByteArray buf, int flag, Mat dest);
|
2020-01-04 13:10:36 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //_OPENCV3_IMGCODECS_H_
|