The Arithmetic Filter will perform simple mathematical operations on the image.
The Arithmetic Filter tool.
Filter Type
This contains the types of operations than can be performed on the image. Minimum will replace the pixel with the minimum value in the window size. Maximum will replace the pixel with the maximum value in the window size. Median and mean will replace the pixel with the median or mean value in the window size.
Filter window size
This is the size of the window (in pixels) to use in the calculation of the new pixel value.