Maison BeaulieuMAISON BEAULIEUAB ÉDITIONS · CULINARY ARTS & ARCHIVES
Private Editions · Images

A Panorama in the Family Book: Why Does the Cornice Curve?

You would like to gather the entire courtyard into a single large illustration. Yet the cornice that looked straight begins to bend into an arc. Should you redo the stitching, move the camera, or accept that shape? Before reaching for a fix, one question remains: how were the lines of sight distributed across the flat image?

We will build a simple wall, then represent it in several ways from an unchanged vantage point. This is neither a family photograph under inspection nor a piece of software being tested. The model clarifies an editorial decision: offering the reader a full facade, a particular distribution of its forms, or several separate views of the same field.

🎁 Free Heritage Gift · A4 Illustrated Booklet + 5 MP3s

Receive the “Pantheon of 28 Legendary Chefs” Dossier (Free A4 PDF) + 5 Audio Stories

Instant complimentary access to our illustrated gastronomic & historical dossier, plus 5 DRM-free MP3 audio chronicles.

A Representation Still Has to Be Chosen After Stitching

In their paper on panoramic mosaics, Richard Szeliski and Heung-Yeung Shum distinguish stitching images from choosing their final representation. Their method does not lock in that choice at the moment of alignment. Curvature in a rendered result should therefore not be blamed automatically on a faulty seam.

For our construction, the viewing center remains at the origin. X denotes the horizontal direction, Y the upward vertical, and Z depth in front of us. The wall faces us squarely at Z = 1 unit. Its cornice lies at Y = 0.2. Five posts are evenly spaced along X, at positions −√3, −√3/2, zero, √3/2, and √3. They frame four equal bays. The units describe a drawing rather than measurements taken from a real house.

The ends of this wall are viewed along directions −60° and +60° from the central axis: the total horizontal field of view is 120°. We allocate 200 millimeters to its width in the first two representations. Both the field of view and this width remain fixed. We will alter neither the depths nor the viewing position to produce the second image.

The OpenCV documentation sets out the projective model. We adopt its centered, distortion-free form with the same scale along both axes: u = kX/Z and v = kY/Z. Our output coordinates u and v are expressed in millimeters on the drawing. Here the factor k is chosen for the allotted width; it is not a camera lens focal length measured in millimeters.

For the cylindrical representation, Szeliski and Shum give the coordinates θ = arctan(X/Z) and ν = Y/√(X² + Z²). We multiply them by another factor k to place the image: u = kθ and v = kν. The angles used in these calculations are in radians. All our points remain in front of the center, with positive Z and directions strictly between −90° and +90°.

The Wall Did Not Bend Its Own Cornice

In the first representation, k must be chosen to map the ends to −100 and +100 millimeters. Since X/Z equals √3 on the right, k equals 100/√3, or roughly 57.735 millimeters. Each post then lands on a remarkably simple position: −100, −50, zero, +50, and +100. The four bays each take up 50 millimeters on the page.

All along the cornice, Y/Z keeps the value 0.2. Its output height is therefore 57.735 × 0.2 everywhere, or roughly 11.547 millimeters above the drawing’s zero level. We do not merely get five points at the same height: the ratio is identical for every intermediate position along the wall. The entire line remains horizontal in this construction.

Now turn to the second representation, with the same 120° field and the same 200-millimeter width. The extreme directions are now ±π/3 radians, so the scaling factor is 100/(π/3), or roughly 95.493 millimeters. The central post still sits at u = 0, but the cornice height there is about 19.099 millimeters. At both ends, it drops to just 9.549 millimeters.

Why does the height shrink toward the sides? For this wall, the denominator √(X² + Z²) grows as you move away from the central post. Y stays equal to 0.2, while that denominator rises from 1 at the center to 2 at the ends. The quotient is therefore halved. The output heights do not describe any change in the masonry: they follow the positions of the exact same wall inside our second representation.

We can write the continuous shape of that cornice: v = 0.2k cos(u/k). It traces a curve whose middle sits higher than its edges. Here calculation explains the observed shape without invoking bad seams. It does not, however, diagnose every curve in a real-world panorama, where additional information would be needed.

The elevation chosen in the scene matters. If we draw a line on that same wall at Y = 0, its output height is zero everywhere in both representations. That particular line stays horizontal. The cornice at Y = 0.2 therefore does not imply that every horizontal line must curve; it shows the outcome for a line placed at that specific height.

Four Equal Bays Can Receive Different Widths

In the cylindrical representation, the five posts do not fall at regular intervals. Their positions are approximately −100, −68.156, zero, +68.156, and +100 millimeters. The outer bays therefore measure only about 31.844 millimeters each, whereas the two central bays take up 68.156 millimeters each.

Two outputs of the modelA and B show the five posts given in the text, across the same width and at an identical scale along both axes.Version A200 mmVersion B200 mm
Version A: first representation · Version B: second representation.

Yet the wall was set up with four equal intervals in X. We neither pulled its outer posts closer together nor widened the middle ones. The two representations simply do not distribute width in the same way. For a book whose illustration needs to convey the regularity of that facade, this difference is worth examining: fitting the same two ends into the same 200 millimeters does not preserve the same interior widths.

What, then, does the second distribution preserve? Take four equal angular intervals bounded by the directions −60°, −30°, zero, +30°, and +60°. With u = kθ, each receives 50 millimeters. Their points on the wall, however, are no longer evenly spaced: the ±30° directions meet X = ±1/√3, not the ±√3/2 positions of our intermediate posts.

This comparison separates two requests that are easy to confuse. “Identical bays” refers here to lengths along a flat frontal wall. “Identical viewing angles” refers to angles measured from the center. The same landmarks do not answer both requests. Swapping the names of what is being compared would create an illusion of agreement that does not exist in the geometry.

Looking Also at What Happens Between Center and Edges

For a small angular interval around θ, the width it receives depends on how fast u changes. In the first representation, u = k tan(θ); its local rate of change is k/cos²(θ). It equals k at the center and four times k in the 60° direction. We are comparing very small angular intervals around different directions, not the measured width of a person standing in a photograph.

In the second representation, the local rate of change of u = kθ equals k everywhere. That explains the regularity of the four angular intervals above, yet does not make our physical bays equal. The property preserved by a representation can differ from the one the editor first hoped to show. Our regular facade and our sweep of gaze constitute two possible readings of the place, grounded in distinct landmarks.

Let us set a criterion to test a choice: we ask that the largest horizontal angular scale not exceed twice the smallest within each image. This factor of two is our own drawing requirement, not a universal norm or perceptual threshold. For a centered, symmetric rectilinear view, the maximum ratio is 1/cos²(α), where α is the half-field. It reaches two at α = 45°, or 90° in total. Our starting 120° field fails this check; a 90° view would pass.

Narrowing the field, however, changes how much of the wall the reader gets to see. Keeping the 200-millimeter width does not by itself retain what stood at the ends. We can choose a narrower view to show part of the place, but we have to acknowledge giving up the original span. The new ratio does not quietly solve the first request, which wanted both ends brought together.

Two Views Narrow That Gap and Introduce a Seam

Let us try another answer: two rectilinear views each covering 60°, one centered on −30° and the other on +30°. The first spans −60° to zero, the second zero to +60°. They look out from the same center; only the orientations of their image planes differ. We give each view a width of 100 millimeters.

Within each view, the extreme directions lie 30° from its own axis. The ratio between the largest and smallest angular scale is 1/cos²(30°), or 4/3. That stays below our chosen factor of two. The minimum values now sit at the centers of those two views—along the global directions −30° and +30°—rather than at the midpoint of the combined field.

That detail prevents a misleading check. At the global center, along direction zero, we sit at the edge of each view; local scale is at its maximum there, just as at the two outer ends of the full span. Comparing only the outer ends to the global center would yield a ratio of one. Yet scale is not constant across the whole: it dips inside each view before rising again. The criterion genuinely compares the maximum and minimum encountered, not three points picked for their apparent positions on the page.

What happens to the cornice? Calculating with the angled planes gives, in the left view, a height of 10 millimeters at the outer edge and 20 at the shared edge. The right view begins at 20 and ends at 10. Each piece remains a straight line. In the local coordinates of the first view, its equation is v = 15 + 0.1u; in the second, v = 15 − 0.1u, for u running from −50 to +50 millimeters.

Place the two outputs side by side with their zero levels aligned. Both pieces of the cornice meet at 20 millimeters: there is no gap at the seam. Yet one climbs one millimeter for every ten millimeters traveled horizontally, while the other descends at the same rate. Their meeting forms an angle. Two straight, properly joined segments have therefore not become a single straight cornice across the combined image.

The seam between the two viewsHeights of 10, 20, and 10 millimeters; the segments meet at the shared height.102010Vue gaucheVue droite100 mm100 mm
The three heights are shown in millimeters.

That kink is the concrete cost of the chosen split. The two views pass our angular-scale check, yet they do not replace the full facade of the first representation with all its proportions intact. They can be presented as two separate views in the book. Pushing them so close together that they mimic a single continuous picture would not erase the geometric break. That does not prove no other transformation could be attempted: the conclusion applies to these two outputs and the stated alignment.

A Chosen Tolerance Yields Yet Another Decision

Now add a different requirement for the second representation: across the 200-millimeter width, we allow at most a five-millimeter drop between the middle of the cornice and its ends. This figure is set for the exercise, without claiming what any reader would find pleasing. Our 120° cylindrical output produces roughly 9.549 millimeters, so it fails this criterion.

Varying its half-field α while keeping the same width and the ratio Y/Z = 0.2, the difference equals 200 × 0.2 × (1 − cos α)/(2α). The calculated threshold for five millimeters corresponds to roughly 58.559° of total field. Choosing 58° yields about 4.954 millimeters and passes; 60° yields about 5.117 millimeters and fails. Those two checks bracket the decision without turning every degree into a new editorial solution.

The requirements did not miraculously converge. Over the full 120° field, the rectilinear output keeps cornice drop at zero, but its angular-scale ratio is four. The cylindrical output keeps the ratio at one, but its cornice drop exceeds five millimeters. Our two separate views bring the ratio down to 4/3, while their joined cornice varies by ten millimeters between the ends and the seam. None of the three proposals satisfies both criteria at once across the full field.

The project can therefore state its priority or give up that particular combination of demands. If the goal is to show the regularity of the frontal wall, the first representation offers an explicit answer. If sweeping across directions matters more, the second distributes space differently. If multiple views are preferred, their seam should be owned openly in the layout. We now have grounds to discuss those choices in terms of their effects, rather than simply ranking images from smallest to largest.

The Name of a Projection Does Not Describe Every Setting

The PTGui manual notes that its rectilinear mode can include horizontal or vertical compression. In that variant, horizontals and verticals stay straight, while diagonals become curved. The same projection name can therefore come with an option that alters the expected property.

Our calculations do not reproduce that compression. They use the ideal expressions introduced at the start. To compare a software output against the model, one would need to know the projection and the exact options actually used, rather than taking the label alone as proof of equivalence. Here we have neither a PTGui export nor a photograph whose parameters were recorded.

The final choice for a family book can still respond to the look and feel of the place. Yet a straight facade, evenly distributed angular intervals, and two narrower views are not three names for the same result. Knowing what you asked for lets you choose an image for a clear reason, and then present the reader with the view you actually chose.