The Maximum filter is used, similar to the minimum filter, to eliminate isolated, faulty pixels. Each pixel is replaced with its neighbour with the highest gray or color value. The size of the neighbourhood is defined by the filter size. The examined area is square.
The maximum filter lightens the image a little bit.