licornea_tools
image_io.h
Go to the documentation of this file.
1 #ifndef LICORNEA_IMAGE_IO_H_
2 #define LICORNEA_IMAGE_IO_H_
3 
4 #include "common.h"
5 #include "opencv.h"
6 #include <string>
7 
8 namespace tlz {
9 
10 cv::Mat_<cv::Vec3b> load_texture(const std::string& filename);
11 void save_texture(const std::string& filename, const cv::Mat_<cv::Vec3b>&);
12 
13 cv::Mat_<ushort> load_ir(const std::string& filename);
14 void save_ir(const std::string& filename, const cv::Mat_<ushort>&);
15 
16 cv::Mat_<ushort> load_depth(const std::string& filename);
17 void save_depth(const std::string& filename, const cv::Mat_<ushort>&);
18 
19 }
20 
21 #endif
void save_depth(const std::string &filename, const cv::Mat_< ushort > &depth)
Definition: image_io.cc:43
void save_texture(const std::string &filename, const cv::Mat_< cv::Vec3b > &texture)
Definition: image_io.cc:13
cv::Mat_< ushort > load_ir(const std::string &filename)
Definition: image_io.cc:20
cv::Mat_< ushort > load_depth(const std::string &filename)
Definition: image_io.cc:35
void save_ir(const std::string &filename, const cv::Mat_< ushort > &ir)
Definition: image_io.cc:28
cv::Mat_< cv::Vec3b > load_texture(const std::string &filename)
Definition: image_io.cc:6