Lee
Lee

Reputation: 9

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}}

Upvotes: 1

Views: 158

Answers (1)

MBo
MBo

Reputation: 80187

You can create and apply needed filter kernel using SepFilter2D - your kernel is separable, or filter2D for common case

Upvotes: 1

Related Questions