ComfyUI Node
cv2.getStructuringElement
Raw wrapper of cv2.getStructuringElement(shape, ksize, anchor?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.getStructuringElement
- ksize
- anchor
- nparray
◄shapeMORPH_ELLIPSE►
Categoryimage/CV/low-level/cv2 G
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| shape | COMBO | MORPH_ELLIPSE | Element shape that could be one of #MorphShapes |
| ksize | CV_TUPLE | 3,3 | Size of the structuring element. One value with 2 components (x, y) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place. |
| anchoropt | CV_TUPLE | -1,-1 | Anchor position within the element. The default value $(-1, -1)$ means that the anchor is at the center. Note that only the shape of a cross-shaped element depends on the anchor position. In other cases the anchor just regulates how much the result of the morphological operation is shifted. One value with 2 components (x, y) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |