Coder Social home page Coder Social logo

meg-ssk / equirectangular_to_multi_perspective_generator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 5.01 MB

generate multiple perspective images from a single equirectangular image with a slightly different viewing direction

License: MIT License

Makefile 23.00% Python 77.00%
equirectangular-images omnidirectional-images image-processing python

equirectangular_to_multi_perspective_generator's Introduction

equirectangular_to_multi_perspective_generator

Description

The code in this repository generates multiple perspective images from a single equirectangular image with a slightly different viewing direction.

Input

EQR image

Outputs

perspective images

Installation

Develop environment can be installed by:

make install_poetry
poetry install

I have also prepared requirements.txt, so if you would like to use it, run the following command:

pip install -r requirements.txt

Usage

make main

or

poetry run python src/main.py

or

python src/main.py

Configulation

If you want to change the calculation conditions, edit the parameters described in ./config/config.yaml. Each parameter is described below:

  • input_image_file_path:
    • Path to input image under ./input.
  • output_directory:
    • Name of the directory in which the output images will be saved under ./output/.
  • fov:
    • Field of view in degree.
  • longitude_delta:
    • Step size of longitude (azimuthal angle) in degree.
  • latitude_delta:
    • Step size of latitude (polar angle) in degree.
  • perspective_image_height / perspective_image_width:
    • Image size of generated perspective image.

Motivations

When equirectangular images taken with a omnidirectional camera are used for technologies developed from perspective images, such as object detection, super-resolution and 3D reconstruction, it is common to use cube mapping. However, cube mapping method is susceptible to image 'cuts' that occur at the edges of the cube. If the issues of computational cost and time can be ignored, the author believe that the method of generating perspective images for various orientations generated from the code in this repository can to some extent address the ‘cuts’ at the edges of the cube.

References

Sample image data source

I used free image from the following URL as sample image:

equirectangular_to_multi_perspective_generator's People

Contributors

meg-ssk avatar

Stargazers

 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.