Phase stretch transform (PST) is a computational approach to signal and image processing. One of its utilities is for feature detection and classification.[1] [2] PST is related to time stretch dispersive Fourier transform.[3] It transforms the image by emulating propagation through a diffractive medium with engineered 3D dispersive property (refractive index). The operation relies on symmetry of the dispersion profile and can be understood in terms of dispersive eigenfunctions or stretch modes.[4] PST performs similar functionality as phase-contrast microscopy, but on digital images. PST can be applied to digital images and temporal (time series) data. It is a physics-based feature engineering algorithm.[5]
Here the principle is described in the context of feature enhancement in digital images. The image is first filtered with a spatial kernel followed by application of a nonlinear frequency-dependent phase. The output of the transform is the phase in the spatial domain. The main step is the 2-D phase function which is typically applied in the frequency domain. The amount of phase applied to the image is frequency dependent, with higher amount of phase applied to higher frequency features of the image. Since sharp transitions, such as edges and corners, contain higher frequencies, PST emphasizes the edge information. Features can be further enhanced by applying thresholding and morphological operations. PST is a pure phase operation whereas conventional edge detection algorithms operate on amplitude.
Photonic time stretch technique can be understood by considering the propagation of an optical pulse through a dispersive fiber. By disregarding the loss and non-linearity in fiber, the non-linear Schrödinger equation governing the optical pulse propagation in fiber upon integration [6] reduces to:
Eo(z,t)=
1 | |
2\pi |
infty | |
\int | |
-infty |
\tilde{E}i(0,\omega) ⋅
| ||||||||||
e |
⋅ ei\omega{t
where
\beta2
Eo(z,t)
H(\omega)=ei\varphi(\omega)
| ||||||||||
=e |
=
infty | |
\prod | |
m=0 |
Hm(\omega)
Therefore, Eq. 1 can be written as following for a pulse that propagates through the time-stretch system and is reshaped into a temporal signal with a complex envelope given by [4]
Eo(t)=
1 | |
2\pi |
infty | |
\int | |
-infty |
\tilde{E}i(\omega) ⋅ H(\omega) ⋅ ei\omegad\omega
The time stretch operation is formulated as generalized phase and amplitude operations,
S\{Ei(t)\}=\int
+infty | |
-infty |
l{F}\{Ei(t)\} ⋅ ei\varphi(\omega) ⋅ \tilde{L}(\omega) ⋅ ei\omega{t
where
ei\varphi(\omega)
\tilde{L}(\omega)
S\{E | ||||
|
N-1 | |
\sum | |
u=0 |
FFT\{Ei(n)\} ⋅ \tilde{K}(u) ⋅ \tilde{L}(u) ⋅
| |||||
e |
where
u
\tilde{K}(u)
\tilde{L}(u)
The stretch operator
S\{\}
S\{E | ||||
|
N-1 | |
\sum | |
v=0 |
M-1 | |
\sum | |
u=0 |
2\{E | |
FFT | |
i(n,m)\} |
⋅ \tilde{K}(u,v) ⋅ \tilde{L}(u,v) ⋅
| |||||
e |
⋅
| |||||
e |
In the above equations,
Ei[n,m]
n
m
FFT2
u
v
\tilde{K}(u,v)
\tilde{L}(u,v)
PST\{Ei[n,m]\}\triangleq\measuredangle\{S\{Ei[x,y]\}\}
where
\measuredangle\{\}
The warped phase kernel
\tilde{K}(u,v)
\tilde{K}(u,v)=ei\varphi(u,v)
While arbitrary phase kernels can be considered for PST operation, here we study the phase kernels for which the kernel phase derivative is a linear or sublinear function with respect to frequency variables. A simple example for such phase derivative profiles is the inverse tangent function. Consider the phase profile in the polar coordinate system
\varphi(u,v)=\varphipolar(r,\theta)=\varphipolar(r)
From
d\varphi(r) | |
dr |
=\tan-1(r)
\varphi(r)=r\tan-1(r)-
1 | |
2 |
log(r2+1)
Therefore, the PST kernel is implemented as
\varphi(r)=S ⋅
| ||||||||||
|
where
S
W
PST has been used for edge detection in biological and biomedical images as well as synthetic-aperture radar (SAR) image processing.[7] [8] [9] PST has also been applied to improve the point spread function for single molecule imaging in order to achieve super-resolution.[10] The transform exhibits intrinsic superior properties compared to conventional edge detectors for feature detection in low contrast visually impaired images.[11]
The PST function can also be performed on 1-D temporal waveforms in the analog domain to reveal transitions and anomalies in real time.[4]
On February 9, 2016, a UCLA Engineering research group has made public the computer code for PST algorithm that helps computers process images at high speeds and "see" them in ways that human eyes cannot. The researchers say the code could eventually be used in face, fingerprint, and iris recognition systems for high-tech security, as well as in self-driving cars' navigation systems or for inspecting industrial products. The Matlab implementation for PST can also be downloaded from Matlab Files Exchange.[12] However, it is provided for research purposes only, and a license must be obtained for any commercial applications. The software is protected under a US patent. The code was then significantly refactored and improved to support GPU acceleration. In May 2022, it became one algorithm in PhyCV: the first physics-inspired computer vision library.