Hi Everybody,
I am using the fantastic ofxCv add-on by Kyle McDonald in a project which I am now switching from Mac to Windows.
Using the contourFinder crashes the program on Windows, on Mac it works like a charm.
Even with the example provided with the add-on crashes.
This is the error Visual Studio throws at me:
map/set iterator not incrementable
Now according to the debugger the problem should be in these lines of code that can be found in the file Tracker.h in the ofxCv add-on around line 334.
std::map<unsigned int, cv::Rect>::iterator smoothedItr;
for(smoothedItr = smoothed.begin(); smoothedItr != smoothed.end(); smoothedItr++) {
unsigned int label = smoothedItr->first;
if(!existsCurrent(label)) {
smoothed.erase(smoothed.find(label));
}
}
Now if I comment out the smoothed.erase part in the if statement everything works fine.
But that is not the solution off course.
If anybody knows how to deal with this kind of problem, it would be great to get this fixed.
I am using Visual Studio 2010/oF version 0.7.4/Windows 8
Thanks so much for the help,
Cheers,
Wim