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";
57 savePLY(pointXYZMap, pointCloudPath);
61 savePLY(pointXYZBGRMap, pointCloudColorPath);
void capture(mmind::api::MechEyeDevice &device, std::string suffix)
Definition CaptureUtil.h:38
void saveMap(mmind::api::ColorMap color, std::string path)
Definition OpenCVUtil.h:38
void savePLY(const mmind::api::PointXYZMap &pointXYZMap, const std::string &path)
Definition PclUtil.h:121
void showError(const mmind::api::ErrorStatus &status)
Definition SampleUtil.h:40
Definition of data structure in device capturing image.
Definition MechEyeFrame.hpp:101
Interface that is used to connect the Mech-Eye Industrial 3D Camera and access basic information of t...
Definition MechEyeApi.h:58
ErrorStatus capturePointXYZBGRMap(PointXYZBGRMap &pointXYZBGRMap) const
Captures a colored point cloud image.
ErrorStatus capturePointXYZMap(PointXYZMap &pointXYZMap) const
Captures a point cloud image.
ErrorStatus captureDepthMap(DepthMap &depthMap) const
Captures a depth image.
ErrorStatus captureColorMap(ColorMap &colorMap) const
Captures a color image.