Skip to Content
Assembling Panoramic Photos: A Designer's Notebook
book

Assembling Panoramic Photos: A Designer's Notebook

by William Rodarmor
June 2005
Beginner to intermediate
96 pages
1h 40m
English
O'Reilly Media, Inc.
Content preview from Assembling Panoramic Photos: A Designer's Notebook

7.3. Stage 3

7.3.1. Preparing the script

The script is a text document created in BBEdit that will automate the transformations you'll apply to the pictures. You can name it whatever you like; in this case, I called it scriptphare.txt. (Don't delete the .txt suffix, even when working on a Mac.)

p w3600

i w1800 h1800 f2 r0 p0 y60 v185 a0 b0.1 c0
i w1800 h1800 f2 r0 p0 y180 v=0 a=0 b=0 c=0
i w1800 h1800 f2 r0 p0 y300 v=0 a=0 b=0 c=0

v v0 b0  r1 y1 p1  r2 y2 p2

This script must be edited to include the size of the source pictures. On the first line, which corresponds to the output width of the panorama in pixels, enter the diameter of the circle, times two (1780 × 2 = 3560). In the next three lines—there is one for each picture—enter the measured diameter (1780) after each w and h. Don't change any of the rest of the code, and leave the last line as it is.

p w3560
i w1780 h1780 f2 r0 p0 y60 v185 a0 b0.1 c0
i w1780 h1780 f2 r0 p0 y180 v=0 a=0 b=0 c=0
i w1780 h1780 f2 r0 p0 y300 v=0 a=0 b=0 c=0
v v0 b0  r1 y1 p1  r2 y2 p2

To measure the reference points I use an HTML page composed of frames and JavaScript code that lets medirectly choose pairs of points. You can also get the coordinates of each point in Photoshop. If they are selected correctly, four pairs of points are enough for any two images.

This produces the following reference point coordinates:

Between a and b

 c n0 N1 x1293 y1490 X505 Y1510 c n0 N1 x1385 y1169 X273 Y1215 c n0 N1 x1380 y983 X191 Y1018 c n0 N1 x1294 y937 X104 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Photoshop Effects for Portrait Photographers

Photoshop Effects for Portrait Photographers

Christopher Grey

Publisher Resources

ISBN: 0596009755Catalog PageErrata