ifm / ifm3d

Library and Utilities for working with ifm pmd-based 3D ToF Cameras
https://api.ifm3d.com
Apache License 2.0
110 stars 69 forks source link

How to achieve an image / Point Cloud similar to the ones displayed in the Vision assistant #351

Closed LarsBuck closed 2 years ago

LarsBuck commented 2 years ago

Hello,

after experimenting with the python library I am now able to get the distance image, but it does not look as similar as presented in the Vision assistant. What preprocessing is needed to achieve such an image. We are currently using Opencv applyColormap method for visualisation.

ifm3do3d300_dep

In the Vision Assistant there are linear and logarithmic transformations added to image, which will probably lead to a better result. How can we use these in python. Do you have any information on that ?


Another question i have is how can i access the point cloud data with the python library. I've seen documentation about the .cloud() function but it is only available in c++. Is there a similar function in python to create a point cloud like in the Vision Assistant / PCL Viewer.

Thanks for your help.

lola-masson commented 2 years ago

Hi Lars,

The point cloud can be retrieved with the xyz_image() function in python. You can have a look at this example, which is a python viewer implemented using openCV and open3D. What exactly are you trying to achieve with the display? Is it the contrast that is not sufficient?