Code Monkey home page Code Monkey logo

Comments (5)

neka-nat avatar neka-nat commented on May 22, 2024 1

Hi @longwoo ,

Thank you for reporting.
Please try the conversion in the following way.

np.asarray(pcd.points.cpu())

And DBSCAN clustering may not work. I am currently debugging.

from cupoch.

neka-nat avatar neka-nat commented on May 22, 2024 1

I added crop function that takes OrientedBoundingBox.
You can use it by fetching the latest "master" branch and compiling it.

from cupoch.

longwoo avatar longwoo commented on May 22, 2024

@neka-nat
Thank you for your quick answer. It solves my problem.

And I want to make sure that pcd.crop is not support OrientedBoundingBox type yet? Since it gives me

    pc_ground = pcd.crop(box_ground)
TypeError: crop(): incompatible function arguments. The following argument types are supported:
    1. (self: cupoch.cupoch.geometry.PointCloud, bounding_box: cupoch::geometry::AxisAlignedBoundingBox) -> cupoch.cupoch.geometry.PointCloud

Invoked with: geometry::PointCloud with 139003 points., geometry::OrientedBoundingBox

So I need to use AxisAlignedBoundingBox as input instead of OrientedBoundingBox.

--------------------------------------------------------------------------------------------------------------------

now I use

box_ground = x3d.geometry.OrientedBoundingBox(np.array([0.0, height_max_temp, 0.0]), np.eye(3), np.array([4.5, 0.2, max_depth]))
pc_ground = pcd.crop(box_ground.get_axis_aligned_bounding_box())

It works!

from cupoch.

pbdahzou avatar pbdahzou commented on May 22, 2024

Hi @longwoo ,

Thank you for reporting. Please try the conversion in the following way.

np.asarray(pcd.points.cpu())

And DBSCAN clustering may not work. I am currently debugging.

Can DBSCAN clustering work correctly ?

from cupoch.

pbdahzou avatar pbdahzou commented on May 22, 2024

I run the clustering.py and get the following results:
fragment has 196133 points
[2023-06-21 21:12:18.968] [debug] Precompute Neighbours
Precompute Neighbours[========================================] 100%
fragment has 196133 clusters

from cupoch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.