Hello,
Is there a way to export a PCD cloud with intensities written in the "intensity" field? I noticed that PCL (point cloud library v1.8) was not able to find intensities when reading this file. Intensities seem to come in RGB fields. Still reading the PCD back with CC, the intensities are found from the scalar fields.
Thank you
Nikodeemus
EDIT:
Just changed the subject name to better describe the problem and solution.
Save cloud as PCD file with intensity field named as PCL expects it.
-
- Posts: 7
- Joined: Thu Mar 26, 2020 5:34 am
Save cloud as PCD file with intensity field named as PCL expects it.
Last edited by nikodeemus on Thu May 14, 2020 10:41 am, edited 1 time in total.
Re: Save cloud as PCD file with intensity (not in RGB)
Maybe it's a problem of scalar field name? Maybe PCL expects the 'Intensity' field to have a specific name?
Daniel, CloudCompare admin
-
- Posts: 7
- Joined: Thu Mar 26, 2020 5:34 am
Re: Save cloud as PCD file with intensity (not in RGB)
Yup that is the problem!
CC writes the field "Intensity" with capital "I" while PCL (pcl::PointXYZI) expects it written as lower case letter.
I figured out that in CC it is possible to change a scalar field name by first choosing the cloud and activating the scalar field to be renamed. Then go to ->tools->scalar fields->rename and save the file. This was the tool I was looking for. I thought I tried this before posting the question here, but I must have mixed with files or something. Well I hope this helps someone in the future.
PCD format is new for me. Apparently the field names are not specified in the pcd schema? At least intensity is not mentioned here https://pcl-tutorials.readthedocs.io/en ... ile-format.
-nikodeemus
CC writes the field "Intensity" with capital "I" while PCL (pcl::PointXYZI) expects it written as lower case letter.
I figured out that in CC it is possible to change a scalar field name by first choosing the cloud and activating the scalar field to be renamed. Then go to ->tools->scalar fields->rename and save the file. This was the tool I was looking for. I thought I tried this before posting the question here, but I must have mixed with files or something. Well I hope this helps someone in the future.
PCD format is new for me. Apparently the field names are not specified in the pcd schema? At least intensity is not mentioned here https://pcl-tutorials.readthedocs.io/en ... ile-format.
-nikodeemus