You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose that I have a list of indexes indexes = o3d.utility.IntVector( [10,20,30] )
and I want to select these indexes from the FPFH descriptors: FPFH = o3d.pipelines.registration.compute_fpfh_feature(cloud, kd_tree_descriptor)
I could do FPFH.select_by_index(indexes) but:
'open3d.cpu.pybind.pipelines.registration.Feature' object has no attribute 'select_by_index'
I can convert the FPFH features to numpy arrays: FPFH = np.asarray(FPFH.data) FPFH = FPFH.transpose()
and then select only the rows that I want FPFH = FPFH[indexes]
But now, there is no way to convert the FPFH numpy array back to a feature object.
Thanks for your attention, Nicolaloi. I wanted this function to select only FPFH features calculated at keypoints.
One problem with Open3D is that it calculates the FPFH for all the points in the cloud, which is not at all efficient.
In my case, I work with the registration of clouds from Topographic/Terrestrial Laser Scanners, and ideally there should be a way of calculating the FPFH only for certain indices, such as the keypoints of the ISS detector.
I have opened a PR for the original feature request of the select_by_index method. What you describe in your comment is a different feature request. Can you open a new issue?
Checklist
main
branch).Proposed new feature or change
Suppose that I have a list of indexes
indexes = o3d.utility.IntVector( [10,20,30] )
and I want to select these indexes from the FPFH descriptors:
FPFH = o3d.pipelines.registration.compute_fpfh_feature(cloud, kd_tree_descriptor)
I could do
FPFH.select_by_index(indexes)
but:'open3d.cpu.pybind.pipelines.registration.Feature' object has no attribute 'select_by_index'
I can convert the FPFH features to numpy arrays:
FPFH = np.asarray(FPFH.data)
FPFH = FPFH.transpose()
and then select only the rows that I want
FPFH = FPFH[indexes]
But now, there is no way to convert the FPFH numpy array back to a feature object.
References
(https://www.open3d.org/docs/release/python_api/open3d.pipelines.registration.Feature.html#open3d.pipelines.registration.Feature)
Additional information
No response
The text was updated successfully, but these errors were encountered: