MCPcopy Create free account
hub / github.com/Unsigned-Long/iKalibr / InImageBorder

Method InImageBorder

src/core/feature_tracking.cpp:294–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294bool FeatureTracking::InImageBorder(const cv::Point2f& pt, const cv::Mat& img, int borderSize) {
295 int col = img.cols, row = img.rows;
296 int imgX = cvRound(pt.x), imgY = cvRound(pt.y);
297 return borderSize <= imgX && imgX < col - borderSize && borderSize <= imgY &&
298 imgY < row - borderSize;
299}
300
301std::pair<cv::Mat, FeatureMap> FeatureTracking::MakeTrackedFeatUniform(
302 const FeatureMap& feats,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected