Skip to content

Commit

Permalink
fix warning in map_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
hrnr committed Jan 3, 2021
1 parent ae92dec commit 74c0416
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions map_merge/src/combine_grids/estimation_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

#include <combine_grids/merging_pipeline.h>

#include <cassert>

#include <opencv2/core/utility.hpp>
#include <opencv2/features2d.hpp>
#include <opencv2/imgcodecs.hpp>
Expand All @@ -65,6 +67,9 @@ static inline cv::Ptr<cv::Feature2D> chooseFeatureFinder(FeatureType type)
return cv::AKAZE::create();
#endif
}

assert(false);
return nullptr;
}

static inline void writeDebugMatchingInfo(
Expand Down
2 changes: 1 addition & 1 deletion map_merge/src/combine_grids/merging_pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ bool MergingPipeline::estimateTransforms(FeatureType feature_type,
for (const cv::Mat& image : images_) {
image_features.emplace_back();
if (!image.empty()) {
computeImageFeatures(finder, image, image_features.back());
cv::detail::computeImageFeatures(finder, image, image_features.back());
}
}

Expand Down

0 comments on commit 74c0416

Please sign in to comment.