且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

梯度角度的Sobel算子

更新时间:2022-01-20 02:51:02

您可以找到图像的x导数,然后是y导数.

You can find x derivative of image, then y derivative.

Sobel(Img,gxx,CV_32FC1,1,0); //  x derivative
Sobel(Img,gyy,CV_32FC1,0,1); //  y derivative

在那之后找到阶段 http://docs.opencv.org/modules/core/doc/Operations_on_arrays.html#phase

phase(gxx,gyy,angles,inDegrees);