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

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.getStructuringElement
  • ksize
  • anchor
  • nparray
shapeMORPH_ELLIPSE
Categoryimage/CV/low-level/cv2 G

Inputs (3)

NameTypeDefaultDescription
shapeCOMBOMORPH_ELLIPSEElement shape that could be one of #MorphShapes
ksizeCV_TUPLE3,3Size 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.
anchoroptCV_TUPLE-1,-1Anchor 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)

NameTypeDescription
nparrayNPARRAY