Ask Your Question

RunTime Error at cornerSubPix call

asked 2014-03-21 08:10:20 -0600

lasandcris gravatar image

Hi guys,

I'm compiling a .dll (plugin) for a compositing software called Eyeon Fusion. I'm using the goodFeatureToTrack call and everything seems to be fine with generating the feature tracks etc.

The problem I'm having is when I introduce the cornerSubPix call. In all circumstances it has returned a RunTime Error and I've run out of the possibilities of what could go wrong.

I'm using Visual Studio 2008 as my compiler and I have also compiled the cmake file. Also, I'm using openCV 2.4.5.

Did anyone have any problems like this before and managed to solve it? Any suggestion would be appreciated.



This is the code snippet that causes the problem:

Size winSize = Size( 5, 5 );

Size zeroZone = Size( -1, -1 );

TermCriteria criteria = TermCriteria( CV_TERMCRIT_EPS + CV_TERMCRIT_ITER, 40, 0.001 );

cornerSubPix(EightBitSingle, cornersA, winSize, zeroZone, criteria);

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-03-24 05:54:24 -0600

lasandcris gravatar image

In case anyone has similar issues, the problem was in the depth conversion of the image used in the cornerSubPix function. It seem to be fine when a single channel image is used.

edit flag offensive delete link more

Question Tools


Asked: 2014-03-21 08:10:20 -0600

Seen: 613 times

Last updated: Mar 24 '14