Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Matrix vs Isometry

Open seath49 opened this issue 8 years ago • 4 comments

I noticed that Eigen::Matrix4d is used through out the code (when it represents a rigid transformation, Eigen::Isometry3d should be used). In the current library state it is not a big performance / precision drawback. In the future, it could pose a disadvantage e.g. when calling .inverse().

seath49 avatar Feb 07 '18 20:02 seath49

That's good point. Can you contribute to replace Eigen::Matrix4d? The issue need to consider is in py3d_eigen.cpp as the matrix buffer is directly copied to 4x4 numpy matrix.

syncle avatar Feb 07 '18 21:02 syncle

I will try to find some time next week. I don't use the library, so can't commit much time to it. But I appreciate the effort of making actually usable lib, compared to the big one. Keep it light :)

seath49 avatar Feb 07 '18 21:02 seath49

No problem. Another reason is that some transformation in Open3D deals with scale changes. See point-to-point ICP in TransformationEstimation.cpp. Isometry3d consists of rotation and translation component, so it cannot express scaling factor.

syncle avatar Feb 07 '18 23:02 syncle

Good point about performance and precision. I think it is fine for now. But if anyone is motivated, feel free to take the token and make a PR.

qianyizh avatar Feb 08 '18 08:02 qianyizh