Skip to content
/ cgh Public

A small program for producing computer generated holograms with Iterative Fourier Transform Algorithm

License

Notifications You must be signed in to change notification settings

andgdk/cgh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Generated Hologram Generation with Scilab (CGH)

Generate CGH and Signal Reconstructions

Generate binary phase masks from black and white images and compute a reconstruction from the phase mask into the signal plane.

Resulting computation of the OSS example

Requirements

  • Tested with Scilab 2025.0.0 (version 6.1.0 or higher)
  • Image Processing and Computer Vision Toolbox (IPCV)

Installation

  1. Download and install Scilab from Scilab Official Website.
  2. Install the Image Processing and Computer Vision Toolbox (IPCV) dependency via the Scilab console:
    atomsInstall("IPCV")
  3. Clone this repository:
    git clone https://github.com/andgdk/cgh.git
    cd cgh

Usage

  1. Open Scilab.
  2. Navigate to the project directory.
  3. Run the main script:
    exec('index.sce');
  4. Observe the resulting graphs.
  5. Add your own black and white signal images.
  6. Update the signal image name variable in index.sce and execute the program.

Project Structure

  • index.sce: Main script file.
  • src/: Source code directory.
  • data/: Data files directory with examples.
  • results/: Directory for output results.

Examples

TODO: Include examples of how to use the project here.

About

A small program for producing computer generated holograms with Iterative Fourier Transform Algorithm

Topics

Resources

License

Stars

Watchers

Forks