licornea_tools
raw_image_io.h
Go to the documentation of this file.
1 #ifndef LICORNEA_RAW_IMAGE_IO_H_
2 #define LICORNEA_RAW_IMAGE_IO_H_
3 
4 #include "common.h"
5 
6 namespace tlz {
7 
8 enum class raw_image_format {
9  ycbcr420,
10  rgb_planar,
12 };
13 
14 cv::Mat import_raw_color(const std::string& yuv_filename, int width, int height, raw_image_format);
15 cv::Mat import_raw_mono(const std::string& yuv_filename, int width, int height, int bit_depth = 8);
16 
17 void export_raw_color(const cv::Mat& img, const std::string& yuv_filename, raw_image_format);
18 void export_raw_mono(const cv::Mat& img, const std::string& yuv_filename, int bit_depth);
19 
20 }
21 
22 #endif
void export_raw_color(const cv::Mat &img, const std::string &yuv_filename, raw_image_format form)
void export_raw_mono(const cv::Mat &img, const std::string &yuv_filename, int out_bit_depth)
cv::Mat import_raw_mono(const std::string &yuv_filename, int width, int height, int bit_depth)
cv::Mat import_raw_color(const std::string &yuv_filename, int width, int height, raw_image_format form)
raw_image_format
Definition: raw_image_io.h:8