Skip to content

Convert equirectangular panorama img to cubemap img

License

Notifications You must be signed in to change notification settings

blackironj/panorama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Equirectangular panorama to Cubemap

Porting c++ to go from https://github.com/denivip/panorama

Convert an equirectangular panorama image into cubemap image. this simple app is written by Go

Screenshot

example

Usage

It is possible to convert JPEG and PNG image format

Usage:
  panorama [flags]

Flags:
  -h, --help         help for panorama
  -i, --in string    in image file path (required)
  -l, --len int      edge length of a cube face (default 1024)
  -o, --out string   out file dir path (default ".")
# example
./panorama --in ./sample_image.jpg --out ./dist --len 512

Installation

git clone https://github.com/blackironj/panorama.gitgit clone

cd panorama

go build -o panorama

Or Download here

TODO

  • Optimize code
    • It uses 1 go-routine per each face to convert. (use 6 go-routines)
  • Add more interpolation algorithms