zivid / zivid-cpp-samples

Code samples for the usage of a Zivid 3D camera in C++
BSD 3-Clause "New" or "Revised" License
23 stars 17 forks source link

Copy data directly into PCL point cloud buffers using `void copyData(DataFormat *destination) const` #175

Open runenordmo opened 3 years ago

runenordmo commented 3 years ago

Then the for-loop iterating over every point in

https://github.com/zivid/zivid-cpp-samples/blob/cc2828d041e407340c82e30fe2b2cc43d9fc0fa4/source/Applications/Basic/Visualization/CaptureWritePCLVis3D/CaptureWritePCLVis3D.cpp#L54-L62

will become a one-liner running void copyData(DataFormat *destination) const.

This is already possible copying Zivid::PointXYZW into pcl::PointXYZ, but not for more complex pcl types.


This would require the Zivid SDK to support more composed data formats, matching some of the PCL data types.

runenordmo commented 3 years ago

Discussed with @SatjaSivcev, will move this to our internal backlog, since this needs to be implemented in the SDK before it can be utilized in the sample.