Jump to: navigation, search

Difference between revisions of "Understanding Projecting Modes"

(Funny or artistic projections)
(Classical projections)
Line 79: Line 79:
 
=== Classical projections ===
 
=== Classical projections ===
 
{| cellpadding="5" cellspacing="10" border="0"
 
{| cellpadding="5" cellspacing="10" border="0"
|valign="bottom" align="left"  | Spherical or equirectangular projection: to see all field of view.  
+
|valign="bottom" align="left"  | Spherical or equirectangular projection: to see all field of view.
 +
full horizontal - full vertical
 
|valign="bottom" align="left"  | Cylindrical projection: to see all horizontal field of view with less vertical distortions.
 
|valign="bottom" align="left"  | Cylindrical projection: to see all horizontal field of view with less vertical distortions.
 +
full horizontal - partial vertical
 +
|valign="bottom" align="left"  | Planar or rectilinear projection: like standard lens view
 +
partial horizontal - partial vertical
 
|-  
 
|-  
 
|valign="top" align="left" |[[Image:proj_large_spherical.png]]
 
|valign="top" align="left" |[[Image:proj_large_spherical.png]]
 
|valign="top" align="left" |[[Image:proj_large_cylindrical.png]]
 
|valign="top" align="left" |[[Image:proj_large_cylindrical.png]]
 +
|valign="top" align="left" |[[Image:proj_large_planar.png]]
 
|}
 
|}
  
 
{| cellpadding="5" cellspacing="10" border="0"
 
{| cellpadding="5" cellspacing="10" border="0"
|valign="bottom" align="left"  | Planar or rectilinear projection: like standard lens view
+
 
 
|valign="bottom" align="left"  | Fisheye: like fisheye lens view
 
|valign="bottom" align="left"  | Fisheye: like fisheye lens view
 
|-  
 
|-  
|valign="top" align="left" |[[Image:proj_large_planar.png]]
+
 
 
|valign="top" align="left" |[[Image:proj_large_fisheye.png]]
 
|valign="top" align="left" |[[Image:proj_large_fisheye.png]]
 
|}
 
|}

Revision as of 14:52, 7 March 2014


INTRODUCTION

Before we can effectively describe the various projection types, let’s go back to the notion of image assembling (i.e. image stitching).


Stitching images

This example illustrates the notion of image stitching in standard mode (i.e. when all the source images were taken by rotating the camera around its nodal point).
Each source image will receive a set of spherical coordinates (Yaw, Pitch and Roll).
When projected on the base sphere, it must exactly match the surrounding images.
Stitching a panorama is basically finding the location of each source image on a base sphere.


The resulting texture on the sphere’s surface is the stitched image.
The resulting image can either cover the totality of the sphere’s surface in the case of a 360° x 180° panorama, or only a fraction of it.

Various views of the texture on the base sphere


Note :
We are assuming here that the stitching being performed is based on a model where the camera rotates around its nodal point as illustrated in the above image.
Other stitching models are possible and will soon be supported by Autopano Pro. The most popular is the Orthogonal, also called Orthographic stitching.
All the source images are shot orthogonally to the same plane. Instead of rotating around its center, the camera is following a linear motion path, always pointing in the same direction.
This is exactly what is being done when scanning a A3 size sheet of paper with a letter size scanner. We end up with 4 or 5 files assembled using this stitching model.
It is also what happens when taking pictures of building fronts in a street by walking down the street and taking a picture facing the buildings every 10 steps.


CONCEPT

The projection modes are referring to what’s being done with the texture covering the base sphere.
If we project it on a plane, we will then have a Rectilinear or Planar projection; if we project it on a cylinder we are doing a Cylindrical projection; and if we use the texture as is we are talking about a Spherical projection.


Planar Reprojection

Rectilinear Mode (or Planar projection)
Each pixel of the sphere is reprojected on a plane tangential to the sphere. This automatically implies two constraints:

  • Only the pixels facing the plane can be projected, representing only one half of the sphere.
  • The pixels located on the extreme outside limits of the half-sphere will be strongly stretched (for example when using a Planar Projection with more than 150° horizontally FOV).


Cylindrical Reprojection
  • Cylindrical Mode

When using this model the texture is projected on a cylinder surrounding the base sphere.
This mode is less problematic except when getting close to the poles. The same downside observed with the Planar projection will occur, the pixels located close to the poles will be stretched.


Spherical Texture
  • Spherical Mode (or Equirectangular)

No reprojection is to be performed when using this mode. The texture is simply recycled and saved in a latitude/longitude coordinate system.
Therefore a 360° x 180° panorama will have a width/height ratio of 360/180 =2.
The height and width in pixels is proportional to the FOV’s angle.

All projections surfaces are not illustrated but principles stay identical: start from the stitched sphere, project this sphere on adapted 3D surface and unwrap this 3D surface on a plane to obtain a picture.

PROJECTION ILLUSTRATIONS

Classical projections

Spherical or equirectangular projection: to see all field of view.

full horizontal - full vertical

Cylindrical projection: to see all horizontal field of view with less vertical distortions.

full horizontal - partial vertical

Planar or rectilinear projection: like standard lens view

partial horizontal - partial vertical

Proj large spherical.png Proj large cylindrical.png Proj large planar.png
Fisheye: like fisheye lens view
Proj large fisheye.png

Variants of classical projections

Hammer projection: Mercator projection: Pannini projection:
Proj large hammer.png Proj large mercator.png Proj large panini.png

Funny or artistic projections

Mirror ball projection: Orthographic projection: Little planet projection:
Proj large mirrorball.png Proj large orthographic.png Proj large stereographic.png

HORIZON EFFECTS

Cylindrical Horizontal

‎ The projection modes can vary depending on the panorama’s orientation. This is the case for the Spherical and Cylindrical projections, not the Planar projection which is not sensitive to the panorama’s orientation.
When looking at the drawing illustrating the Cylindrical projection, we can see that we assumed that the cylinder’s axis was vertical as this is what we are looking for.
But multiple types of cylinders and axis can exist: we can imagine a cylinder with a vertical axis.
The visual aspect of the panorama will then be very different.


Manuel-projection-cylindric-h.jpg

From left to right:

  1. Spherical projection
  2. Cylindrical projection
  3. Planar projection
  4. 90° Rotation and Cylindrical projection
  5. 90° Rotation and Planar projection


  • Differences between Cylindrical mode (2) and Planar (3) look very close. It’s quite normal as the horizontal FOV of the image is very small, implying that the Cylindrical projection is almost rectilinear.
  • The view changes dramatically between the spherical mode (1) and the other two modes (2 and 3).
  • Apply a rotation to the panorama corresponds to put the cylinder of projection in the other axis, this is the cylindrical horizontal (4).
  • The difference between the cylindrical vertical (2) and the cylindrical horizontal (4) is very visible.
  • The difference between the two rectilinear (3 and 5) is zero. Exactly the same thing as a rotation does not change the rectilinear projection.


Note: Be careful to correctly set the point of view when working with this kind of very tall subject (in this example at the base of the tower: where the two grey lines intersect).

Spherical Horizontal

The Spherical mode, just like the Cylindrical mode, is dependent on the orientation of the panorama.
We will generally want for that type of projection that the verticals stay vertical in order to obtain nice views.
In some cases, using another axis than the horizontal can turn into a great creative tool.
The following three examples are Spherical views of the same 360° x 180° panorama with very different resulting looks.


This one is a standard Spherical projection with the vertical axis perfectly aligned with the cathedral’s vertical axis. This view is a Spherical projection where the vertical axis of the panorama is a bit off compared to the real vertical. This is an anomaly we can often see in 360° panoramas: the horizon makes a wave, similar to a sinusoidal curve (like a “~”). This view is a Spherical Horizontal projection where the sphere’s axis matches a real horizontal line in the subject. The creativity potential offered by this type of projection is really interesting
Manuel-projection-axis-1.jpg Manuel-projection-axis-2.jpg Manuel-projection-axis-3.jpg





Technical Support / Autopano Pro Documentation / Autopano Giga Documentation