Precise control of optical intensity distributions is important for beam shaping, optical trapping, and optical potential engineering. We implement a digital micromirror device (DMD)-based programmable beam-shaping platform for generating high-fidelity optical intensity distributions with user-defined geometries. The approach combines precise system calibration, Fourier-plane spatial filtering via an optimized pinhole, and an iterative intensity feedback algorithm to transform imperfect Gaussian input beams into flat-top, lattice, and composite intensity distributions. The feedback loop typically converges within seven iterations, producing highly uniform flat-top profiles with 98.7% uniformity (corresponding to a root-mean-square error (RMSE) of 1.3%). Systematic studies identify the optimal Fourier-plane aperture that balances diffraction suppression with optical throughput. These results demonstrate a practical route to programmable beam shaping and optical intensity control.
Zhao et al. (Tue,) studied this question.