[ptx] PTStitcher script?

Tim Jacobs twjacobs at gmail.com
Sun Nov 7 20:40:00 GMT 2004


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

the output I get from nona is:

Panorama obj created
ERROR: 15:22:44.310793 (Panorama.cpp:125) getPTStringParam(): could
not find string param n in line: o f0 y0 r0 p0 v40.83492 a0.007043
b-0.024821 c0.000000 d0 e0
ERROR: 15:22:44.429018 (Panorama.cpp:125) getPTStringParam(): could
not find string param n in line: o f0 y0 r0 p0 v40.83492 a0.007043
b-0.024821 c0.000000 d0 e0
output image size: 2048x1535
caught exception:
Precondition violation!
BasicImage::resize(int width, int height, value_type const &): width
and height must be >= 0.
 
(../foreign/vigra/basicimage.hxx:760)

I did read that nona reads PTOptimizer scripts (and this is a
PTStitcher script) but I confess I'm confused about these scripts in
general. I thought all the information for both PTStitcher and
PTOptimizer was in one file.

Any help would be much appreciated.

Tim


More information about the ptX mailing list