A 4x4 image is given by:
a. Filter the image using a Median filter (after replicate-padding), where the filter mask is given by:
b. Filter the image using a Min filter (after replicate-padding) using the same filter mask as in (a).
c. Filter the image using a Max filter (after replicate-padding) using the same filter mask as in (a).
d. Filter the image using an Order Statistics filter (after replicate padding) using the same filter mask as in (a). The weighting vector of the order statistics filter is defined as 111.
Round the resulting pixels to integers.