-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6.4.cpp
More file actions
34 lines (23 loc) · 797 Bytes
/
6.4.cpp
File metadata and controls
34 lines (23 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Part6.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include <iostream>
#include <vector>
#include <cxcore.h>
#include <cv.h>
#include <_highgui.h>
static CvMemStorage* storage = 0;
int main()
{
//##################################################################################
// упражнение 6.4
IplImage* src = cvCreateImage(cvSize(200, 200), IPL_DEPTH_8U, 3);
cvZero(src);
for (int i = 20; i < 200; i=i+20)
{
cvCircle(src, cvPoint(100, 100), i, cvScalarAll(255), 1);
}
cvNamedWindow("Square", CV_WINDOW_AUTOSIZE);
cvShowImage("Square", dst);
cvWaitKey(0);
cvDestroyWindow("Square");
}