Skip to content

Commit 96b7395

Browse files
Preserve the converge status for the latest RegistrationResult (#7297)
Co-authored-by: Frank_Chen <[email protected]>
1 parent 5332ba9 commit 96b7395

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/open3d/t/pipelines/registration/Registration.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,12 @@ RegistrationResult MultiScaleICP(
404404
// To calculate final `fitness` and `inlier_rmse` for the current
405405
// `transformation` stored in `result`.
406406
if (scale_idx == num_scales - 1) {
407+
bool preserved_converged_flag = result.converged_;
407408
result = ComputeRegistrationResult(
408409
source_down_pyramid[scale_idx], target_nns,
409410
max_correspondence_distances[scale_idx],
410411
result.transformation_);
412+
result.converged_ = preserved_converged_flag;
411413
}
412414

413415
// No correspondences.

0 commit comments

Comments
 (0)