aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-03 23:44:14 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-03 23:44:14 -0600
commitc7d9d271796b20f886e2441de852498ecb25ca82 (patch)
tree5929c2793c33c80e5392982a9baaa8d5ccaca724 /tools
parentfe025b0ff6bfb440da7cec8f388fa951910a86f0 (diff)
parent6a45298c9bc34aac59cc2ebb9de2d82c7a42756e (diff)
downloadlibsurvive-c7d9d271796b20f886e2441de852498ecb25ca82.tar.gz
libsurvive-c7d9d271796b20f886e2441de852498ecb25ca82.tar.bz2
Merge branch 'master' into imu
Diffstat (limited to 'tools')
-rw-r--r--tools/showreproject/showreproject.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/showreproject/showreproject.cc b/tools/showreproject/showreproject.cc
index caa7a66..8cde992 100644
--- a/tools/showreproject/showreproject.cc
+++ b/tools/showreproject/showreproject.cc
@@ -87,7 +87,7 @@ static void redraw(SurviveContext *ctx) {
// survive_apply_bsd_calibration(so->ctx, lh, _a, a);
auto l = scene->lengths[sensor][lh];
- double r = std::max(1., (l[0] + l[1]) / 1000.);
+ double r = std::max(3., (l[0] + l[1]) / 1000.);
// std::cerr << lh << "\t" << sensor << "\t" << ((l[0] + l[1]) / 2000.) << "\t" << l[0] << "\t" <<
// l[1] << std::endl;
if (region.data)
@@ -111,8 +111,10 @@ static void redraw(SurviveContext *ctx) {
cv::Scalar(255, 255, 255));
if (region.data) {
- cv::line(region, map(a) + cv::Point(ex * 10000, -ey * 10000), map(a),
- cv::Scalar(255, 255, 255));
+ if (err_add < .01) {
+ cv::line(region, map(a) + cv::Point(ex * 10000, -ey * 10000), map(a),
+ cv::Scalar(255, 255, 255));
+ }
cv::rectangle(region, map(out) - cv::Point(r, r), map(out) + cv::Point(r, r), rcolor);
}
}
@@ -235,7 +237,7 @@ int main(int argc, char **argv) {
err[lh].setTo(cv::Vec3b(0, 0, 0));
}
- if (img.data && false) {
+ if (img.data) {
cv::imshow("Reprojection", img);
cv::waitKey(0);
}