SOLVED : Floating point exception with cv::Mat (opencv)
HAD AN ERROR IN MY CODE. NOT INITIALIZING THE TRACKER WITH A CALIBRATION MATRIX.
Hello Pavel,
I get a float point exception when applying the marker detection on cv::Mat. I was able to successfully do the same in the 2.1.x version.
Below: Error message and code
Thank you for any inputs.
/******
I get a floating point exception at src/core/
I am attaching the debugger output for reference.
0x00007ffff7ba124b in ARToolKitPlus:
image=
at src/core/
110 dCorrLeftY = ((vignetting.
/******
CODE:
/******
/******
#include <iostream>
#include <ARToolKitPlus/
#include <cv.h>
#include <highgui.h>
int main( int argc, char **argv )
{
ARToolKitPl
vector<int> markerId;
cv:
capture.open( atoi(argv[1]) );
cv::Mat frame, gray;
tracker-
tracker-
tracker-
tracker-
tracker-
tracker-
while ( cv::waitKey(2) < 0 )
{
/// Opencv capture in BGR format.
capture >> frame;
markerId = tracker->calc( (gray.data) );
cv::imshow( "Video", frame);
for (unsigned int i=0 ; i<markerId.size() ; i++)
{
cout << markerId[i] << " ";
}
}
delete tracker;
return 0;
}
/******
/******
/******
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Anant Vemuri
- Solved:
- Last query:
- Last reply: