-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools.cpp
More file actions
30 lines (22 loc) · 924 Bytes
/
Copy pathtools.cpp
File metadata and controls
30 lines (22 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "tools.h"
#include <pcl/io/lzf_image_io.h> // for pcl::io::LZFRGB24ImageReader, pcl::io::LZFBayer8ImageReader, pcl::io::LZFYUV422ImageReader, pcl::io::LZFDepth16ImageReader
namespace cwd{
bool loadPCLZF (const std::string &filename_rgb,
const std::string &filename_depth,
const std::string &filename_params,
pcl::PointCloud<pcl::PointXYZRGBA> &cloud){
pcl::io::LZFRGB24ImageReader rgb;
pcl::io::LZFBayer8ImageReader bayer;
pcl::io::LZFYUV422ImageReader yuv;
pcl::io::LZFDepth16ImageReader depth;
rgb.readParameters (filename_params);
bayer.readParameters (filename_params);
depth.readParameters (filename_params);
yuv.readParameters (filename_params);
if (!rgb.read (filename_rgb, cloud))
if (!yuv.read (filename_rgb, cloud))
bayer.read (filename_rgb, cloud);
depth.read (filename_depth, cloud);
return (true);
}
}