Nodes/ComfyUI-XJNodes/SEGS Refine (Morph)
ComfyUI Node

SEGS Refine (Morph)

A ComfyUI node in XJNodes/segs with 7 inputs and 1 output.

By alexjx·Created 9 months ago·Updated 3 months ago· 0
SEGS Refine (Morph)
  • segs
  • image
  • refined_segs
grow_pixels50
smooth_pixels3
edge_threshold0.30
use_edge_detectiontrue
color_threshold0.00
CategoryXJNodes/segs

Inputs (7)

NameTypeDefaultDescription
segsSEGS
imageIMAGE
grow_pixelsINT500–200Number of pixels to dilate/grow. Use with edge_threshold and color_threshold to control growth.
smooth_pixelsINT30–20Sigma for Gaussian smoothing. Higher values create smoother but less detailed edges.
edge_thresholdFLOAT0.300–1Threshold for edge-based refinement (0-1). Lower values are more sensitive to edges. Use with use_edge_detection to control growth at edges.
use_edge_detectionBOOLEANtrueWhether to use edge detection to limit growth. Disable for similar colors or when edge detection is too aggressive.
color_thresholdFLOAT0.000–1If > 0, stop growth when pixel color differs from mask average by more than this threshold (0-1). Use instead of edge detection for similar colors.

Outputs (1)

NameTypeDescription
refined_segsSEGS