Go to the documentation of this file.
9 #include <torch/torch.h>
10 #include <opencv2/opencv.hpp>
14 #ifdef EIGEN_MPL2_ONLY
15 #undef EIGEN_MPL2_ONLY
25 std::vector<torch::Tensor>
forward(torch::Tensor
x);
51 SPDetector(
const std::string & modelPath,
float threshold = 0.2
f,
bool nms =
true,
int minDistance = 4,
bool cuda =
false);
53 std::vector<cv::KeyPoint>
detect(
const cv::Mat &
img,
const cv::Mat &
mask = cv::Mat());
54 cv::Mat
compute(
const std::vector<cv::KeyPoint> &keypoints);
GLM_FUNC_DECL genIType mask(genIType const &count)
std::vector< cv::KeyPoint > detect(const cv::Mat &img, const cv::Mat &mask=cv::Mat())
std::shared_ptr< SuperPoint > model_
SPDetector(const std::string &modelPath, float threshold=0.2f, bool nms=true, int minDistance=4, bool cuda=false)
cv::Mat compute(const std::vector< cv::KeyPoint > &keypoints)
void SetNMS(bool enabled)
void setMinDistance(float minDistance)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
void setThreshold(float threshold)
std::vector< torch::Tensor > forward(torch::Tensor x)
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:22