Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"select_by_index" to work with the class "open3d.pipelines.registration.Feature" #7004

Open
3 tasks done
RubensBenevides opened this issue Oct 8, 2024 · 0 comments
Open
3 tasks done

Comments

@RubensBenevides
Copy link

RubensBenevides commented Oct 8, 2024

Checklist

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant