MATLAB reference implementation of traditional ghost imaging (TGI), differential ghost imaging (DGI), and normalized ghost imaging (NGI) with generated uniform random illumination patterns.
- MATLAB with Image Processing Toolbox.
- Run
Generate_Uniform_Random_Matrices.morRandomMatrices.mfirst to create local patterns underdata_illumination_field/. - Set
TGI_TARGET_IMAGEto an authorized local image. If unset, the demo uses MATLAB's localcameraman.tifsample. The image is resized to 64x64.
setenv('TGI_TARGET_IMAGE', fullfile(pwd, 'my_target.png'));
RandomMatrices;
TGI_DGI_NGI;The generated pattern directory and local target images are ignored by Git. The previously tracked target TIFF was removed because its source and reuse permission were not documented; see ASSET_PROVENANCE.md.
Generate_Uniform_Random_Matrices.m: helper for uniform random patterns.RandomMatrices.m: writes random illumination patterns todata_illumination_field/random_matrix_uniform_64/.TGI_DGI_NGI.m: reconstructs with TGI, DGI, and NGI.
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.