Skip to content

DepthProjector create depth-maps of 3d shape from multi-view points.

License

rennnosuke/DepthProjector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DepthProjector

DESCRIPTION1 DESCRIPTION2

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.

PP_FIGURE

Default angle sets of Theta and Phi (T, P) are defined as

$$T={30t|0 ≦ t < 12}, P={30p|-2 ≦ p ≦ 2}$$

In this case, the number of depth maps are 12×5=60 maps.

Demo

DEMO

Installation

sudo pip install DepthProjector

Usage

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.

Author

kanairen

About

DepthProjector create depth-maps of 3d shape from multi-view points.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages