[ptx] PTStitcher script?

Pablo d'Angelo pablo.dangelo at web.de
Sun Nov 7 23:02:33 GMT 2004


On Sun, 07 Nov 2004, Tim Jacobs wrote:

> I'd like to use nona to correct lens distortions in images. I have a
> script that works for PTStitcher but not for nona. The script is:
> 
> p w2048 h1536 f0 u20 v40.83492 n"JPEG g0 q90 "
> m g1 i0
> i n"test.jpg"
> o f0 y0 r0 p0 v40.83492 a0.007043 b-0.024821 c0.000000 d0 e0

Hmm, currently nona does not read the file size out of the images early
enought, It starts with the sizes specified in the script. Your script didn't
contain any, so 0,0 was asumed.. I think all PTStitcher/PTOptimizer scripts had
the widht, height specified.  PTOptimizer needs to know the image dimensions,
and doesn't look at the image files, it just reads them from the script.

Something like:

p w2048 h1536 f0 u20 v40.83492 n"JPEG g0 q90 "
m g1 i0
o w1600 h1200 f0 y0 r0 p0 v40.83492 a0.007043 b-0.024821 c0.000000 d0 e0 n"test.jpg"

Should work, just replace w1600, h1200 with the correct values.

ciao
  Pablo


More information about the ptX mailing list