Nodes/comfyui_cv/cv2.getDerivKernels
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.getDerivKernels
    • kx
    • ky
    dx0
    dy0
    ksize0
    normalizetrue
    ktypeCV_32F
    Categoryimage/CV/low-level/cv2 G

    Inputs (5)

    NameTypeDefaultDescription
    dxINT0-2147483648–2147483647Derivative order in respect of x.
    dyINT0-2147483648–2147483647Derivative order in respect of y.
    ksizeINT0-2147483648–2147483647Aperture size. It can be FILTER_SCHARR, 1, 3, 5, or 7.
    normalizeoptBOOLEANtrueFlag 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).
    ktypeoptCOMBOCV_32FType of filter coefficients. It can be CV_32f or CV_64F .

    Outputs (2)

    NameTypeDescription
    kxNPARRAY
    kyNPARRAY