Skip to content
3 changes: 1 addition & 2 deletions aslam_cv/aslam_cameras/src/GridDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ GridDetector::GridDetector(boost::shared_ptr<CameraGeometryBase> geometry,
void GridDetector::initializeDetector()
{
if (_options.plotCornerReprojection) {
cv::namedWindow("Corner reprojection");
cvStartWindowThread();
cv::namedWindow("Corner reprojection", cv::WINDOW_NORMAL);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ GridCalibrationTargetAprilgrid::GridCalibrationTargetAprilgrid() :
void GridCalibrationTargetAprilgrid::initialize()
{
if (_options.showExtractionVideo) {
cv::namedWindow("Aprilgrid: Tag detection");
cv::namedWindow("Aprilgrid: Tag corners");
cvStartWindowThread();
cv::namedWindow("Aprilgrid: Tag detection", cv::WINDOW_NORMAL);
cv::namedWindow("Aprilgrid: Tag corners", cv::WINDOW_NORMAL);
}

//create the tag detector
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
import itertools
import sys
import pylab as pl
import Image
try:
from PIL import Image # Modern
except ImportError:
import Image # Old import (backward compatibility)
import time

# make numpy print prettier
Expand Down