28 #ifndef COMPRESSION_H_
29 #define COMPRESSION_H_
31 #include "rtabmap/core/rtabmap_core_export.h"
34 #include <opencv2/opencv.hpp>
64 virtual void mainLoop();
73 std::vector<unsigned char> RTABMAP_CORE_EXPORT
compressImage(
const cv::Mat & image,
const std::string & format =
".png");
74 cv::Mat RTABMAP_CORE_EXPORT
compressImage2(
const cv::Mat & image,
const std::string & format =
".png");
79 std::vector<unsigned char> RTABMAP_CORE_EXPORT
compressData(
const cv::Mat & data);
80 cv::Mat RTABMAP_CORE_EXPORT
compressData2(
const cv::Mat & data);
84 cv::Mat RTABMAP_CORE_EXPORT
uncompressData(
const unsigned char *
bytes,
unsigned long size);