PanoTools mailing list archive

Mailinglist:PanoTools NG
Sender:Erik Krause
Date/Time:2008-Dec-01 21:15:29
Subject:Re: Merging big number of cube faces ?

Thread:


PanoTools NG: Re: Merging big number of cube faces ? Erik Krause 2008-Dec-01 21:15:29
Karol Kwiatek wrote:
> I tried to use your template for PTGUI (cubefaces), but PTGUI or
> PTStitcher asks me about a script file.

The template should provide enough information to run either PTStitcher 
or PTGui internal stitcher. You load the images, apply the template and 
create panorama.

> How can I merge cube faces in this way:
> Pano1: cube1_001.jpg + cube2_001.jpg + ... + cube6_001.jpg
> Pano2: cube1_002.jpg + cube2_002.jpg + ... + cube6_002.jpg

I don't fully understand. Am I right you want to assemble those 
cubefaces to equirectangular panorama?

> Where can I find how to create script.txt for PTStitcher?

On http://wiki.panotools.org/PTStitcher

A basic script would be:
--snip
p w8000 h4000 f2 v360 u20 n"JPEG g0 q90"
m g1 i4 f0
o f0 y0 r0 p0 v90 a0 b0 c0 d0 e0 g0 t0
o f0 y90 r0 p0 v90 a0 b0 c0 d0 e0 g0 t0
o f0 y-180 r0 p0 v90 a0 b0 c0 d0 e0 g0 t0
o f0 y-90 r0 p0 v90 a0 b0 c0 d0 e0 g0 t0
o f0 y0 r0 p90 v90 a0 b0 c0 d0 e0 g0 t0
o f0 y0 r0 p-90 v90 a0 b0 c0 d0 e0 g0 t0
--snap
This one will create an equirect with 8000 pixels width and 4000 pixels 
hight as a jpeg file with 90% quality. Adjust to your needs. It accepts 
cubeface files in the order front, right, back, left, top, bottom.

Save the above lines between --snip and --snap to a file assemble.txt
The command line to call PTStitcher then would be

PTStitcher -o Pano1 assemble.txt cube1_001.jpg cube2_001.jpg cube....
(with all 6 faces of course)

You can put those line multiple times in a batch file, you can even call 
PTStitcher in a for loop on the command line. Since in your case you 
need 3-digit numbers you need to do it for the 1 and 2 digit counts 
separately

1..9:
--snip
for /L %i in (1,1,9) do PTStitcher -o Pano%i assemble.txt cube1_00%i.jpg 
cube2_00%i.jpg  cube3_00%i.jpg  cube4_00%i.jpg  cube5_00%i.jpg 
cube6_00%i.jpg
--snap

10..20:
--snip
for /L %i in (10,1,20) do PTStitcher -o Pano%i assemble.txt 
cube1_0%i.jpg cube2_0%i.jpg  cube3_0%i.jpg  cube4_0%i.jpg  cube5_0%i.jpg 
  cube6_0%i.jpg
--snap

Copy and paste the lines between --snip and --snap to notepad, remove 
the line wraps and paste the line to a command window in the respective 
folder.

(There are ways to pad variables to 3 digits even in windows shell 
language, but this would require some lines in a batch file)...

-- 
Erik Krause
http://www.erik-krause.de

------------------------------------

-- 
<*> Wiki: http://wiki.panotools.org
<*> User Guidelines: http://wiki.panotools.org/User_Guidelines
<*> Nabble (Web) http://www.nabble.com/PanoToolsNG-f15658.html
<*> NG Member Map http://www.panomaps.com/ng
<*> Moderators/List Admins: #removed# 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/PanoToolsNG/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/PanoToolsNG/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:#removed# 
    mailto:#removed#

<*> To unsubscribe from this group, send an email to:
    #removed#

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


Next thread:

Previous thread:

back to search page