Skip to content

Commit

Permalink
Fix log error message for "probability" argument validation in `Point…
Browse files Browse the repository at this point in the history
…Cloud::SegmentPlane` (#6622)
  • Loading branch information
true-real-michael authored Mar 7, 2024
1 parent f5f672b commit 72746b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- Fix mis-configured application .desktop link for the Open3D viewer when installing to a custom path (PR #6599)
- Fix regression in printing cuda tensor from PR #6444 🐛
- Add Python pathlib support for file IO (PR #6619)
- Fix log error message for `probability` argument validation in `PointCloud::SegmentPlane` (PR #6622)

## 0.13

Expand Down
2 changes: 1 addition & 1 deletion cpp/open3d/geometry/PointCloudSegmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ std::tuple<Eigen::Vector4d, std::vector<size_t>> PointCloud::SegmentPlane(
const int num_iterations /* = 100 */,
const double probability /* = 0.99999999 */) const {
if (probability <= 0 || probability > 1) {
utility::LogError("Probability must be > 0 or <= 1.0");
utility::LogError("Probability must be > 0 and <= 1.0");
}

RANSACResult result;
Expand Down

0 comments on commit 72746b9

Please sign in to comment.