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

21 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

Image source: Timothy Oldfield on Unsplash

Usage

It is possible to convert JPEG and PNG image format

Usage:
  panorama [flags]

Flags:
  -h, --help         help for panorama
  -i, --in string    input image file path (required if --indir is not specified)
  -d, --indir string input directory path (required if --in is not specified)
  -l, --len int      edge length of a cube face (default 1024)
  -o, --out string   out file dir path (default ".")
  -s, --sides array  list of sides splited by "," (optional)
  -q, --quality int  jpeg file output quality ranges from 1 to 100 inclusive, higher is better (optional, default 75)
# example
./panorama --in ./sample_image.jpg --out ./dist --len 512 --sides left,right,top,bottom,front,back

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy