2019-07-13(day031_Mat模板类:(Mat_(rows, cols) << v1, v2, v3, ......, vn);,其中n==rows * cols 边缘提...
pythonimportcv2ascvimportnumpyasnpimg=cv.imread('../images/test.jpg')h,w=img.shape[0:2]grad_x=cv.Sobel(img,cv.CV_32F,1,0)grad_y=cv.Sobel(img,cv.CV_32F,0,1)grad_x=cv.convertScaleAbs(grad_x)grad_y=cv.co