Posted by Andrew Jakowleff (77.123.170.74) on March 13, 2007 at 13:17:17:
In Reply to: lens distortion + resolution posted by Milla on March 13, 2007 at 12:05:31:
: I have a question regarding the batch-script.
: The first two lines are:
: p w1000 h500 f2 v185 n"JPG q100"
: o f2 y0 p0 r0 v185 a0 b0 c0 d0 e0 C185,1109,36,960
: and they are editable. In the scripts it says "If you need to remove lens distortions set "a", "b" and "c" values only." But to what values do I change them? 1-100, or? And what does the next letters mean d0 e0?
Sure they're editable. First line is output and second one is input. Sample script from above just crop (C185,1109,36,960) fisheye lens (f2) with field of view 185 degrees (v185) and remap it to equirectangular (f2) JPEG (n"JPG q100") panorama with size width 1000 and height 500 pixels (w1000 h500).
PanoCube uses PanoTools library libpano12 (Author Helmut Dersch) to manipulate with images before assemble them into a QuickTime movie. Just search on the WEB for "PanoTools Script.txt" to find the meanings of all values.
d0 and e0 are horizontal and vertical shift (zero in this case).
"a", "b" and "C" are usually just a fruction of 1 and databases for different lenses are also available on the WEB or can be calculated by own (by calibrating of your lens).
: Is there an explanation somewhere whereI can read about what the script does?
: I also wonder about resolution, is 72 dpi enough or sholuld the jpg be higher, like 300 dpi to get a sharp Image?
Resolution has nothing with sharp image - it counted if you're going to print your image.
=Andrew Jakowleff