Skip to content

Commit

Permalink
fix(concentricRingCalibrator.h/.cpp): more robust and accuracy algori…
Browse files Browse the repository at this point in the history
…thm.

1. use vonishing line to recover circle point.
  • Loading branch information
Practice3DVision committed Apr 23, 2024
1 parent 31b397e commit d50ac0b
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 61 deletions.
4 changes: 2 additions & 2 deletions gui/src/CalibrateEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void CalibrateEngine::stereoCalibrate(const int targetType, const int rowNum,
leftCalibrator_->imgs(), caliInfo_.info_.M1_,
caliInfo_.info_.D1_, cv::Size(rowNum, colNum), progress_);

if (leftError > 0.99 || leftError < 0.001) {
if (std::abs(leftError - (int)leftError) < 0.001f) {
emit findFeaturePointsError(
leftCameraModel_->curFolderPath() + "/" +
leftCameraModel_->imgPaths()[(int)leftError]);
Expand All @@ -230,7 +230,7 @@ void CalibrateEngine::stereoCalibrate(const int targetType, const int rowNum,
rightCalibrator_->imgs(), caliInfo_.info_.M2_,
caliInfo_.info_.D2_, cv::Size(rowNum, colNum), progress_);

if (rightError > 0.99 || rightError < 0.001) {
if (std::abs(rightError - (int)rightError) < 0.001f) {
emit findFeaturePointsError(
rightCameraModel_->curFolderPath() + "/" +
rightCameraModel_->imgPaths()[(int)rightError]);
Expand Down
Loading

0 comments on commit d50ac0b

Please sign in to comment.