Wrong property names in generated ply files?

Hi,

I tried to read some ply-files generated with the plygenerator using cv::viz::readCloud(). This hasn’t worked for color because of the used property name. OpenCV uses VTK, and there they try to read red, green, blue instead of r, g, b.

Could you change the property names or at least provide a command line parameter to use the other format.

Current format:

ply
format ascii 1.0
element vertex 1123325
property float x
property float y
property float z
property uchar r
property uchar g
property uchar b
end_header

Required format:

ply
format ascii 1.0
element vertex 1123325
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
end_header

P.S.

$ ./plygenerator -h
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::unknown_option> >'
  what():  unrecognised option '-h'
Abgebrochen (Speicherabzug geschrieben)

P.P.S. I know ./plygenerator --help works

P.P.P.S. some bug tracker would be nice :smiley:

Hi,
thanks for mentioning the issue. I will provide a fix in the next release. For now, maybe you could write a small script which changes the property names?

Regards,
Markus

Hi,

the property names are fixed in the latest release.

Regards
Markus