Original Image
Mean Filtering
Kernel 1:
1 1 1
1 1 1
1 1 1
Kernel 2:
-1 -1 -1
-1 8 -1
-1 -1 -1
Kernel 3:
1 2 1
2 4 2
1 2 1
Kernel 4:
1 0 0
0 1 0
0 0 1
Kernel 5:
0 -1 0
-1 5 -1
0 -1 0
Comparison:
- Out of all kernels, kernel 1 produced the smoothest and clearest image. It's color is also closest to the original image.
- Kernel 2 produced the image with most noise. Also it's color changed the most as compared to the other kernels.
- Kernel 3 produced a somewhat smooth image but the color of the original image changed.
- 4th and 5th kernel resulted in smooth but very dark images. Kernel 5 gave the darkest image out of all.
Median Filtering
Kernel 1:
1 1 1
1 1 1
1 1 1
Kernel 2:
-1 -1 -1
-1 8 -1
-1 -1 -1
Kernel 3:
1 2 1
2 4 2
1 2 1
Kernel 4:
1 0 0
0 1 0
0 0 1
Kernel 5:
0 -1 0
-1 5 -1
0 -1 0
Comparison:
- All images, except kernel 4 and 5, gave good results which is a smooth image.
- Kernel 1 is the most similar to the original image.
- Kernel 2's colors are the most different as compared to the other kernels (image negative)
- Kernel 1 and 2 gave the smoothest results.
- There are still a few grains and noise in kernel 3.
- The original image is no longer visible in kernel 4 and 5. It only resulted in a black image.