PanoTools mailing list archive

Mailinglist:proj-imim
Sender:Helmut Dersch
Date/Time:Sun, 07 Jan 2001 21:32:18 +0100
Subject:Re: PTZoom Script

Thread:



Gummy Bear wrote:
> 
> Does anyone know the best way to use a PTPicker script
> to obtain the proper coordinates for the PTZoom extension?
> 
> I tried playing with Helmut's example, but I was unable to
> obtain similar results.
> 
> Here is the script I tried to use:
> 
> p f2 w1500 h750 v360 u10  n"JPEG"
> 
> i f4 w1500 h750 y0 p0 r0  v180 n"Monument.jpg"  X0 Y0 Z0

.............................^^^ this should be 360

Other than that it should work.
This is how I created the insert:
- Use the script below to determine suitable fov, pan, tilt, rot angles.
- Extract an image equal in size to the insert with these angles
  from the panoramic image using Panorama Tools->extract. 
- Paste the 'real' high resolution image into this extracted image.
  Colors are adjusted to match the background, and Photoshop's
  feather tool is used extensively.

The high resolution image was shot a couple of years before
the panorama with almost everything being different (lighting,
weather, sky, vegetation, camera position etc), yet a reasonable
fit is obtained.

The second image is obtimised by using the parameters from the first
image. See both scripts below.

Regards

Helmut Dersch

################### Script 1 ###############################
p f2 w2000 h1000 v360 u10  n"" 

i f4 w1500 h750 y0 p0 r0  v360 n"Monument.tiff"  X0 Y0 Z0
i f0 w1944 h1296 y180 p0 r0  v50 n"MV1"  X1 Y0 Z0
v 
v y1 p1 r1 v1 
c n0 N1 x613 y378 X366 Y650 
c n0 N1 x642 y363 X581 Y522 
c n0 N1 x618 y356 X393 Y478 
c n0 N1 x703 y375 X1069 Y601 
c n1 N0 x1169 y653 X716 Y381 
c n1 N0 x1549 y657 X767 Y383 
c n0 N1 x795 y383 X1789 Y648 

###################### Script 2 ################################
p f0 w1944 h1296 v57.016 u10  n"" 

i f0 w1944 h1296 y-13.96 p-1.4 r1.6  v57.016 n"Insert.jpg"  X1 Y0 Z0
i f0 w1296 h1944 y0 p0 r0  v20 n"MV3"  X1 Y0 Z0
v 
v y1 p1 r1 v1 
c n0 N1 x528 y498 X774 Y489 
c n1 N0 x812 y822 X537 Y554 
c n0 N1 x573 y584 X1008 Y1006 
c n0 N1 x586 y519 X1099 Y626 
c n1 N0 x1173 y1350 X602 Y640 
c n0 N1 x426 y486 X196 Y412 
c n1 N0 x194 y1218 X431 Y624



Next message:

Previous message: