Giter Site home page Giter Site logo

cubemap_converter's Introduction

cubemap_converter

Tool for remapping oversampled cube-maps into single images by applying camera intrinsics.

Build steps

Dependencies:

  • cmake
  • libpng
  • zlib
  • OpenGL
  • On windows, I suggest using Ninja as the build system.

Clone and fetch submodules:

git clone [email protected]:gareth-cross/cubemap_converter.git
cd cubemap_converter
git submodule update --init --recursive

Configure and build:

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -Wno-deprecated -Wno-dev -G Ninja
cmake --build .

Running:

The suggested way to execute the tool is via the convert_data.py script:

python scripts/convert_data.py --config <PATH TO TOML> --input <INPUT DATASET DIRECTORY> --output <OUTPUT DATASET DIRECTORY>

Where:

  • <INPUT DATASET DIRECTORY> is the directory containing the output of Unreal Engine.
  • <OUTPUT DATASET DIRECTORY> is the directory in which the converted PNGs will be saved.

This command will:

  1. Load the calibrations from the TOML file.
  2. For each camera, generate a remap table from the intrinsics.
  3. Execute the cubemap_converter with the given intrinsic model.

The number of cameras in the dataset directory should match the number of cameras in the TOML file. See the scripts directory for example configurations.

cubemap_converter's People

Contributors

gareth-cross avatar

Stargazers

Paul Barsic avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.