SIFT detectAndCompute works but throws an error

asked 2019-10-25 06:55:01 -0600

Dimitar Veljanovski gravatar image

updated 2019-10-25 07:19:01 -0600

In my real time image tracking solution, whenever i am calling detectAndCompute i get an exception thrown.

The exception doesnt crash the program, and the tracking still works (on my machine) but due to the fact that it is constantly throwing the exception, I am seeing some major performance setbacks. Here is the exception:

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

Here is my SIFT algorithm declaration:

cv::Ptr<cv::xfeatures2d::SIFT> algo = cv::xfeatures2d::SIFT::create(150, 8, 0.04, 8, 1.6);

I tried printing the exception to get details with a try-catch clause but it didnt give me any info. Here is the line that throws this exception:

algo->detectAndCompute(frame, mask, keypoints2, descriptors2, false);
edit retag flag offensive close merge delete

Comments

1

If you can add the complete code it will be more clear

Kitnos gravatar imageKitnos ( 2019-10-25 07:13:47 -0600 )edit

@Kitnos What exactly do you need?

Dimitar Veljanovski gravatar imageDimitar Veljanovski ( 2019-10-25 07:16:23 -0600 )edit
2

How do you get/calculate : frame, mask, keypoints2 and descriptors2.

Kitnos gravatar imageKitnos ( 2019-10-25 07:32:58 -0600 )edit
1

opencv version ? using prebuilt libs ?

berak gravatar imageberak ( 2019-10-25 08:18:10 -0600 )edit

frame is just a cv::Mat image (from camera feed), and the mask is generated with FAST keypoints with runByPixelMask(). keypoints and descriptors need to be filled up by the function i am calling.

Dimitar Veljanovski gravatar imageDimitar Veljanovski ( 2019-10-25 08:24:43 -0600 )edit

@berak im using 3.4.2, and i am not using any prebuild librariest outside of OpenCV (the ones that were in the install after the cmake build)

Dimitar Veljanovski gravatar imageDimitar Veljanovski ( 2019-10-25 08:45:46 -0600 )edit
1

If you can't share your code try to test it on another computer. Maybe the memory capacity of the computer you are using are low.

Kitnos gravatar imageKitnos ( 2019-10-25 09:37:38 -0600 )edit
1