联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> C/C++编程C/C++编程

日期:2018-11-28 10:39

Mini project : Generation of phase-only hologram

The objective of this project is to write a program for generating phase-only Fresnel hologram for representing a multiple depth object. A sample program written in the C language is provided in the Canvas for jump starting the project. The program will convert a scene image (in 24bit bmp format) into a 1024x1024 Fresnel phase-only hologram. The scene image is composing of 1024x1024 pixels, evenly divided into a left and a right section. Users can input the depth of each section to the hologram.

Instructions of operating the sample program are given below.

1.Download the project file “phase_hologram.zip” from the Canvas, and extract all the files into a single directory in the harddisk.

2.Open the project with Microsoft Visual C, build and execute the program.

3.When prompt, input the output filename.

4.When prompt again, input the name of the scene image (without the extension “.bmp”).

5.Next, enter the depth of each section.

6.Wait until the program finished. The hologram will be generated, and its reconstructed image will be saved in the output file.

7.The pixel size of the hologram and the wavelength are set to 8.1um, and 633nm, respectively.

8.Inspect the hologram with say, the Paint software of Window. You should be able to see the reconstructed image.

9.Notice that the reconstructed image is rather poor, as only the phase component is preserved.


The task of this miniproject is given as follows. Tasks A to C are mandatory basic outcomes that are expected to be achieved by all candidates.

A.Familiarize with the given source code to understand the hologram generation and reconstruction process.

B.Add to the existing program a process to downsample the source image with a grid-cross lattice prior to the generation of the phase-only hologram. Observe the enhancement on the quality of the reconstructed image

C.Experiment with a larger hologram size of 2048x2048, and also with different source images and settings (e.g. distance of each section to hologram, different kinds of source images and downsampling lattice, etc.).


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp