Skip to content

CUDA-accelerated real-time digital holography - my master's thesis

Notifications You must be signed in to change notification settings

jmorez/realtime_digital_holography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

RTDH-CUDA-GLFW

Real-Time Digital Holography accelerated with CUDA and visualized with GLFW

Required libraries

I listed the versions that I created the project with, other versions are untested but will likely work.

  • Vimba 2.0
  • CUDA 6.5
  • GLEW 1.13.0
  • GLFW 3.1.2 (WIN64)
  • ImGui 1.48
  • (Visual Studio 2013 or another CUDA-compatible VS version)

Launching

The program (RTDH.exe) will first search for a camera. If it does not find one, it will exit and report the reason in log.txt.

Configuring the camera

Next it will load the CameraSettings.xml file onto the camera. Changing the resolution seems a bit quirky, sometimes the settings stick, sometimes they don't. You can also use the Vimba viewer to configure the camera in real time and save the .xml file (untested). The exposure time is also changed in this file.

Using the different modes

The camera has the following 4 modes:
  • Video mode: displays the raw image that the CCD registers. Useful for alignment or other optical experiments.
  • Reconstruction mode: real-time Fresnel reconstruction. You can adjust the reconstruction distance with the slider. You can also display the phase, although it is meaningless here because there is no phase to compare it to.
  • Holographic interferometry mode: displays the phase difference relative to a recorded phase (which is achieved by pressing R).
  • Fourier Transform mode: plain Fourier transform of the CCD image. In conjuction with a lens you could draw periodic patterns on a paper, film it and see the 2D power spectrum.
  • View recorded frame mode: speaks for itself.
Note that upon exiting the application, the recorded reconstructed hologram will be exported to a binary file (reconstructed_hologram.bin).

Hotkeys

Esc - Close application

1 - Select video mode

2 - Fresnel reconstruction

3 - Holographic interferometry

R - Record a frame for holographic interferometry

V - View recorded frame

4 - FFT

M - Display magnitude (if applicable)

P - Display phase (if applicable)

C - Show/hide control dialog

For additional support you can contact me at jan.morez [AT] gmail [DOT] com.

About

CUDA-accelerated real-time digital holography - my master's thesis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published