ComfyUI Node
Sub-Pixel Mask Refiner
A ComfyUI node in ComfyUI-JH-PixelPro/mask with 5 inputs and 1 output.
Sub-Pixel Mask Refiner
- mask
- refined_mask
◄erosion_radius2►
◄dilation_radius4►
◄feather_sigma2.0►
◄threshold0.50►
CategoryComfyUI-JH-PixelPro/mask
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | — | |
| erosion_radius | INT | 20–64 | Pixel radius eroded into the protected 'definitely inside' core. 0 = no inside protection (output = clamped gaussian feather). |
| dilation_radius | INT | 40–64 | Pixel radius dilated into the protected 'definitely outside' core. Set ≥ erosion_radius for a stable feather band. 0 = no outside protection. |
| feather_sigma | FLOAT | 2.00.1–32 | Gaussian sigma (pixel) used to feather the uncertain band between inside and outside cores. |
| threshold | FLOAT | 0.500–1 | Strict binarization threshold (`mask > threshold`) applied before morphology. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| refined_mask | MASK | — |