Coder Social home page Coder Social logo

CPD doesn't modify point cloud about probreg HOT 4 CLOSED

neka-nat avatar neka-nat commented on August 12, 2024
CPD doesn't modify point cloud

from probreg.

Comments (4)

Nikhil-Shenoy avatar Nikhil-Shenoy commented on August 12, 2024 1

Late response, but yes, this solved the problem. Thank you!

from probreg.

neka-nat avatar neka-nat commented on August 12, 2024

Hi @Nikhil-Shenoy

Thank you for trying it out.
Can I get the point cloud data?
I'll check it out too.

from probreg.

Nikhil-Shenoy avatar Nikhil-Shenoy commented on August 12, 2024

pcd_data.zip

@neka-nat Here's the data. The library looks really great by the way.

from probreg.

neka-nat avatar neka-nat commented on August 12, 2024

Thanks for the data.
I set lmd=1.0e-5 to weaken the regularization,
because when the initial values were far apart, the regularization would be stronger.
I've attached the code I tried and the results.

import numpy as np
import open3d as o3d
from probreg import cpd
from probreg import callbacks
import logging

log = logging.getLogger('probreg')
log.setLevel(logging.DEBUG)

# Load the data

pcd1_filename = "pcd_data/pcd1_centered.pcd"
pcd2_filename = "pcd_data/pcd2_aligned.pcd"

pcd1 = o3d.io.read_point_cloud(pcd1_filename)
pcd2 = o3d.io.read_point_cloud(pcd2_filename)

pcd2_points = np.asarray(pcd2.points)
pcd2.points = o3d.utility.Vector3dVector(pcd2_points * 0.5)

# compute cpd registration
cbs = [callbacks.Open3dVisualizerCallback(pcd2, pcd1)]
tf_param, _, _ = cpd.registration_cpd(pcd2, pcd1, 'nonrigid',
                                      callbacks=cbs, lmd=1.0e-5)

out

from probreg.

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.