简体   繁体   中英

How to create cvSobel function using opencv

I am studying about opencv and I am using ver 2.4.10 and VS2010 And I have used cvSobel function.

I want to make that function. Because I will input another element in that function, called isotropic sobel operator.

Please help me how to make that cvSobel function. I tried to make and find but, I couldn't make and find. Or tell me to apply kernel on image.

cvSobel(src,dst,xorder,yorder,int aparture_size=3);

What I really want is to apply following matrix

{{-1,0,1},{-sqrt(2.0),0,sqrt(2.0)},{-1,0,1}}

您可以使用SepFilter2D创建和应用所需的过滤器内核 - 您的内核是可分离的,或者filter2D用于常见情况

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM