Multiple Rectilinear Panoramas

Prof. Dr. H. Dersch - HFU Furtwangen


Parameters


The multiple rectilinear projection is accessed in PTStitcherNG via the usual stitcher scripts. This script is a plain textfile describing source and destination image. A typical script might read:

p f11 w8000 h2000 v360 B2400 Y412 S"700,880,1130,1312,1700,2100,2400,344" E"840,1048,1192,1400,1970,2216,272"

o f4 v360 w8000 h4000 r0 y0 p0  n"input.jpg"

It means that the input image input.jpg with parameters described in the line starting with the letter o is to be remapped to the image described in the line starting with the letter p. Only the parameters specific to the multiple rectilinear format (B,Y,S,E,W) will be discussed here. The format itself is specified by the token f11.

The image above shows one segment of the projection screen. A straight segment is characterized by the segment direction S, the edges E, and the width of the smoothed transition region W. Two additional parameters are the left starting location of the panorama Y and the base B. The base defines the units which the user chooses to specify all other options. If B is not specified in the script PTStitcherNG assumes degree units (i.e. all numbers refer to angles in degree, and base=360 for a 360° panorama). When using a cylindrical or equirectangular image as source, it is much easier to use this image's width in pixel, and specify all numbers as pixels.

All parameters are specified starting at the point Y (but not relative to Y). Default for Y is zero. If segment locations S are not specified, they are assumed to be exactly in the center between edges. If width parameters W are not specified, they are all set to 10 in whatever base the user has choosen. If parameters are specified they must follow certain requirements:



Next
Previous
Table of Contents


Copyright H. Dersch 2010