本文主要是介绍计算机三维全息仿真框架CGH,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Computer-Generated-Hologram
仓库地址:https://github.com/JackHCC/Computer-Generated-Hologram
✨This library introduces the current production process of computer holography, and uses MATLAB and Python to record and reproduce holograms. In the future, I will build a computer hologram simulation framework or a simulation application program.
Introduction
CGH stands for computer-generated holograms (CGH). Holograms are unique in their ability to record both the intensity and phase of information.
CGH Class | Document | Link |
---|---|---|
Circuitous Phase Type Hologram/Fourier Hologram【迂回位相型全息图】 | 👉Doc | Code |
Kinoform【相息图】 | 👉Doc | Code |
Fresnel Hologram【菲涅尔全息图】 | 👉Doc | Code |
Off Axis Interference Hologram【离轴干涉全息图】 | 👉Doc | Code |
Usage
Working on a hologram simulation API.
Please wait!
Experiment
Before Experiment
Before experimenting, it’s best to understand common image formats and their fundamentals. Understanding the pixel level of an image will help you experiment better and give you a better understanding of the fundamentals of image processing.
Here are some examples of images you should pay more attention to the suffix of the image, and the size of the image, so that you can work with the image later.
Fourier Hologram
Circuitous Phase Type Hologram/Fourier Hologram is Binary hologram.
DataSet
For this experiment we used this image for testing
Experimental Principle
Please read this Document.
Experimental Procedure
Two ways to do experiments are provided here, Matlab or Python, and you can choose the familiar way to run the code.
- Run the
fourier_hologram.m
orfourier_hologram.py
, They are in the Python and Matlab folders respectively. - Then you will get Circuitous Phase Type Hologram/Fourier Hologram below.
- Finally, after running the program, you can get the reproduced graph and compare it with the original image.
Kinoform
DataSet
For this experiment we used this image for testing
Experimental Principle
Please read this Document.
Experimental Procedure
Two ways to do experiments are provided here, Matlab or Python, and you can choose the familiar way to run the code.
- Run the
kinoforms.m
orkinoforms.py
, They are in the Python and Matlab folders respectively. - Then you will get Kinoform below.
- Finally, after running the program, you can get the reproduced graph and compare it with the original image.
Off Axis Interference Hologram
DataSet
For this experiment we used this image for testing
Experimental Principle
Please read this Document.
Experimental Procedure
Two ways to do experiments are provided here, Matlab or Python, and you can choose the familiar way to run the code.
- Run the
offaxis_interference_hologram.m
oroffaxis_interference_hologram.py
, They are in the Python and Matlab folders respectively. - Then you will get Off Axis Interference Hologram below.
- Finally, after running the program, you can get the reproduced graph and compare it with the original image.
Contact
If you have any questions or good ideas, please contact: jackcc0701@163.com
这篇关于计算机三维全息仿真框架CGH的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!