Start » Filter Reference » OpenCV » Image Filtering » cvGetDerivKernels
Module: | OpenCV |
---|
Returns filter coefficients for computing spatial image derivatives.
Applications
Prepares matrices to be used with cvSepFilter2D or cvFilter2D.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inDX | Integer | 0 - ![]() |
Derivative order in respect of x. |
![]() |
inDY | Integer | 0 - ![]() |
Derivative order in respect of y. |
![]() |
inKSize | Integer | -1 - 7 | Aperture size. It can be CV_SCHARR(-1), 1, 3, 5, or 7. |
![]() |
inNormalize | Bool | Flag indicating whether to normalize [scale down] the filter coefficients or not. | |
![]() |
outKX | Matrix | Output matrix of row filter coefficients. | |
![]() |
outKY | Matrix | Output matrix of column filter coefficients. |
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 parameter must be CV_SCHARR(-1), 1, 3, 5 or 7 in cvGetDerivKernels. |
DomainError | Sum of inDX and inDY must be greater than 0 in cvGetDerivKernels. |
Complexity Level
This filter is available on Basic Complexity Level.