Nodes/ComfyUI_PhaseStretchTransform/Phase Stretch Transform
ComfyUI Node

Phase Stretch Transform

A ComfyUI node in image/processing with 8 inputs and 2 outputs.

By bemoregt·Created 5 months ago·Updated 5 months ago· 1
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)

NameTypeDefaultDescription
imageIMAGE
lpf_sigmaFLOAT0.210.01–1Gaussian LPF FWHM (same unit as reference code). Higher = more smoothing before PST.
phase_strengthFLOAT0.480–10PST phase strength (S). Higher = stronger edge response.
warp_strengthFLOAT12.10–100PST warp strength (W). Controls frequency warping.
min_threshFLOAT-0.350-3.15–0Lower phase threshold for binary edge map (morph_flag=True only)
max_threshFLOAT0.3500–3.15Upper phase threshold for binary edge map (morph_flag=True only)
morph_flagBOOLEANfalseTrue = binary edges with morphological clean-up; False = soft continuous edge map (|phase| normalised)
output_modeCOMBOgrayscalegrayscale = white edges on black; rgb_overlay = edges overlaid in red on original

Outputs (2)

NameTypeDescription
edge_imageIMAGE
phase_imageIMAGE