SIFT detectAndCompute 抛出 ipp 异常

SIFT detectAndCompute throws an ipp exception

在我的实时图像跟踪解决方案中,每当我调用 detectAndCompute 时都会抛出异常。

异常不会使程序崩溃,并且跟踪仍然有效(在我的机器上),但由于它不断抛出异常,我看到了一些重大的性能挫折。这是例外情况:

Exception thrown at 0x00007FFF0FBEA839 in OpenCV2.exe: Microsoft C++ exception: ipp::IwException at memory location 0x0000004CB72FC5C8.

我尝试打印异常以使用 try-catch 子句获取详细信息,但它没有给我任何信息。这是抛出此异常的行:

algo->detectAndCompute(frame, mask, keypoints2, descriptors2, false);

这是无害的,参见示例 https://github.com/opencv/opencv/issues/9718

如果您 运行 您的代码在调试器之外,您将看不到异常打印输出。