Debug Assertion Failed When Using Example in OpenCV Sample Code
I have used the sample code (below website) in OpenCV, but I got a "Debug Assertion Failed" when I tried to tune the trackbar.
It occurs when the function returns.
It will be OK when I change the declaration of vectors to global domain.
However it will still pop out the "Debug Assertion Failed" when the program ends.
I think the problem is the destructor of vector, but I don't know how to solve it. Please help me to solve this problem.
By the way, I work in VC 2013 and OpenCV 2.4.8.
Edgar