-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5.1.cpp
More file actions
30 lines (21 loc) · 791 Bytes
/
5.1.cpp
File metadata and controls
30 lines (21 loc) · 791 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
// Part5.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include <iostream>
#include <cxcore.h>
#include <cv.h>
#include <_highgui.h>
int main()
{
//##################################################################################
// упражнение 5.1
IplImage* Picture = cvLoadImage("../Part3/picture/88.png");
cvSmooth(Picture, Picture, CV_GAUSSIAN, 3, 3);
cvSmooth(Picture, Picture, CV_GAUSSIAN, 5, 5);
cvSmooth(Picture, Picture, CV_GAUSSIAN, 9, 9);
cvSmooth(Picture, Picture, CV_GAUSSIAN, 11, 11);
cvNamedWindow("Square", CV_WINDOW_AUTOSIZE);
cvShowImage("Square", Picture);
cvWaitKey(0);
cvDestroyWindow("Square");
getchar();
}