Generate binary phase masks from black and white images and compute a reconstruction from the phase mask into the signal plane.
- Tested with Scilab 2025.0.0 (version 6.1.0 or higher)
- Image Processing and Computer Vision Toolbox (IPCV)
- Download and install Scilab from Scilab Official Website.
- Install the Image Processing and Computer Vision Toolbox (IPCV) dependency via the Scilab console:
atomsInstall("IPCV")
- Clone this repository:
git clone https://github.com/andgdk/cgh.git cd cgh
- Open Scilab.
- Navigate to the project directory.
- Run the main script:
exec('index.sce');
- Observe the resulting graphs.
- Add your own black and white signal images.
- Update the signal image name variable in
index.sce
and execute the program.
index.sce
: Main script file.src/
: Source code directory.data/
: Data files directory with examples.results/
: Directory for output results.
TODO: Include examples of how to use the project here.