MATLAB research code for loop differential ghost imaging (LDGI) with optical-phased-array line patterns.
- MATLAB with Image Processing Toolbox.
- The scripts use an authorized local target image. Set
LDGI_TARGET_IMAGEto a file path; otherwise they fall back to MATLAB's localcameraman.tifsample. Images are resized to 64x64 for the released experiment geometry.
setenv('LDGI_TARGET_IMAGE', fullfile(pwd, 'my_target.png'));No target or result TIFF is redistributed by this repository. The removed files and their integrity hashes are documented in ASSET_PROVENANCE.md.
Loop_differential_ghost_imaging/OPA_Speckle_patterns/: simulations for OPA illumination patterns.Loop_differential_ghost_imaging/oneD_OPA_plus_grating_scanning_imaging_optimize/: LDGI reconstruction and comparison scripts.
Run MATLAB from the repository root, add the repository recursively to the path, set an optional target image, and then run the selected script.
If this code is useful, cite:
@article{han2025loop,
title = {Loop differential ghost imaging based on line pattern},
author = {Han, Yuyuan and Zheng, Huaibin and Li, Bin and Li, Jingwei and Qiu, Long and Hao, Wenxuan and Dang, Zheng and Chen, Hui and Liu, Jianbin and He, Yuchen and Liu, Yanyan and Xu, Zhuo},
journal = {Optics Communications},
volume = {580},
pages = {131589},
year = {2025},
doi = {10.1016/j.optcom.2025.131589}
}The repository currently does not grant an open-source license for the author-owned MATLAB code. Public visibility is not a license. See NOTICE.md and ASSET_PROVENANCE.md.