ComfyUI Node
cv2.Laplacian
Raw wrapper of cv2.Laplacian(src, ddepth, ksize?, scale?, delta?, borderType?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.Laplacian
- src
- nparray
◄ddepthsame as input►
◄ksize1►
◄scale1.0000►
◄delta0.0000►
◄borderTypeBORDER_DEFAULT►
Categoryimage/CV/low-level/cv2 L
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| src | NPARRAY,IMAGE,MASK | Source image. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| ddepth | COMBO | same as input | Desired depth of the destination image, see "combinations". |
| ksizeopt | INT | 1-2147483648–2147483647 | Aperture size used to compute the second-derivative filters. See #getDerivKernels for details. The size must be positive and odd. Preset to the OpenCV default (1). |
| scaleopt | FLOAT | 1.0000-1e+38–1e+38 | Optional scale factor for the computed Laplacian values. By default, no scaling is applied. See #getDerivKernels for details. Preset to the OpenCV default (1.0). |
| deltaopt | FLOAT | 0.0000-1e+38–1e+38 | Optional delta value that is added to the results prior to storing them in dst . Preset to the OpenCV default (0.0). |
| borderTypeopt | COMBO | BORDER_DEFAULT | Pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |