Nodes/ComfyUI-JH-PixelPro/Sub-Pixel Mask Refiner
ComfyUI Node

Sub-Pixel Mask Refiner

A ComfyUI node in ComfyUI-JH-PixelPro/mask with 5 inputs and 1 output.

By jetthuangai·Created 4 months ago·Updated 3 months ago· 5
Sub-Pixel Mask Refiner
  • mask
  • refined_mask
erosion_radius2
dilation_radius4
feather_sigma2.0
threshold0.50
CategoryComfyUI-JH-PixelPro/mask

Inputs (5)

NameTypeDefaultDescription
maskMASK
erosion_radiusINT20–64Pixel radius eroded into the protected 'definitely inside' core. 0 = no inside protection (output = clamped gaussian feather).
dilation_radiusINT40–64Pixel radius dilated into the protected 'definitely outside' core. Set ≥ erosion_radius for a stable feather band. 0 = no outside protection.
feather_sigmaFLOAT2.00.1–32Gaussian sigma (pixel) used to feather the uncertain band between inside and outside cores.
thresholdFLOAT0.500–1Strict binarization threshold (`mask > threshold`) applied before morphology.

Outputs (1)

NameTypeDescription
refined_maskMASK