Motion blur filter
Applying motion blur to an image is reduced to a convolution of the filter on the image. Examples of 5 * 5 filters are shown below.
The larger the filter size, the greater the motion blur effect. In addition, direction 1 on the filter screen is the direction of the desired movement. To set motion blur in a specific direction of a vector, such as diagonally, simply place 1 along the vector to create a filter.
Consider the following image of a car. P >
Code: Python code to apply motion blur to an image.
Vertical blur: strong>