Tag Archives: cvDrawContours

Image Contour detection and display using OpenCV

In this example we threshold the image based on the position of the track bar. Then find contours on the image an display the contours as white lines. #include “stdafx.h” #include “cv.h” #include “highgui.h” // global variables IplImage* input = NULL; IplImage* gray = NULL; int threshold = 100; CvMemStorage*… Read more »