Upsampling a single image with ptstitcher

From PanoTools.org Wiki
Revision as of 18:07, 21 March 2007 by Erik Krause (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
# Here's a script for upsampling a single image with ptstitcher.

# Substitute desired width and height of the upsampled image for 2000 and 1000;
# you can also change the output format if you like.
# It doesn't matter what value you give the v (field of view) parameter,
# as long as you use the same value on the o line at the bottom.
# The value of the u parameter doesn't matter either, since there are
# no overlapping images in the output.

p w2000 h1000 f0 v0.05 u0 n"TIFF"

################################################################################

# i7 means use sync1024 interpolation - the best but slowest;
# you could use i3 for sinc256 instead:

m g1 i7

################################################################################

# Substitute your original filename for orig.tif.
# Keep the quote marks:

i n"orig.tif"

################################################################################

# The v parameter must match the v parameter on the p line above;
# all the others should be zero because we don't want to introduce
# any yaw, pitch, roll, offset, or shear, or distort the image in
# any way with "lens coefficients":

o f0 y0 r0 p0 v0.05 a0 b0 c0 d0 e0 g0 t0