ArticleslgStudy

physics

Phase stretch transform

Phase stretch transform is a physics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Phase stretch transform rather than just read about it. In short: Phase stretch transform (PST) is a computational approach to signal and image processing. One of its utilities is for feature detection and classification.

Phase stretch transform — main illustration
Phase stretch transform — illustration

Key takeaways

  • Phase stretch transform belongs to physics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Phase stretch transform to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Phase stretch transform from memory before moving on to harder problems.

Reference excerpt

Phase stretch transform (PST) is a computational approach to signal and image processing. One of its utilities is for feature detection and classification. PST is related to time stretch dispersive Fourier transform. 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. 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.

Operation principle 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.

Physical and mathematical foundations of phase stretch transform 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 reduces to:

Eo(z,t)=12π∫−∞∞E~i(0,ω)⋅e−iβ2zω22⋅eiωtdω (1) where β2 = GVD parameter, z is propagation distance, Eo(z,t) is the reshaped output pulse at distance z and time t. The response of this dispersive element in the time-stretch system can be approximated as a phase propagator as presented in : H(ω)=eiφ(ω)=ei∑m=0∞φm(ω)=∏m=0∞Hm(ω) (2) 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

Eo(t)=12π∫−∞∞E~i(ω)⋅H(ω)⋅eiωtdω (3) The time stretch operation is formulated as generalized phase and amplitude operations,

𝕊{Ei(t)}=∫−∞+∞ℱ{Ei(t)}⋅eiφ(ω)⋅L~(ω)⋅eiωtdω (4) where eiφ(ω) is the phase filter and L~(ω) is the amplitude filter. Next the operator is converted to discrete domain,

𝕊{Ei[n]}=1N∑u=0N−1FFT{Ei(n)}⋅K~(u)⋅L~(u)⋅ei2πNun (5) where u is the discrete frequency, K~(u) is the phase filter, L~(u) is the amplitude filter and FFT is fast Fourier transform. The stretch operator 𝕊{} for a digital image is then

𝕊{Ei[n,m]}=1MN∑v=0N−1∑u=0M−1FFT2{Ei(n,m)}⋅K~(u,v)⋅L~(u,v)⋅ei2πMum⋅ei2πNvn (6) In the above equations, Ei[n,m] is the input image, n and m are the spatial variables, FFT2 is the two-dimensional fast Fourier transform, and u and v are spatial frequency variables. The function K~(u,v) is the warped phase kernel and the function L~(u,v) is a localization kernel implemented in frequency domain. PST operator is defined as the phase of the Warped Stretch Transform output as follows

PST{Ei[n,m]}≜∡{𝕊{Ei[n,m]}} (7) where ∡{} is the angle operator.

PST kernel implementation The warped phase kernel K~(u,v) can be described by a nonlinear frequency dependent phase

K~(u,v)=eiφ(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

φ(u,v)=φpolar(r,θ)=φpolar(r) From dφ(r)dr=tan−1(r) we have φ(r)=rtan−1(r)−12log⁡(r2+1) Therefore, the PST kernel is implemented as

φ(r)=S⋅(Wr)⋅tan−1(Wr)−12log⁡(1+(Wr)2)(Wrmax)⋅tan−1(Wrmax)−12log⁡(1+(Wrmax)2) where S and W are real-valued numbers related to the strength and warp of the phase profile

Applications PST has been used for edge detection in biological and biomedical images as well as synthetic-aperture radar (SAR) image processing, as well as detail and feature enhancement for digital images. PST has also been applied to improve the point spread function for single molecule imaging in order to achieve super-resolution. The transform exhibits intrinsic superior properties compared to conventional edge detectors for feature detection in low contrast visually impaired images. The PST function can also be performed on 1-D temporal waveforms in the analog domain to reveal transitions and anomalies in real time.

Open source code release 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. 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.

See also Edge detection Feature detection (computer vision) Time stretch analog-to-digital converter Time stretch dispersive Fourier transform Phase-stretch Adaptive Gradient-field Extractor PhyCV

References

External links Github repository for MATLAB and python implementation for PST

Illustrations

Phase stretch transform: PST operated on an astronomical image reveals the accuracy of the method in enhancing sharp and faint features.
PST operated on an astronomical image reveals the accuracy of the method in enhancing sharp and faint features.
Phase stretch transform: PST edge detection on lightbulb image
PST edge detection on lightbulb image
Phase stretch transform: Feature enhancement in an image (St Paul's Cathedral, London) using phase stretch transform (PST). Left panel shows the original image and the right panel shows the detected features using PST.
Feature enhancement in an image (St Paul's Cathedral, London) using phase stretch transform (PST). Left panel shows the original image and the right panel shows the detected features using PST.
Phase stretch transform: PST applied for resolution enhancement in microscopy
PST applied for resolution enhancement in microscopy
Phase stretch transform: Application of PST to feature enhancement in biomedical images. Left panel shows the original image and the right panel shows the detected features using PST.
Application of PST to feature enhancement in biomedical images. Left panel shows the original image and the right panel shows the detected features using PST.

Worked examples

Example 1 — a first encounter with Phase stretch transform

Start with the simplest possible case. Write down what Phase stretch transform claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In physics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Phase stretch transform before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Phase stretch transform ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Phase stretch transform

In research
Phase stretch transform appears in physics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Phase stretch transform in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Phase stretch transform is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational physics, Image processing, so understanding it makes those chapters shorter.
In everyday life
Look for Phase stretch transform outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Phase stretch transform” →

How to study Phase stretch transform in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Phase stretch transform means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Phase stretch transform out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Phase stretch transform in simple terms?

Phase stretch transform (PST) is a computational approach to signal and image processing. One of its utilities is for feature detection and classification.

Why does Phase stretch transform matter?

Because it connects several physics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Phase stretch transform?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Phase stretch transform.

Tags

  • Computational physics
  • Image processing

Keep exploring