preprocess.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:Magic-Pixel 作者: zhwhong 项目源码 文件源码
def bilateralFilter(srcpath, dstpath):
    img = cv2.imread(srcpath, 0)
    # 9---??????
    # ??????????????????????????
    blur = cv2.bilateralFilter(img,9,75,75)
    # cv2.imwrite(dstpath, blur)
    plt.subplot(1,2,1),plt.imshow(img,'gray')
    plt.subplot(1,2,2),plt.imshow(blur,'gray')
    plt.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号