DepthProjector is a python module to create depth maps from 3D shape data(.obj file only).
This module outputs some depth maps as image and binary files.
To get depth maps, DepthProjector set 3D shape in center of three-dimensional orthogonal coordinate system, and project to the camera plane of view camera on spherical coordinate system. Spherical coordinate system has two angles: Theta and Phi.
Default angle sets of Theta and Phi (T, P) are defined as
In this case, the number of depth maps are 12×5=60 maps.
sudo pip install DepthProjector
python -m DepthProjector [FILE_PATH]
Also, you can refer some descriptions with command '--help'.
$[kanairen]~% python -m DepthProjector --help
Usage: __main__.py [OPTIONS] FILE_PATH
Options:
-t, --theta_angle_range <INTEGER INTEGER INTEGER>...
Range of theta angle([FROM] [TO] [STEP]).
Default is (0 360 30).
-p, --phi_angle_range <INTEGER INTEGER INTEGER>...
Range of phi angle([FROM] [TO] [STEP]).
Default is (-60 61 30).
-i, --init_rotation <INTEGER INTEGER INTEGER>...
Initial rotation of 3d shape([X] [Y] [Z]).
Default is (0 0 0).
-r, --radius FLOAT Radius of camera coordinate.
-v, --is_view_only BOOLEAN option whether is DepthProjector executed as
3D Viewer(projection is not executed) or
not.
--help Show this message and exit.



