import cv2 as cv
import numpy as np

def bi_demo(image): #高斯双边模糊,可以去除无关噪声,并且保持较好的边缘信息
dst = cv.bilateralFilter(image, 0, 100, 15)
cv.imshow(“bi_demo”, dst)

def shift_demo(image): #均值迁移
dst = cv.pyrMeanShiftFiltering(image, 10, 50)
cv.imshow(“shift_demo”, dst)

print("-----------helli python--------------")
src = cv.imread(“E:/image/girl.jpg”)
cv.namedWindow(“input image”, cv.WINDOW_AUTOSIZE)
cv.imshow(“input image”, src)
shift_demo(src)
cv.waitKey(0)

cv.destroyAllWindows()

python-opencv--边缘保留滤波(EPF)

python-opencv--边缘保留滤波(EPF)

python-opencv--边缘保留滤波(EPF)

相关文章:

  • 2021-05-03
  • 2021-07-25
  • 2022-12-23
  • 2021-10-26
  • 2022-02-10
  • 2021-04-18
  • 2022-02-28
  • 2022-02-02
猜你喜欢
  • 2022-01-24
  • 2021-09-17
  • 2021-06-29
  • 2022-12-23
  • 2021-07-30
  • 2021-09-28
  • 2022-12-23
相关资源
相似解决方案