34#include "MechEyeApi.h"
35#include "OpenCVUtil.h"
40 const std::string colorFile = suffix.empty() ?
"ColorMap.png" :
"ColorMap_" + suffix +
".png";
41 const std::string depthFile = suffix.empty() ?
"DepthMap.png" :
"DepthMap_" + suffix +
".png";
42 const std::string pointCloudPath =
43 suffix.empty() ?
"PointCloud.ply" :
"PointCloud_" + suffix +
".ply";
44 const std::string pointCloudColorPath =
45 suffix.empty() ?
"ColorPointCloud.ply" :
"ColorPointCloud_" + suffix +
".ply";
49 saveMap(color, colorFile);
53 saveMap(depth, depthFile);
57 savePLY(pointXYZMap, pointCloudPath);
61 savePLY(pointXYZBGRMap, pointCloudColorPath);
Definition of data structure in device capturing image.
Interface that is used to connect the Mech-Eye Industrial 3D Camera and access basic information of t...
ErrorStatus captureDepthMap(DepthMap &depthMap) const
Captures a depth image.
ErrorStatus capturePointXYZBGRMap(PointXYZBGRMap &pointXYZBGRMap) const
Captures a colored point cloud image.
ErrorStatus captureColorMap(ColorMap &colorMap) const
Captures a color image.
ErrorStatus capturePointXYZMap(PointXYZMap &pointXYZMap) const
Captures a point cloud image.