ComfyUI Node
cv2.getDerivKernels
Raw wrapper of cv2.getDerivKernels(dx, dy, ksize, normalize?, ktype?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.getDerivKernels
- kx
- ky
◄dx0►
◄dy0►
◄ksize0►
◄normalizetrue►
◄ktypeCV_32F►
Categoryimage/CV/low-level/cv2 G
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| dx | INT | 0-2147483648–2147483647 | Derivative order in respect of x. |
| dy | INT | 0-2147483648–2147483647 | Derivative order in respect of y. |
| ksize | INT | 0-2147483648–2147483647 | Aperture size. It can be FILTER_SCHARR, 1, 3, 5, or 7. |
| normalizeopt | BOOLEAN | true | Flag indicating whether to normalize (scale down) the filter coefficients or not. Theoretically, the coefficients should have the denominator $=2^{ksize*2-dx-dy-2}$. If you are going to filter floating-point images, you are likely to use the normalized kernels. But if you compute derivatives of an 8-bit image, store the results in a 16-bit image, and wish to preserve all the fractional bits, you may want to set normalize=false . Preset to the OpenCV default (True). |
| ktypeopt | COMBO | CV_32F | Type of filter coefficients. It can be CV_32f or CV_64F . |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| kx | NPARRAY | — |
| ky | NPARRAY | — |