Skip to content
Snippets Groups Projects
Commit 431d8645 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Reduce threshold

parent aba623df
No related branches found
No related tags found
1 merge request!32Resolves #76 calibration rework
Pipeline #11426 passed
......@@ -166,7 +166,7 @@ static Point2f diffY(const vector<Point2f> &pointsA, const vector<Point2f> &poin
return Point2f(d1,d2);
}
static const float kDistanceThreshold = 0.02f;
static const float kDistanceThreshold = 0.005f;
static void showAnaglyph(const Mat &frame_l, const Mat &frame_r, Mat &img3d) {
......@@ -377,7 +377,7 @@ void ftl::calibration::align(map<string, string> &opt) {
float boardWidth = (std::abs(tl.x-tr.x) + std::abs(btl.x - btr.x)) / 2.0f;
float baseline = ((baseline1 + baseline2 + baseline3 + baseline4) / 4.0f) / boardWidth * (boardSize.width*squareSize);
putText(anag, string("Baseline: ") + std::to_string(baseline) + string("m"), Point(10,150), FONT_HERSHEY_PLAIN, 2.0, Scalar(0,255,0), 2);
putText(anag, string("Baseline: ") + std::to_string(baseline) + string("mm"), Point(10,150), FONT_HERSHEY_PLAIN, 2.0, Scalar(0,255,0), 2);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment