c++ - Open cv , Run code in tutorial of Finding contours in your image? -
i'm starting learn how use opencv libraries. i've downloaded , installed opencv 2.4.10 , , have run example " in tutorial of finding contours in image " using visual studio 2010. code compiles, every time run it, crashes, and showing error in image link following message: windows has triggered breakpoint in edgedetection.exe. this may due corruption of heap, indicates bug in >edgedetection.exe or of dlls has loaded. this may due user pressing f12 while edgedetection.exe has focus. the output window may have more diagnostic information. i don't know, reason.here's offending code: #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <iostream> #include <stdio.h> #include <stdlib.h> using namespace cv; using namespace std; mat src; mat src_gray; int thresh = 100; int max_thresh = 255; rng rng(12345); /// function header void thresh_callback(int, void* )...