Code:
A = imread(‘cameraman.jpg’); %needs image file
“cameraman.jpg”
integral = integralImage(A); %computing the integral image
avg = integralKernel([1
1 7 7], 1/49); %applying 7-by-7 avg
filter
blur = integralFilter(integral, avg);
blur = uint8(blur);
imshow(blur); %displaying blur image
Output:
Original Image Blurred Image Using Averaging Filter
No comments:
Post a Comment