IwException from KAZE

asked 2017-08-30 14:09:50 -0500

senortres gravatar image

updated 2017-08-30 14:25:33 -0500

I'm seeing exceptions thrown by Intel's IPP while doing a feature detection using a KAZE algorithm object's detect() call. The exception occurs while executing \modules\features2d\src\kaze\KAZEFeatures.cpp's KAZEFeatures::Create_Nonlinear_Scale_Space(), where it starts building Gaussian blurs for its scale space, specifically this line (currently line 104 in rev 73c3d14):

gaussian_2D_convolution(evolution_[0].Lt, evolution_[0].Lt, 0, 0, options_.soffset);

This makes its way down into the imgproc module and then IPP where iwiFilterGaussian() returns an IppStatus of 'ippStsInplaceModeNotSupportedErr (-9997)' which causes it to throw an IwException w/that value. I believe that status is iwiFilterGaussian() signaling that its pSrcImage and pDstImage inputs can't be the same (for an 'in-place' blur in pSrcImage).

My KAZE output appears reasonable despite this--I'm getting keypoints, and they look good--I'm just fearful that one or more failed blurs could be introducing unnecessary noise and keeping the algorithm from its full potential.

I was about to write up a bug report on it, but I wasn't sure if it was my fault...maybe something in my build settings, so I figured I'd ask first. Here's everything I can find in my cmake setup related to IPP...most/all should be at default:

BUILD\BUILD_IPP_IW=true

BUILD\BUILD_WITH_DYNAMIC_IPP=false

If someone can think of something I've maybe hosed myself let me know, I'll fix...otherwise I'll write up an issue (I'm guessing it can always get canceled if not a bug).

edit retag flag offensive close merge delete

Comments

Can you give your code? If no can you reproduce exception with this code changing AKAZE in KAZE?

LBerger gravatar imageLBerger ( 2017-08-30 14:18:05 -0500 )edit

Oh yeah good idea, so I ran the tutorial. I get the same exceptions. Switching it back to using AKAZE, the exception doesn't occur. Note I'm getting these in debug build targets in a debugger...I imagine these would get silently dropped in release builds.

senortres gravatar imagesenortres ( 2017-08-30 15:58:59 -0500 )edit

What is your opencv version and platform ? I known some problem in 3.2 using ipp. now there is no problem in 3.3

LBerger gravatar imageLBerger ( 2017-08-31 01:36:02 -0500 )edit

Thanks, I didn't know about that. I wonder what the problem was. I'm running 3.3.0 in windows (win10, sort of forced to).

senortres gravatar imagesenortres ( 2017-08-31 10:55:38 -0500 )edit

Have you post an issue?

LBerger gravatar imageLBerger ( 2017-09-01 06:44:05 -0500 )edit

Done, https://github.com/opencv/opencv/issu... , thanks for the help.

senortres gravatar imagesenortres ( 2017-09-14 11:46:38 -0500 )edit