Ask Your Question
0

Sobel automatically default to Scharr when kernel size == 3?

asked 2018-09-09 04:21:55 -0600

Martian gravatar image

From the OpenCV docs:

Sobel is only an approximation of the derivative). OpenCV addresses this inaccuracy for kernels of size 3 by using the Scharr() function.

Does this mean that calling "Sobel()" with a kernel size of 3 will actually call the Scharr() function internally?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-09-11 23:57:26 -0600

berak gravatar image

so, the answer is:

NO.

IF you want to use the Scharr kernel, specify -1 for the ksize param. else a Sobel kernel of size k is used.

edit flag offensive delete link more

Comments

Why two answers ? I can read only one

LBerger gravatar imageLBerger ( 2018-09-12 01:20:57 -0600 )edit

^^ bug, i'd say. if ppl remove an answer, counter does not decrement

berak gravatar imageberak ( 2018-09-12 01:22:44 -0600 )edit

There is duplicate post list but in @Martian question there is three questions : bug and bug

LBerger gravatar imageLBerger ( 2018-09-12 01:36:46 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-09-09 04:21:55 -0600

Seen: 210 times

Last updated: Sep 11 '18