Nodes/ComfyUI-ArchiGraph/Connected Components With Stats 🐦
ComfyUI Node

Connected Components With Stats 🐦

OpenCV Connected Components With Stats. Labels connected components in a binary image and computes statistics for each component.

By vincentfsΒ·Created 2 years agoΒ·Updated 8 months agoΒ· 3
Connected Components With Stats 🐦
  • Np_bin
  • num_labels
  • labels
  • stats
  • centroids
β—„connectivity8β–Ί
β—„removeSurroundingtrueβ–Ί
CategoryπŸ¦β€πŸ”₯ ArchiGraph/πŸ“€ OpenCV

Inputs (3)

NameTypeDefaultDescription
Np_binNPARRAYSingle batch binary image. Non-zero pixels are treated as 1's. You can use compare(), threshold(), inRange(), Canny() etc. to create a binary image.
connectivityCOMBO8Pixel connectivity to use.
removeSurroundingBOOLEANtrueIf true, the surrounding part (different from background) will be removed from output.

Outputs (4)

NameTypeDescription
num_labelsINTβ€”
labelsNPARRAYβ€”
stats*β€”
centroids*β€”