ComfyUI Node
Phase Stretch Transform
A ComfyUI node in image/processing with 8 inputs and 2 outputs.
Phase Stretch Transform
- image
- edge_image
- phase_image
◄lpf_sigma0.21►
◄phase_strength0.48►
◄warp_strength12.1►
◄min_thresh-0.350►
◄max_thresh0.350►
◄morph_flagfalse►
◄output_modegrayscale►
Categoryimage/processing
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| lpf_sigma | FLOAT | 0.210.01–1 | Gaussian LPF FWHM (same unit as reference code). Higher = more smoothing before PST. |
| phase_strength | FLOAT | 0.480–10 | PST phase strength (S). Higher = stronger edge response. |
| warp_strength | FLOAT | 12.10–100 | PST warp strength (W). Controls frequency warping. |
| min_thresh | FLOAT | -0.350-3.15–0 | Lower phase threshold for binary edge map (morph_flag=True only) |
| max_thresh | FLOAT | 0.3500–3.15 | Upper phase threshold for binary edge map (morph_flag=True only) |
| morph_flag | BOOLEAN | false | True = binary edges with morphological clean-up; False = soft continuous edge map (|phase| normalised) |
| output_mode | COMBO | grayscale | grayscale = white edges on black; rgb_overlay = edges overlaid in red on original |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| edge_image | IMAGE | — |
| phase_image | IMAGE | — |