Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 OpenCV 计算图像中单个特定点的 SURF 特征。我正在使用SurfDescriptorExtractor来提取冲浪特征,但它需要一个关键点数组作为参数,而该参数又是由 SurfFeatureDetector 计算的。有什么方法可以使用SurfDescriptorExtractor计算单点的 SURF 特征?
使用函数来push_back()填充std::vector. cv::Keypoint在您的情况下,此数组仅包含一个元素。您可以使用以下方法从该数组上compute的类中运行函数:SurfDescriptorExtractor
push_back()
std::vector
cv::Keypoint
compute
SurfDescriptorExtractor
void compute( const cv::Mat& image, std::vector<cv::KeyPoint>& keypoints, cv::Mat& descriptors ) const;
注意:第 i 行是关键点 i 的描述符。