Compile:
javac -d bin src/com/longdo/pano/Cube2Erect.java
Run:
java -cp bin com.longdo.pano.Cube2Erect
Usage:
java -cp bin com.longdo.pano.Cube2Erect <back> <bottom> <front> <left> <right> <top> <output>
Example:
java -cp bin com.longdo.pano.Cube2Erect f0_back.jpg f0_bottom.jpg f0_front.jpg f0_left.jpg f0_right.jpg f0_top.jpg output.jpg
Extra tips
View equirectangular image using Longdo Panorama API. Try your output.jpg by drag-and-drop it on a panorama scene in a demo website.