HologramDepthmap Library
Loading Data
bool HologramGenerator::ReadImageDepth (int ftr)
 Read image and depth map. More...
 
bool HologramGenerator::prepare_inputdata_CPU (uchar *img, uchar *dimg)
 Preprocess input image & depth map data for the CPU implementation. More...
 
bool HologramGenerator::prepare_inputdata_GPU (uchar *img, uchar *dimg)
 Copy input image & depth map data into a GPU. More...
 

Detailed Description

Function Documentation

◆ prepare_inputdata_CPU()

bool HologramGenerator::prepare_inputdata_CPU ( uchar *  imgptr,
uchar *  dimgptr 
)
private

Prepare variables, img_src_, dmap_src_, alpha_map_, depth_index_.

Parameters
imgptr: input image data pointer
dimgptr: input depth map data pointer
Returns
true if input data are sucessfully prepared, flase otherwise.
See also
ReadImageDepth

Definition at line 44 of file HologramGenerator_CPU.cpp.

◆ prepare_inputdata_GPU()

bool HologramGenerator::prepare_inputdata_GPU ( uchar *  imgptr,
uchar *  dimgptr 
)
private
Parameters
imgptr: input image data pointer
dimgptr: input depth map data pointer
Returns
true if input data are sucessfully copied on GPU, flase otherwise.
See also
ReadImageDepth

Definition at line 194 of file HologramGenerator_GPU.cpp.

◆ ReadImageDepth()

bool HologramGenerator::ReadImageDepth ( int  ftr)
private

Read input files and load image & depth map data. If the input image size is different with the dislay resolution, resize the image size.

Parameters
ftr: the frame number of the image.
Returns
true if image data are sucessfully read, flase otherwise.
See also
prepare_inputdata_CPU, prepare_inputdata_GPU

Definition at line 304 of file HologramGenerator.cpp.