+ All Categories
Home > Documents > Content-Aware Projection for Tiny Planetsmatthewalunbrown.com/papers/eg2015.pdf · stereographic...

Content-Aware Projection for Tiny Planetsmatthewalunbrown.com/papers/eg2015.pdf · stereographic...

Date post: 24-Aug-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
4
EUROGRAPHICS 2015/ B. Bickel and T. Ritschel Short Paper Content-Aware Projection for Tiny Planets M. Brown University of Bath Abstract Tiny Planets visualise the world looking down at the ground, with physically unrealisable projections that curve the ground plane to look like small worlds. Whilst certain geometries, such as Stereographic, are known to give good Tiny Planet visualisations, the best projection to use depends on the image content. In this work we define a family of Tiny Planet projections that includes several commonly used projection types, but allows for data- dependent adaptation to best present the image content to the viewer. We show how to select optimal content-aware projections from this set, minimising distortions from conformality whilst closing gaps and emphasising salient areas in the scene. Categories and Subject Descriptors (according to ACM CCS): I.3.3 [Computer Graphics]: Picture/Image Generation—Display Algorithms 1. Introduction Presenting very wide-angle imagery to the viewer is a chal- lenging problem involving trade-offs between various types of distortion to coerce the view-sphere onto a 2D plane. Though humans perceive a wide field of view (approxi- mately 135200 degrees), standard projection choices such as rectilinear (straight-line preserving) or equidistant (pre- serving angles from the central point) look unnatural and unappealing over this field of view. Given the increased pop- ularity of wide-angle cameras and the ability to stitch im- ages into very wide angle views [BL07, Sze06], there is an increasing need to effectively visualise large field-of-view images. In searching for suitable projections a natural place to be- gin is with the canon of cartographic projections designed to transform the earths surface to a map, as this is analogous to mapping the view sphere to a plane. German et al. [GdGP07] describe a range of such projections, and additionally pro- pose a “hybrid” approach that combines 2 or more of these projections along lines where the mappings align (e.g, “Ar- chitectural Cylindrical”, merging Miller and Lambert Equal Area projections either side of the horizon). An early content-aware approach was suggested by Zorin and Barr [ZB95], who find image projections that trade-off between minimum curvature (deformation of straight lines) and direct viewing (local stretch). These mappings are, how- ever, cumbersome to specify, and the technique is limited in field of view. Zelnik Manor et al. [ZMPP] address this problem in the context of wide angle panoramas by allowing the user to de- fine multiple regions for a multi-plane perspective rendering of the scene. This works well with scenes in which there are clear transitions between planar surfaces (e.g., indoors), however, in many cases the optimal choice of projections is difficult for the user to define. [GKB] extended this idea to automatically find 2 planar regions per image, typically a ground plane, and the plane at infinity. A more general solution to wide-angle image visualisa- tion was proposed by Carroll et al., who formulate the prob- lem as an optimisation over a set of spatially varying projec- tions. Their optimisation aims to maintain salient structures and respect user specified constraints, whilst minimising de- viations from a conformal mapping [CAA09, CAA10]. An alternative approach was proposed by Kopf et al [KLD 09], who allow the user to manipulate the attitude of scene planes and find a smooth deformation of a cylindrical projection surface that satisfies these constraints. Our approach is most similar to the former in that we use image-based constraints and user-input and optimise for a mapping that minimises distortions from conformality. Other authors have addressed specific content-based ren- dering issues, for example, photographing entire street c The Eurographics Association 2015.
Transcript
Page 1: Content-Aware Projection for Tiny Planetsmatthewalunbrown.com/papers/eg2015.pdf · stereographic projection, but allows for many other variants, 2) a technique to optimise content-aware

EUROGRAPHICS 2015/ B. Bickel and T. Ritschel Short Paper

Content-Aware Projection for Tiny Planets

M. Brown

University of Bath

AbstractTiny Planets visualise the world looking down at the ground, with physically unrealisable projections that curvethe ground plane to look like small worlds. Whilst certain geometries, such as Stereographic, are known to givegood Tiny Planet visualisations, the best projection to use depends on the image content. In this work we definea family of Tiny Planet projections that includes several commonly used projection types, but allows for data-dependent adaptation to best present the image content to the viewer. We show how to select optimal content-awareprojections from this set, minimising distortions from conformality whilst closing gaps and emphasising salientareas in the scene.

Categories and Subject Descriptors (according to ACM CCS): I.3.3 [Computer Graphics]: Picture/ImageGeneration—Display Algorithms

1. Introduction

Presenting very wide-angle imagery to the viewer is a chal-lenging problem involving trade-offs between various typesof distortion to coerce the view-sphere onto a 2D plane.Though humans perceive a wide field of view (approxi-mately 135⇥200 degrees), standard projection choices suchas rectilinear (straight-line preserving) or equidistant (pre-serving angles from the central point) look unnatural andunappealing over this field of view. Given the increased pop-ularity of wide-angle cameras and the ability to stitch im-ages into very wide angle views [BL07, Sze06], there is anincreasing need to effectively visualise large field-of-viewimages.

In searching for suitable projections a natural place to be-gin is with the canon of cartographic projections designed totransform the earths surface to a map, as this is analogous tomapping the view sphere to a plane. German et al. [GdGP07]describe a range of such projections, and additionally pro-pose a “hybrid” approach that combines 2 or more of theseprojections along lines where the mappings align (e.g, “Ar-chitectural Cylindrical”, merging Miller and Lambert EqualArea projections either side of the horizon).

An early content-aware approach was suggested by Zorinand Barr [ZB95], who find image projections that trade-offbetween minimum curvature (deformation of straight lines)and direct viewing (local stretch). These mappings are, how-

ever, cumbersome to specify, and the technique is limited infield of view.

Zelnik Manor et al. [ZMPP] address this problem in thecontext of wide angle panoramas by allowing the user to de-fine multiple regions for a multi-plane perspective renderingof the scene. This works well with scenes in which thereare clear transitions between planar surfaces (e.g., indoors),however, in many cases the optimal choice of projectionsis difficult for the user to define. [GKB] extended this ideato automatically find 2 planar regions per image, typically aground plane, and the plane at infinity.

A more general solution to wide-angle image visualisa-tion was proposed by Carroll et al., who formulate the prob-lem as an optimisation over a set of spatially varying projec-tions. Their optimisation aims to maintain salient structuresand respect user specified constraints, whilst minimising de-viations from a conformal mapping [CAA09, CAA10]. Analternative approach was proposed by Kopf et al [KLD⇤09],who allow the user to manipulate the attitude of scene planesand find a smooth deformation of a cylindrical projectionsurface that satisfies these constraints. Our approach is mostsimilar to the former in that we use image-based constraintsand user-input and optimise for a mapping that minimisesdistortions from conformality.

Other authors have addressed specific content-based ren-dering issues, for example, photographing entire street

c� The Eurographics Association 2015.

Page 2: Content-Aware Projection for Tiny Planetsmatthewalunbrown.com/papers/eg2015.pdf · stereographic projection, but allows for many other variants, 2) a technique to optimise content-aware

M. Brown / Content-Aware Projection for Tiny Planets

Figure 1: Content-Aware projections can be used to close gaps (left), and emphasise salient regions in the scene (right)

scenes with optimal projections to “see” down each street[AAC⇤06, KCSC10], or discovering optimal projections ina video sequence [WLH⇤12]. In this work, we consider thespecific problem of Tiny Planet renderings, where the opti-cal axis is aligned with gravity and the ground plane mappedto a circle (see Section 2). Tiny planets are normally cap-tured using multiple stitched images, as generally the fullview-sphere is required, for this we use an algorithm basedon [BL07].

The novel contributions of this work are: 1) a geomet-ric characterisation of Tiny-Planets that includes the popularstereographic projection, but allows for many other variants,2) a technique to optimise content-aware projections fromthis group, satisfying various objectives: minimum distortionfrom conformality, gap closing, emphasis of salient regions,user constraints, smoothness of mapping.

2. Tiny Planet Projections

Tiny Planets are formed when an ultra wide-angle virtualcamera looks directly at the ground, causing images to ap-pear like tiny worlds. To give an undistorted spherical planet,the optical axis must be aligned with gravity, and projec-tion must be radially symmetric about this axis. Such pro-jections are radially-symmetric azimuthal, since azimuthalangles (directions on the ground plane) are preserved, anddeformation on the altitude angle must be rotationally sym-metric (i.e., independent of azimuth). Mapping from altitude(f) and azimuth (q) to the image plane (u,v) is thus givenby:

uv

�= sr(f)

cosqsinq

�(1)

where r(f) is a monotonic function of f and s is an arbitraryscale factor. An important radially-symmetric azimuthal pro-jection is stereographic (r(f) = sinf/(1+ cosf)), which isthe conformal azimuthal projection, but there are severalother well known projection types of this form, such asdownward-gnonomic (r(f) = tanf) and equidistant (r(f) =f). Our task will be to select a good distortion function r(f)that satisfies various criteria to present a pleasing image tothe viewer.

3. Conformality Constraints

Conformality is a highly desirable property of an imageprojection, resulting in no local stretching or aspect ratiochanges, and this sort of geometry is very pleasing to theeye despite potentially large changes in scale over the im-age. However, the only true conformal mapping that is a ra-dial symmetric azimuthal projection is Stereographic. In asimilar manner to [CAA09], we work from differential defi-nition for conformality, and construct an energy function thatpenalises local deviations from conformality.

Consider the mapping of an elemental patch of the viewsphere at (f,q) to polar render coordinates (r,q). It isstraightforward to show that for no local distortion (stretch)

drdf =

rsinf (2)

This is the conformality condition for radially-symmetric az-imuthal projections (Tiny Planets). Following [CAA09] weform conformality constraints by discretising this equation

ri+1 � ri�12

⇡ ri

sinf (3)

where the index i steps over equal increments in elevationangle f.

4. Content Aware Projection

Conformal mappings are attractive in that they cause no localstretching in the projection, so Stereographic projection is ingeneral a good choice for Tiny Planet renderings. However,in many cases other projections that are close to conformalare more appropriate. For example, image data is commonlymissing at the ground pole because of a tripod used in thecapture process, causing black holes in the centre of the ren-dering. Also, large blank areas in the ground plane or skymay be uninteresting to look at, and we would like to com-press these to occupy a smaller portion of the rendered im-age. We thus propose an objective function that allows someviolation of conformality in areas of the image that are unin-teresting, penalising a weighted sum-squared deviation from

c� The Eurographics Association 2015.

Page 3: Content-Aware Projection for Tiny Planetsmatthewalunbrown.com/papers/eg2015.pdf · stereographic projection, but allows for many other variants, 2) a technique to optimise content-aware

M. Brown / Content-Aware Projection for Tiny Planets

Figure 2: In Stereographic projection (left images), circles tangent to the view sphere are mapped to circles in the render view.Our Content Aware projections (right images) remain close to conformality whilst manipulating the projection based on thecontent (e.g., closing gaps). Tangent circles now map to ellipses with small eccentricity.

conformal coordinate mapping. We define the “conformalityenergy” Ec as:

Ec = Âi

wi

✓ri+1 � ri�1

2� ri

sinf

◆2(4)

where wi is a spatially varying weight. For example,

wi =1N Â

r2{ri�1,ri+1}(I(r,q)� I)2 (5)

weights the conformality penalty at radius r by the variancein the image in a ring at that radius. We have also usedsaliency weightings based on user input, see Section 5.

4.1. Smoothness and Constraints

The formulation above can lead to very sharp changes inthe radial distortion function r(f) where the weights wi aresmall. We mitigate this by a smoothing term that favours so-lutions with smooth changes in the radial distortion function(by minimising the curvature

Rr00(f)2df):

Es = ws Âi(ri+1 �2ri + ri�1)

2 (6)

This has a global weighting relative to the conformality term(ws). We also support hard constraints on the mapping inthe form of linear constraints on ri. This can be used to closegaps at the poles, e.g., r(f) = 0,f < fmin or for more generaluser-specified constraints of the form Cr= d (see Section 5).The final objective function is

r⇤ = minr

Ec +Es, s.t. Cr = d (7)

This gives a constrained least-squares problem for the opti-mal distortion function r⇤ which is solved in closed-form byprojecting to the feasible space of the constraints via SVD.

5. Results

We have tested our content-aware projection technique usinga large database of stitched images. Simple variance basedweighting was found to work well for gap closing and simplecases such as compressing sky (see Figure 1, left images, andFigure 2). However, in more complex cases, user specifiedconstraints were helpful. We experimented with two formsof user constraints:

User Defined Saliency User strokes are applied inequidistant coordinates to specify weightings over the en-tire view sphere. This allows high-level specification of areaswhere conformality should not be violated (Figure 3).

Hard Constraints We also experimented with hard con-straints that specify the mapping of an altitude angle in theinput images to the output. Here the user drags two circles inthe stereographic view to specify the mapping of altitude an-gles. These constraints are incorporated in the Cr = d termin Equation 7 (Figure 4).

Overall the second form was found most effective, withnormally just one or two circle mappings needing to be spec-ified to generate good results. The resulting radial distor-tion functions (r(f)) are similar to those for Stereographicprojection (see Figure 4, right), with small deviations corre-sponding to the user constraints.

6. Conclusions

We have presented a scheme to generate content-specificTiny Planet projections. Projections close to Stereographicwere found to give the best results, with hard user constraintson the mapping of radii giving an effective form of control.

References[AAC⇤06] AGARWALA A., AGRAWALA M., COHEN M.,

SALESIN D., SZELISKI R.: Photographing long scenes withmulti-viewpoint panoramas. In ACM Transactions on Graphics(TOG) (2006), vol. 25, ACM, pp. 853–861. 2

[BL07] BROWN M., LOWE D. G.: Automatic panoramic image

c� The Eurographics Association 2015.

Page 4: Content-Aware Projection for Tiny Planetsmatthewalunbrown.com/papers/eg2015.pdf · stereographic projection, but allows for many other variants, 2) a technique to optimise content-aware

M. Brown / Content-Aware Projection for Tiny Planets

Figure 3: We modulate the conformality penalty based on image based saliency measures such as standard deviation (centre-left) or user input (centre-right, yellow stroke). In this example, both the variance measure and user input give low weight tothe sky and snow, allowing the projection to apply stretch/squash these regions (right).

angle/degrees0 50 100 150

rad

ius

0

0.5

1

1.5

2

2.5

3stereogours

angle/degrees0 50 100 150

rad

ius

0

0.5

1

1.5

2

2.5

3stereogours

Figure 4: The user specifies constraints mapping the red circles to the green circles to expand/contract areas of interest (resultscentre-right). Note that the new projections remain close to stereographic (right).

stitching using invariant features. International Journal of Com-puter Vision 74, 1 (2007), 59–73. 1, 2

[CAA09] CARROLL R., AGRAWALA M., AGARWALA A.: Op-timizing content-preserving projections for wide-angle images.In ACM Transactions on Graphics (TOG) (2009), vol. 28, ACM,p. 43. 1, 2

[CAA10] CARROLL R., AGARWALA A., AGRAWALA M.: Imagewarps for artistic perspective manipulation. ACM Transactionson Graphics (TOG) 29, 4 (2010), 127. 1

[GdGP07] GERMAN D. M., D’ANGELO P., GROSS M., POSTLEB.: New methods to project panoramas for practical and aestheticpurposes. Proceedings of Computational Aesthetics (2007), 15–22. 1

[GKB] GAO J., KIM S. J., BROWN. M. S.: Constructing im-age panoramas using dual-homography warping. In InternationalConference on Computer Vision and Pattern Recognition (CVPR2011), pp. 49–56. 1

[KCSC10] KOPF J., CHEN B., SZELISKI R., COHEN M.: Streetslide: browsing street level imagery. ACM Transactions onGraphics (TOG) 29, 4 (2010), 96. 2

[KLD⇤09] KOPF J., LISCHINSKI D., DEUSSEN O., COHEN-ORD., COHEN M.: Locally adapted projections to reduce panoramadistortions. In Computer Graphics Forum (2009), vol. 28, WileyOnline Library, pp. 1083–1089. 1

[Sze06] SZELISKI R.: Image alignment and stitching: A tutorial.Foundations and Trends R� in Computer Graphics and Vision 2,1 (2006), 1–104. 1

[WLH⇤12] WEI J., LI C.-F., HU S.-M., MARTIN R. R., TAIC.-L.: Fisheye video correction. Visualization and ComputerGraphics, IEEE Transactions on 18, 10 (2012), 1771–1783. 2

[ZB95] ZORIN D., BARR A. H.: Correction of geometric percep-tual distortions in pictures. In Proceedings of the 22nd AnnualConference on Computer Graphics and Interactive Techniques(1995), ACM, pp. 257–264. 1

[ZMPP] ZELNIK-MANOR L., PETERS G., PERONA P.: Squaringthe circle in panoramas. In Tenth IEEE International Conferenceon Computer Vision (ICCV 2005), vol. 2, pp. 1292–1299. 1

c� The Eurographics Association 2015.


Recommended