1
0
lpo-image-processing/04/do_sprawdzenia/cpp/blur_uniform.cpp

26 lines
425 B
C++
Raw Normal View History

2021-03-20 17:56:06 +01:00
#include "blur_uniform.h"
BlurUniform::BlurUniform(PNM* img) :
Convolution(img)
{
}
BlurUniform::BlurUniform(PNM* img, ImageViewer* iv) :
Convolution(img, iv)
{
}
math::matrix<float> BlurUniform::getMask(int size, Mode)
{
math::matrix<float> mask(size, size);
for (int i=0; i < size; i++)
{
for (int j=0; j < size; j++)
{
mask[i][j] = 1;
}
}
return mask;
}