HologramDepthmap Library
Public Attributes | List of all members
HologramParams Struct Reference

Structure variable for hologram paramemters. More...

#include <HologramGenerator.h>

Public Attributes

double field_lens
 FIELD_LENS at config file. More...
 
double lambda
 WAVELENGTH at config file. More...
 
double k
 2 * PI / lambda More...
 
ivec2 pn
 SLM_PIXEL_NUMBER_X & SLM_PIXEL_NUMBER_Y. More...
 
vec2 pp
 SLM_PIXEL_PITCH_X & SLM_PIXEL_PITCH_Y. More...
 
vec2 ss
 pn * pp More...
 
double near_depthmap
 NEAR_OF_DEPTH_MAP at config file. More...
 
double far_depthmap
 FAR_OF_DEPTH_MAP at config file. More...
 
uint num_of_depth
 the number of depth level. More...
 
std::vector< int > render_depth
 Used when only few specific depth levels are rendered, usually for test purpose. More...
 

Detailed Description

This structure has all necessary parameters for generating a hologram. It is read from the configuration file, 'config_openholo.txt'.

Definition at line 100 of file HologramGenerator.h.

Member Data Documentation

◆ far_depthmap

double HologramParams::far_depthmap

Definition at line 110 of file HologramGenerator.h.

◆ field_lens

double HologramParams::field_lens

Definition at line 102 of file HologramGenerator.h.

◆ k

double HologramParams::k

Definition at line 104 of file HologramGenerator.h.

◆ lambda

double HologramParams::lambda

Definition at line 103 of file HologramGenerator.h.

◆ near_depthmap

double HologramParams::near_depthmap

Definition at line 109 of file HologramGenerator.h.

◆ num_of_depth

uint HologramParams::num_of_depth
if FLAG_CHANGE_DEPTH_QUANTIZATION == 0  
   num_of_depth = DEFAULT_DEPTH_QUANTIZATION 
else  
   num_of_depth = NUMBER_OF_DEPTH_QUANTIZATION  

Definition at line 112 of file HologramGenerator.h.

◆ pn

ivec2 HologramParams::pn

Definition at line 105 of file HologramGenerator.h.

◆ pp

vec2 HologramParams::pp

Definition at line 106 of file HologramGenerator.h.

◆ render_depth

std::vector<int> HologramParams::render_depth

Definition at line 119 of file HologramGenerator.h.

◆ ss

vec2 HologramParams::ss

Definition at line 107 of file HologramGenerator.h.


The documentation for this struct was generated from the following file: