1. Opencv Workshop
S2
Image processing Module (imgproc)
PS: The snippets of code are really basic just to show the concept, you can ameliorate it by adding
Some exception handling for example or make the values of thresholding more accurate..
it is just a hint
PS_2: I will put the image belong to template matching in the end of the presentation to test with it
2. Do You remember?
●
Imread
→ read image from file
Mat imread(const string& filename, int flags=1 )
●
namedWindows
→ Create an window
namedWindow(const string& winName, CV_WINDOW_AUTOSIZE )
●
ImShow
→ show the image in a windows
Void imshow(const string& winame, InputArray mat)
3. ●
Circle
→ void circle(Mat& img, Point center, int radius, const Scalar& color, int thickness=1, int
lineType=8, int
●
Line
→ void line(Mat& img, Point pt1, Point pt2, const Scalar& color, int thickness=1, int
lineType=8, int shift=0)
●
rectangle
→ void rectangle(Mat& img, Point pt1, Point pt2, const Scalar& color, int thickness=1, int
lineType=8, int shift=0)