opencv python: fuzzy operation

  • Mean blur
  • Median blur
  • Custom fuzzy

The basic principle of fuzzy operation

  1. Based on discrete convolution
  2. Each definition of a good convolution kernel
  3. Different convolution kernel convolution get different effects
  4. Fuzzy is a representation of the convolution

blur

cv2.blur(image, (1, 3))
The second parameter is the size of the convolution kernel

cv2.medianBlur(image, 5): Median blur

Fuzzy value to have a good effect on the dry salt and pepper noise

customize:

Guess you like

Origin www.cnblogs.com/wbyixx/p/12238309.html