mirror of
https://github.com/13hannes11/situr.git
synced 2024-09-03 20:50:58 +02:00
add proper offset and fix missing use of self.max_distance
This commit is contained in:
@@ -66,10 +66,10 @@ class IcpRegistrationFunction(RegistrationFunction):
|
|||||||
target = o3.geometry.PointCloud()
|
target = o3.geometry.PointCloud()
|
||||||
target.points = o3.utility.Vector3dVector(extend_dim(reference_peaks))
|
target.points = o3.utility.Vector3dVector(extend_dim(reference_peaks))
|
||||||
reg_p2p = o3.pipelines.registration.registration_icp(
|
reg_p2p = o3.pipelines.registration.registration_icp(
|
||||||
source, target, 200)
|
source, target, self.max_distance)
|
||||||
print('Transformation: ')
|
return ScaleRotateTranslateTransform(
|
||||||
print(reg_p2p.transformation)
|
reg_p2p.transformation[0:2, 0:2],
|
||||||
return ScaleRotateTranslateTransform(reg_p2p.transformation[0:2, 0:2])
|
offset=reg_p2p.transformation[[1, 0], 3])
|
||||||
|
|
||||||
|
|
||||||
class Registration:
|
class Registration:
|
||||||
|
|||||||
Reference in New Issue
Block a user