Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix opencv windows
  • Loading branch information
floriantschopp committed Jul 22, 2019
1 parent d8fc0e2 commit ee2b09d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aslam_cv/aslam_cameras/src/GridDetector.cpp
Expand Up @@ -32,7 +32,7 @@ GridDetector::GridDetector(boost::shared_ptr<CameraGeometryBase> geometry,
void GridDetector::initializeDetector()
{
if (_options.plotCornerReprojection) {
cv::namedWindow("Corner reprojection");
cv::namedWindow("Corner reprojection", cv::WINDOW_NORMAL);
}
}

Expand Down
Expand Up @@ -56,8 +56,8 @@ GridCalibrationTargetAprilgrid::GridCalibrationTargetAprilgrid() :
void GridCalibrationTargetAprilgrid::initialize()
{
if (_options.showExtractionVideo) {
cv::namedWindow("Aprilgrid: Tag detection");
cv::namedWindow("Aprilgrid: Tag corners");
cv::namedWindow("Aprilgrid: Tag detection", cv::WINDOW_NORMAL);
cv::namedWindow("Aprilgrid: Tag corners", cv::WINDOW_NORMAL);
}

//create the tag detector
Expand Down
Expand Up @@ -598,8 +598,11 @@ def printParameters(cself, dest=sys.stdout):
corners, reprojs, rerrs = getReprojectionErrors(cself, cidx)
if len(rerrs)>0:
me, se = getReprojectionErrorStatistics(rerrs)
print >> dest, "\t reprojection error: [%f, %f] +- [%f, %f]" % (me[0], me[1], se[0], se[1])
print >> dest
try:
print >> dest, "\t reprojection error: [%f, %f] +- [%f, %f]" % (me[0], me[1], se[0], se[1])
except:
print >> dest, "\t Failed printing the reprojection error."
print >> dest

#print baselines
for bidx, baseline in enumerate(cself.baselines):
Expand Down

0 comments on commit ee2b09d

Please sign in to comment.