Ask Your Question
1

max ksize for sobel

asked 2018-10-24 10:25:01 -0500

alxsm gravatar image

updated 2019-09-13 12:02:04 -0500

Hi!

I have a questión, why the ksize parameter of sobel operator have it's maximum in 7x7?

edit retag flag offensive close merge delete

Comments

Good question!

sjhalayka gravatar imagesjhalayka ( 2018-10-24 10:32:11 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2018-10-24 14:18:43 -0500

LBerger gravatar image

updated 2018-10-24 14:19:24 -0500

Source code is here getDeriveKernels is used size can be

ksize: Aperture size. It can be CV_SCHARR, 1, 3, 5, or 7.

but reading source code carrefully you will find that getSobelKernels is called (by getDeriveKernels) and then ksize

The kernel size must be odd and not larger than 31

edit flag offensive delete link more

Comments

yes, you are totally right, does python work the same way?

alxsm gravatar imagealxsm ( 2018-10-24 14:46:12 -0500 )edit

@alxsm , -- yes.

berak gravatar imageberak ( 2018-10-24 18:48:24 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-10-24 10:25:01 -0500

Seen: 341 times

Last updated: Oct 24 '18