Professional Documents
Culture Documents
5. Smoothing
www.uralvision.blogspot.com perevalovds@gmail.com
USU / IMM Fall 2010
Smoothing
The most frequently used function for smoothing is
void GaussianBlur(Const Mat & src //Input image
Mat & dst //Output image
Size ksize //Size of the smoothing window
double sigmaX //Parameters of the Gaussian
double sigmaY= 0
int borderType= BORDER_DEFAULT) //how to work with
//boundaries
http://www.innocentenglish.com/funny-pics/best-pics/stairs-sidewalk-art.jpg
Smoothing
Other functions that perform smoothing:
medianBlur - Median filtering
blur - Smoothing of the square window (averaging)
filter2D - Smoothing with any filter, represented as a matrix
1. As a picture that should wash out - to select the image object whose name begins with
the first letter of your last name.
1. Images stored on the disc in one folder in the format. Bmp, with names
image000.bmp, image001.bmp, ....
The result represented as a cpp-file as well as the input and output images.
Name of the object on the input image must begin with the first letter of your last name.
Practical Task 3
Clarification of how to do
1.0 / N * image [0] + 1.0 / N * image [1] + ... + 1.0 / N * image [N-1];