OpenCV功能FAST未在源代码中实现
OpenCV feature FAST not implemented in source code
我正在尝试在C++中使用OpenCV 3.1实现FAST特征检测/描述计算。
我的代码:
Ptr<cv::FastFeatureDetector> fast = cv::FastFeatureDetector::create();
fast->detectAndCompute(img1, Mat(), keypoints1, desc);
但是当我应用检测和计算时,我得到一个错误。调试后,我看到在源文件(features2d.cpp)中,这必须抛出并出错:
//[In source file features2d.cpp]
/* Detects keypoints and computes the descriptors */
void Feature2D::detectAndCompute( InputArray, InputArray,
std::vector<KeyPoint>&,
OutputArray,
bool )
{
CV_Error(Error::StsNotImplemented, "");
}
为什么没有实施?我有没有另一种方式使用 FAST?
您还可以在 openCV 中创建特征检测器通用指针并使用它。
cv::Ptr<cv::FeatureDetector> detectorPFast= FeatureDetector::create("PyramidFAST");
std::vector<KeyPoint> keypointsPFast1;
detectorPFast->detect( src, keypointsPFast1 );
FAST 只是一个特征检测器,没有要计算的描述符。因此,您只需要调用:
fast->detect(img1, keypoints1);
相关文章:
- 如果没有malloc,链表实现将失败
- 在Linux中哪里可以找到互斥、未来等的源代码
- 如何在c++中实现处理器调度模拟器
- 如何在c++中使用引用实现类似python的行为
- 实现无开销push_back的最佳方法是什么
- 使用简单类型列表实现的指数编译时间.为什么
- 如果编译的源代码是特定于它编译的硬件的,我们如何分发它
- 如何在BST的这个简单递归实现中消除警告
- 使用cmake从源代码构建MySQL连接器/C++失败(与以前的声明冲突)
- 实现一个在集合上迭代的模板函数
- 我应该实现右值推送功能吗?我应该使用std::move吗
- 如何正确实现和访问运算符的各种自定义枚举器
- C++Union/Struct位域的实现和可移植性
- Linux 源代码中普通磁盘文件的"轮询"功能在哪里实现?
- 我有一个AA树C 实现源代码,我需要将该代码放入Win32 C 中
- 内部源代码 - 在链接列表实现中插入元素上的删除会破坏整个应用程序
- OpenCV功能FAST未在源代码中实现
- 如何在python中实现这个C++源代码
- leveldb 源代码,为什么 db_impl.cc 实现纯虚函数"DB::Delete"
- 实现一个将数字转换为文本的源代码(c++)