You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidsepConv2D_Y_X(InputArray src, OutputArray dst, int dep, InputArray kernelY, InputArray kernelX, Point anchor=Point(-1,-1), int borderType=BORDER_DEFAULT){
41
+
Mat Y;
42
+
conv2D(src, kernelY, Y, dep, anchor, borderType);
43
+
conv2D(Y, kernelX, dst, dep, anchor, borderType);
44
+
}
45
+
//先进行水平方向的卷积,再进行垂直方向的卷积
46
+
voidsepConv2D_X_Y(InputArray src, OutputArray dst, int dep, InputArray kernelX, InputArray kernelY, Point anchor=Point(-1,-1), int borderType=BORDER_DEFAULT){
47
+
Mat X;
48
+
conv2D(src, kernelX, X, dep, anchor, borderType);
49
+
conv2D(X, kernelY, dst, dep, anchor, borderType);
50
+
}
51
+
//Sobel算子提取边缘信息
52
+
Mat Sobel(Mat &src, int x_flag, int y_flag, intkSize, int borderType){
0 commit comments