isl-org / isl-org/Open3D

How to read point clouds with infinite point values?

Open
#5,985 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [x] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### My Question

Hello all,

i have a bunch of point clouds which i want to process further with Open3d (Python 0.16.1). All of them contain infinite points, which I dont care about beeing removed. I tried to read them with [read_point_cloud](http://www.open3d.org/docs/latest/python_api/open3d.io.read_point_cloud.html#open3d.io.read_point_cloud):
`open3d.io.read_point_cloud(filename, remove_nan_points=True, remove_infinite_points=True)`

But this doesn't work how i would expect. I get this error:

> RPly: Error reading 'x' of 'vertex' number 0
[Open3D WARNING] Read PLY failed: unable to read file: filename

My file looks like this:
```
ply
format ascii 1.0
element vertex 2073600
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
end_header
-inf -inf inf 1 1 1
-inf -inf inf 0 0 0
...
```

How can i read this files using Open3D?

Thanks in Advance

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.