Skip to content

Repository files navigation

Traditional, Differential, and Normalized Ghost Imaging

MATLAB reference implementation of traditional ghost imaging (TGI), differential ghost imaging (DGI), and normalized ghost imaging (NGI) with generated uniform random illumination patterns.

Requirements

  • MATLAB with Image Processing Toolbox.
  • Run Generate_Uniform_Random_Matrices.m or RandomMatrices.m first to create local patterns under data_illumination_field/.
  • Set TGI_TARGET_IMAGE to an authorized local image. If unset, the demo uses MATLAB's local cameraman.tif sample. 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.

Files

  • Generate_Uniform_Random_Matrices.m: helper for uniform random patterns.
  • RandomMatrices.m: writes random illumination patterns to data_illumination_field/random_matrix_uniform_64/.
  • TGI_DGI_NGI.m: reconstructs with TGI, DGI, and NGI.

Rights

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.

About

Entry level GI

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages