Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » OpenCV » Image Filtering » cvSobel

cvSobel


Module: OpenCV

Calculates the first, second, third or mixed image derivatives using an extended Sobel operator.

Name Type Description
inSrc Image Source image.
inDDepth Integer* Destination image depth.
inXOrder Integer Order of the derivative x.
inYOrder Integer Order of the derivative y.
inKSize Integer Size of the extended Sobel kernel. It must be 1, 3, 5, or 7.
inScale Real Scale factor for the computed derivative values.
inDelta Real Delta value that is added to the results prior to storing them in dst.
inBorderType CvBorderType Pixel extrapolation method.
outDst Image Output image.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError inKSize must be 1, 3, 5 or 7 in cvSobel.
DomainError Input image must have pixel type different from Int8 and Int32 in cvSobel.
DomainError Input image must not be empty in cvSobel.

Complexity Level

This filter is available on Basic Complexity Level.