Giter Club home page Giter Club logo

Comments (3)

drlight-code avatar drlight-code commented on May 22, 2024 1

Hi, setting the sigma explicitly works for me too. I have to read your paper more closely to better understand its implications and a reasonable initialization value for it. Thanks so much!

from probreg.

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

Hi @drlight-code ,

Thank you for the feedback.
I also tried the following code using the attached data.

import numpy as np
import transformations as trans
from probreg import filterreg
from probreg import callbacks
from probreg import math_utils as mu
import open3d as o3

sdata = np.loadtxt("frames/frame00000.txt")
tdata = np.loadtxt("frames/frame00001.txt")

def estimate_normals(pcd, params):
    pcd.estimate_normals(search_param=params)
    pcd.orient_normals_to_align_with_direction()

source = o3.geometry.PointCloud()
source.points = o3.utility.Vector3dVector(sdata)
target = o3.geometry.PointCloud()
target.points = o3.utility.Vector3dVector(tdata)
estimate_normals(target, o3.geometry.KDTreeSearchParamHybrid(radius=0.5, max_nn=50))

cbs = [callbacks.Open3dVisualizerCallback(source, target)]
objective_type = 'pt2pt'
tf_param, _, _ = filterreg.registration_filterreg(source, target,
                                                  #target_normals=np.asarray(target.normals),
                                                  objective_type=objective_type,
                                                  sigma2=1.0,
                                                  callbacks=cbs)
rot = trans.identity_matrix()
rot[:3, :3] = tf_param.rot
print("result: ", np.rad2deg(trans.euler_from_matrix(rot)),
      tf_param.scale, tf_param.t)

I don't know the cause, but I needed to adjust the parameters.
In this case, I set sigma2=1.

pt2pt

from probreg.

drlight-code avatar drlight-code commented on May 22, 2024

I am reopening this in case you want to look into the initial estimation of the sigma2. Thanks again for your support.

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.