Mode Filter
The Mode filter is used to remove noise from an image by replacing pixels with the most frequently occurring pixel value selected from a certain window size.For example, given the grayscale 3x3 pixel window;
22 | 77 | 48 |
150 | 77 | 158 |
0 | 77 | 219 |
Pixels based on frequency:
1 - 0
1 - 22
1 - 48
3 - 77
1 - 150
1 - 158
1 - 219
Thus the center pixel would be left at 77 since 77 is the most frequently occuring value in the list of pixels.
The mode filter (like the median filter) is very effective at removing noise while not destroying sharp edges in an image.
Interface
Instructions
1. Select the window size of the mode filter
Example
Source | Mode |
![]() | ![]() |
See Also
Mean Filter
Median Filter
New Post |
Mode Related Forum Posts | Last post | Posts | Views |
None |