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