Command line utitlites¶
disparity¶
Calulate disparity fom a given lightfield.
usage: disparity [-h] [--hdf5_group HDF5_GROUP] [--working_dir WORKING_DIR]
[--result_dir RESULT_DIR] [--s_hat S_HAT]
[--r_start R_START R_START] [--min_disp MIN_DISP]
[--max_disp MAX_DISP] [--stepsize STEPSIZE] [--Ce_t CE_T]
[--Cd_t CD_T] [--S_t S_T] [--n_jobs N_JOBS] [-NOISEFREE]
[-DEBUG]
lightfield
- Positional arguments:
lightfield The filename including the directory of the lightfield. - Options:
--hdf5_group=lightfield The group name inside hdf5 File. --working_dir=tmp/ The directory used to store intermediate data. --result_dir=results/ The output directory. --s_hat If given, only this s-dimension will be computed. --r_start The resolution to start with. Can only be used in DEBUG mode. --min_disp=1 The minimal disparity to sample for. --max_disp=20 The maximal disparity to sample for. --stepsize=1 The disparity setp size during sampling . --Ce_t=0.02 The threshold for the edge confidence measurement. --Cd_t=0.1 The threshold for the depth confidence measurement. --S_t=0.1 The threshold for the bilateral median filter measurement. --n_jobs=-1 The number of threads to use. -NOISEFREE=False Disable radiance update for lightfield without noise -DEBUG=False Enable plotting of intermediate results
imgs2lf¶
Store image files into hdf5 container.
usage: imgs2lf [-h] [--output_file OUTPUT_FILE]
[--output_dataset OUTPUT_DATASET]
[--img_extension IMG_EXTENSION] [--dtype {float,uint,ubyte}]
[-RGB]
input_dir
- Positional arguments:
input_dir The directory where the lightfield images are located. - Options:
--output_file=lightfield The filename (including the directory) of the output .hdf5 file. --output_dataset=lightfield The container name in the hdf5 file. --img_extension=.png The file extension of the images to look for. --dtype=uint The dtype used to store the lightfild data.
Possible choices: float, uint, ubyte
-RGB=False Flag to determine if resulting lightfield should consists of RGB values.
lf2epi¶
Extract EPIs from a given lightfield and store them in a .hdf5 file.
usage: lf2epi [-h] [--hdf5_group_lf HDF5_GROUP_LF]
[--hdf5_group_epi HDF5_GROUP_EPI]
[--dtype {<class 'numpy.float64'>,<class 'numpy.uint8'>,<class 'numpy.uint16'>}]
[-RGB]
lightfiled epis
- Positional arguments:
lightfiled The filename including the directory of the lightfield. epis The filename including the directory to save the EPI .hdf5 file. - Options:
--hdf5_group_lf=lightfield The group name inside hdf5 File. --hdf5_group_epi=lightfield The group name inside hdf5 File. --dtype=<class 'numpy.float64'> The dtype used to store the lightfild data.
Possible choices: <class ‘numpy.float64’>, <class ‘numpy.uint8’>, <class ‘numpy.uint16’>
-RGB=False Flag to determine if resulting lightfield should consists of RGB values.
clif2lf¶
Convert lightfiled of .clif files to the .hdf5 file format.
usage: clif2lf [-h] [--lf_group LF_GROUP] clif_file lf_file clif_group
- Positional arguments:
clif_file The filename including the directory of the .clif file. lf_file The filename including the directory of the .ddf5 file. clif_group The group name inside .clif File. - Options:
--lf_group=lightfield The group name inside .hdf5 File.
dmap2hdf5¶
Convert results from .dmap files into .hdf5 file.
usage: dmap2hdf5 [-h] [--output_dataset OUTPUT_DATASET] input_dir output_file
- Positional arguments:
input_dir The directory where the .dmap files are located. output_file TThe filename (including the directory), of the output file. - Options:
--output_dataset=disparities The container name in the hdf5 file.