-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5.2c.cpp
More file actions
33 lines (22 loc) · 798 Bytes
/
5.2c.cpp
File metadata and controls
33 lines (22 loc) · 798 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
// Part5.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include <iostream>
#include <cxcore.h>
#include <cv.h>
#include <_highgui.h>
int main()
{
//##################################################################################
// упражнение 5.2
IplImage* Picture = cvCreateImage(cvSize(100, 100), IPL_DEPTH_8U, 1);
cvZero(Picture);
cvSet2D(Picture, 50, 50, cvScalarAll(255));
// упражнение 5.2.с
cvSmooth(Picture, Picture, CV_GAUSSIAN, 5, 5);
cvSmooth(Picture, Picture, CV_GAUSSIAN, 5, 5);
cvNamedWindow("Square", CV_WINDOW_AUTOSIZE);
cvShowImage("Square", Picture);
cvWaitKey(0);
cvDestroyWindow("Square");
getchar();
}