Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.96 KB

README.md

File metadata and controls

71 lines (50 loc) · 1.96 KB

projector

build-status-image

Compliments and criticism are all ultimately based on some form of projection. Billy Corgan

Installation

Install Requirements

$ brew install cmake
$ brew install opencv4
$ brew install boost-python

Install the C++ native lib

$ git clone https://github.com/SixiemeEtage/projector
$ cd projector
$ mkdir -p native/build && cd native/build
$ cmake .. \
    -DPYTHON_DESIRED_VERSION=3.X \
    -DPYTHON3_EXECUTABLE=$(which python) \
    -DPYTHON3_LIBRARY=$(python3-config --prefix)/lib/libpython3.7.dylib \
    -DPYTHON3_INCLUDE_DIR=$(python3-config --prefix)/include/python3.7m/ \
    -DPYTHON3_NUMPY_INCLUDE_DIRS=$(python3-config --prefix)/lib/python3.7/site-packages/numpy/core/include/ \
    -DBOOST_ROOT=$(brew --prefix)/Cellar/boost/1.68.0_1 \
    -DBoost_INCLUDE_DIR=/usr/local/Cellar/boost/1.68.0_1/include
$ make
$ make install

Install the python binding

$ pip install .

Usage

$ projector --in-projection=cubemap --out-projection=equirectangular ./examples/cubemap_high_res/cubemap_+x.jpg ./examples/cubemap_high_res/cubemap_-x.jpg ./examples/cubemap_high_res/cubemap_+y.jpg ./examples/cubemap_high_res/cubemap_-y.jpg ./examples/cubemap_high_res/cubemap_+z.jpg ./examples/cubemap_high_res/cubemap_-z.jpg

Credits

Tools used in rendering this package:

Contact

Pierre Dulac
@dulaccc

License

projector is available under the MIT license. See the LICENSE file for more info.