Box Image Filter is a low-pass filter that smooths the image by making each output pixel the average of the surrounding ones, removing details, noise and and edges from images.
Input | Window size | Output |
---|---|---|
![]() | 5x5 | ![]() |
Box image filter is implemented as a convolution operation on the input image using the following kernel:
\[ box_{m,n} = \frac{1}{mn} \begin{bmatrix} 1 & 1 & \dots & 1 \\ 1 & 1 & \dots & 1 \\ \vdots & \vdots & \ddots & \vdots \\ 1 & 1 & \dots & 1 \end{bmatrix}_{m \times n} \]
Box image filter is currently implemented using separable image convolver if it satisfies \(max(m,n) \geq 7\) and the input characteristics (size and/or type) satisfies its constraints.
If \(max(m,n) < 7\) it'll use image convolver if input characteristics satisfies its constraints, or else the operation will fail.