QUESTION :
Write a script in MATLAB to perform an average blur without using any inbuilt function
Write a script in MATLAB to perform an average blur without using any inbuilt function
![OUTPUT](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL_N4yoMlyMi2h8Wou6gHQWWREpSa6BmplrycxSAc1bh9yHf3dzuDAcFVj27nFhgAcR_vY_FLq6GqaV8Okj2IKh0E63o4cK3Paujve_D3s6PxMlPEHa4AGYK-q4cuI2M-JMXQwd8f3qgs/s640/Screen+Shot+2015-11-12+at+3.28.26+PM.png)
Try the average blur with a 5*5 kernel .
The Method will be the same , the only change will be that the amount of blurring will be increased .
So on increasing the size of the kernel will result in increased blurring .
There is a lot of material on the basics of masking on the web .
Go through them to understand what the mask will be and why the kernel is a square matrix of of size 3*3 , 5*5 , 7*7 and not 2*2 or 4*4 . Try to figure out the reason for having a zero padding as well .
** For those who do not have access to MATLAB ( extremely expensive !!! ) , i will be releasing similar code in OpenCV soon . **
No comments:
Post a Comment