Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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?

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

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?

NOTE: One of the reasons this question was posed is that there are comments that indicate that Sobel does indeed roll over to Scharr in this case. I did not find the docs (quoted above)to be clear on the subject, which may be the reason for the contradictory info. The followup reply by Berak (now deleted for some reason?) does cite Scharr options within Sobel functions, but I did not see any specifics regarding 'rollover' to Scharr, as implied by the quoted docs above.

So I'm not sure why this query shows as 'deleted' at the moment.