This project implements the Transport of Intensity Equation (TIE) to reconstruct phase information from intensity-only measurements. The experiment characterizes a low-cost LCD-based spatial light modulator (SLM). By analyzing intensity changes across slightly defocused images, the algorithm reconstructs a 3D phase map of the LCD surface. I also included my senior thesis and results.
- Surface texture and non-uniformities of the LCD
- Intensity variations from Arduino-controlled patterns
- Optical behavior of a low-cost SLM system
To perform TIE reconstruction, capture three intensity images using an optical setup.
- Light source (laser or LED)
- LCD (used as SLM)
- Lens
- Camera
- Optical rail (for precise positioning)
-
Align the system: Light → LCD → Lens → Camera
-
Display a pattern on the LCD using Arduino
-
Capture the following images:
| Image | Description | Action |
|---|---|---|
| I₀ | In-Focus Image | Sharpest image (best focus) |
| I⁺ | Forward Defocus | Move lens +5 mm forward, capture image |
| I⁻ | Backward Defocus | Move lens –5 mm backward, capture image |
Important:
- Keep lighting constant
- Ensure images are aligned
- Use small, controlled movements
| File | Purpose |
|---|---|
run_TIE.m |
Main script |
TIE_simple.m |
Core TIE solver |
- Loads intensity images
- Applies preprocessing (noise reduction)
- Computes intensity derivative ∂I/∂z
- Solves the TIE
- Outputs a 2D phase map and 3D surface
- Open MATLAB
- Navigate to the project folder
- Place your images in the folder
- Update filenames in
run_TIE.m:
I_plus = imread('zplus.JPG');
I0 = imread('I0.JPG');
I_minus = imread('zminus.JPG');- Phase map of the LCD
- 3D surface reconstruction
- Visualization of intensity variations
- Analyze surface irregularities
- Study optical distortions
- Evaluate LCD pattern response
- Ensure images are well-aligned
- Use consistent illumination
- Keep defocus distance small (~5 mm)
- Avoid vibrations during capture
- Normalize intensity if needed
- Test additional LCD patterns and voltages
- Improve noise filtering and stability
- Compare with interferometric methods
- Automate alignment and preprocessing
- Dr. Hongbo Zhang — Mentorship and guidance
- Middle Tennessee State University (MTSU), Department of Physics and Astronomy