RunTime Error at cornerSubPix call
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.
Thanks,
Laszlo
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);