Skip to content

Commit

Permalink
fixed compiler issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyTaylor committed Sep 7, 2018
1 parent 610855e commit 37798d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/rovio/ImagePyramid.hpp
Expand Up @@ -134,8 +134,9 @@ class ImagePyramid{
* @param l - Pyramid level at which the corners should be extracted.
* @param detectionThreshold - Detection threshold of the used cv::FastFeatureDetector.
* See http://docs.opencv.org/trunk/df/d74/classcv_1_1FastFeatureDetector.html
* @param valid_radius - Radius inside which a feature is considered valid (as ratio of shortest image side)
*/
void detectFastCorners(FeatureCoordinatesVec & candidates, int l, int detectionThreshold) const{
void detectFastCorners(FeatureCoordinatesVec & candidates, int l, int detectionThreshold, double valid_radius = std::numeric_limits<double>::max()) const{
std::vector<cv::KeyPoint> keypoints;
#if (CV_MAJOR_VERSION < 3)
cv::FastFeatureDetector feature_detector_fast(detectionThreshold, true);
Expand Down
2 changes: 1 addition & 1 deletion include/rovio/ImgUpdate.hpp
Expand Up @@ -985,7 +985,7 @@ ImgOutlierDetection<typename FILTERSTATE::mtState>,false>{
const double t1 = (double) cv::getTickCount();
candidates_.clear();
for(int l=endLevel_;l<=startLevel_;l++){
meas.aux().pyr_[camID].detectFastCorners(candidates_,l,fastDetectionThreshold_);
meas.aux().pyr_[camID].detectFastCorners(candidates_,l,fastDetectionThreshold_, mpMultiCamera_->cameras_[camID].valid_radius_);
}
const double t2 = (double) cv::getTickCount();
if(verbose_) std::cout << "== Detected " << candidates_.size() << " on levels " << endLevel_ << "-" << startLevel_ << " (" << (t2-t1)/cv::getTickFrequency()*1000 << " ms)" << std::endl;
Expand Down

0 comments on commit 37798d8

Please sign in to comment.