Skip to content

Commit a48aa4d

Browse files
Merge branch 'registration-dev' of github.com:diffCheckOrg/diffCheck into registration-dev
2 parents 3885182 + 7ecfe27 commit a48aa4d

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

deps/eigen

Submodule eigen updated from 2265242 to 34967b0

src/diffCheck/registrations/DFGlobalRegistrations.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace diffCheck::registrations
6969
double radiusKDTreeSearch,
7070
int maxNeighborKDTreeSearch,
7171
double maxCorrespondenceDistance,
72-
open3d::pipelines::registration::TransformationEstimationPointToPoint transformationEstimation,
72+
bool isTEstimatePt2Pt,
7373
int ransacN,
7474
double correspondenceCheckerDistance ,
7575
int ransacMaxIteration,
@@ -78,6 +78,9 @@ namespace diffCheck::registrations
7878
std::shared_ptr<open3d::geometry::PointCloud> sourceO3D = source->Cvt2O3DPointCloud();
7979
std::shared_ptr<open3d::geometry::PointCloud> targetO3D = target->Cvt2O3DPointCloud();
8080

81+
open3d::pipelines::registration::TransformationEstimationPointToPoint transformationEstimation =
82+
open3d::pipelines::registration::TransformationEstimationPointToPoint(isTEstimatePt2Pt);
83+
8184
if (voxelise)
8285
{
8386
sourceO3D->VoxelDownSample(voxelSize);

src/diffCheck/registrations/DFGlobalRegistrations.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace diffCheck::registrations
5555
* @param radiusKDTreeSearch the radius used to search for neighbors in the KDTree. It is used for the calculation of FPFHFeatures
5656
* @param maxNeighborKDTreeSearch the maximum number of neighbors to search for in the KDTree. It is used for the calculation of FPFHFeatures
5757
* @param maxCorrespondenceDistance the maximum distance between correspondences in the FPFH space. A higher value will result in more correspondences, but potentially include wrong ones.
58-
* @param transformationEstimation the transformation estimation method to use. By default, it uses a point to point transformation estimation.
58+
* @param isTEstimatePt2Pt the transformation estimation method to use. By default, it uses a point to point transformation estimation. If true it will scale and deform the cloud.
5959
* @param ransacN the number of points to sample in the source point cloud. A higher value can result in a more precise transformation, but will take more time to compute.
6060
* @param correspondenceCheckersDistance the maximum distance between correspondances in the FPFH space before testing a RanSaC model.
6161
* @return diffCheck::transformation::DFTransformation The result of the registration, containing the transformation matrix and the fitness score.
@@ -70,8 +70,8 @@ namespace diffCheck::registrations
7070
double radiusKDTreeSearch = 3,
7171
int maxNeighborKDTreeSearch = 50,
7272
double maxCorrespondenceDistance = 0.05,
73-
open3d::pipelines::registration::TransformationEstimationPointToPoint transformationEstimation = open3d::pipelines::registration::TransformationEstimationPointToPoint(false),
74-
int ransacN = 5,
73+
bool isTEstimatePt2Pt = false,
74+
int ransacN = 3,
7575
double correspondenceCheckerDistance = 0.05,
7676
int ransacMaxIteration = 1000,
7777
double ransacConfidenceThreshold = 0.99);

0 commit comments

Comments
 (0)