panorama

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 1 Imported by: 0

README

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    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)
# example
./panorama --in ./sample_image.jpg --out ./dist --len 512 --sides left,right,top,buttom,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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL