ComfyUI Node
cv2.Scharr
Raw wrapper of cv2.Scharr(src, ddepth, dx, dy, scale?, delta?, borderType?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.Scharr
- src
- nparray
◄ddepthsame as input►
◄dx0►
◄dy0►
◄scale1.0000►
◄delta0.0000►
◄borderTypeBORDER_DEFAULT►
Categoryimage/CV/low-level/cv2 S
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| src | NPARRAY,IMAGE,MASK | input 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 | output image depth, see "combinations" |
| dx | INT | 0-2147483648–2147483647 | order of the derivative x. |
| dy | INT | 0-2147483648–2147483647 | order of the derivative y. |
| scaleopt | FLOAT | 1.0000-1e+38–1e+38 | optional scale factor for the computed derivative 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 | — |