Python实现索伯尔算子
Python实现索伯尔算子最近在学习Python,正好用sobel算子练练手,将就看看吧先放原图接着是用Opencv中sobel实现如下:# OpenCV ori_img = cv.imread("C:\\Users\\BLYX\\Desktop\\test\\temple1.jpg") x = cv.Sobel(ori_img[:, :, 0], cv.CV_16S, 1, 0) y = cv.Sobel(ori_img[:, :, 0], cv.CV_16S, 0, 1)
原创
2021-04-04 09:29:31 ·
3447 阅读 ·
1 评论