1 Artistic Resizing A Technique for Rich Scale-Sensitive Vector Graphics Merci de ne pas diffuser avant le 30 octobre 05 (brevet en cours) Pierre Dragicevic.

Slides:



Advertisements
Similar presentations
Lecture 3: Transformations and Viewing. General Idea Object in model coordinates Transform into world coordinates Represent points on object as vectors.
Advertisements

3D Geometry for Computer Graphics
CS 691 Computational Photography Instructor: Gianfranco Doretto Image Warping.
Computer Graphics Lecture 4 Geometry & Transformations.
Chapter 8 Content-Based Image Retrieval. Query By Keyword: Some textual attributes (keywords) should be maintained for each image. The image can be indexed.
Morphing Rational B-spline Curves and Surfaces Using Mass Distributions Tao Ju, Ron Goldman Department of Computer Science Rice University.
1 Computer Graphics Chapter 6 2D Transformations.
2D Geometric Transformations
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz
Linear Algebra and SVD (Some slides adapted from Octavia Camps)
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2008 Some slides from Steve Seitz
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2005 Some slides from Steve Seitz
Ch. 2: Rigid Body Motions and Homogeneous Transforms
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Computer Graphics (Fall 2008) COMS 4160, Lecture 3: Transformations 1
Image warping/morphing Digital Video Special Effects Fall /10/17 with slides by Y.Y. Chuang,Richard Szeliski, Steve Seitz and Alexei Efros.
Image Warping Computational Photography Derek Hoiem, University of Illinois 09/27/11 Many slides from Alyosha Efros + Steve Seitz Photo by Sean Carroll.
CS 450: Computer Graphics 2D TRANSFORMATIONS
Mathematical Fundamentals
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
Image Warping (Szeliski 3.6.1) cs129: Computational Photography James Hays, Brown, Fall 2012 Slides from Alexei Efros and Steve Seitz
Chapter 4.1 Mathematical Concepts
Computer Graphics Group Tobias Weyand Mesh-Based Inverse Kinematics Sumner et al 2005 presented by Tobias Weyand.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
Warping CSE 590 Computational Photography Tamara Berg.
Image Warping Computational Photography Derek Hoiem, University of Illinois 09/24/15 Many slides from Alyosha Efros + Steve Seitz Photo by Sean Carroll.
Geometric Transforms Changing coordinate systems.
Geometric Transformations Jehee Lee Seoul National University.
Computer Graphics. Requirements Prerequisites Prerequisites CS 255 : Data Structures CS 255 : Data Structures Math 253 Math 253 Experience with C Programming.
CSCE 552 Spring 2011 Math By Jijun Tang. Layered.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
Image Warping Computational Photography Derek Hoiem, University of Illinois 09/23/10 Many slides from Alyosha Efros + Steve Seitz Photo by Sean Carroll.
Geometric Transformations
Computer Graphics, KKU. Lecture 51 Transformations Given two frames in an affine space of dimension n, we can find a ( n+1 ) x ( n +1) matrix that.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Affine Transformations.
David Levin Tel-Aviv University Afrigraph 2009 Shape Preserving Deformation David Levin Tel-Aviv University Afrigraph 2009 Based on joint works with Yaron.
EECS 274 Computer Vision Affine Structure from Motion.
Geometric Transformations
In the name of God Computer Graphics.
Animation CS418 Computer Graphics John C. Hart.
Multimedia Programming 07: Image Warping Keyframe Animation Departments of Digital Contents Sang Il Park.
Geometric Transformations Sang Il Park Sejong University Many slides come from Jehee Lee’s.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
Lecture 5: Introduction to 3D
Affine Geometry.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 3: Transformations 1
1 ACM SAC’2008 – Fortaleza, Ceará, Brazil, March 16-20, 2008 An Intelligent Editor for Multi-Presentation User Interfaces Benoît Collignon 1, Jean Vanderdonckt.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Recap from Monday DCT and JPEG Point Processing Histogram Normalization Questions: JPEG compression levels Gamma correction.
Image Warping Many slides from Alyosha Efros + Steve Seitz + Derek oeim Photo by Sean Carroll.
1 ICAS’2008 – Gosier, March 16-21, 2008 Model-Driven Engineering of Multi-Target Plastic User Interfaces Benoît Collignon 1, Jean Vanderdonckt 1, Gaëlle.
CS559: Computer Graphics Lecture 7: Image Warping and Panorama Li Zhang Spring 2008 Most slides borrowed from Yungyu ChuangYungyu Chuang.
4. Affine transformations. Reading Required:  Watt, Section 1.1. Further reading:  Foley, et al, Chapter  David F. Rogers and J. Alan Adams,
Image Warping 2D Geometric Transformations
Main characteristics of Vector graphics  Vector graphics provide an elegant way of constructing digital images (diagrams, technical illustration and.
Transformations University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner.
Computer Graphics Lecture 15 Fasih ur Rehman. Last Class Combining Transformations Affine versus Rigid body Transformations Homogenous Transformations.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3. Transformation
Graphics Fundamentals
Computer Graphics Transformations
CSC4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Transformations.
(c) University of Wisconsin, CS559
Geometrical Transformations
Transformations 2 University of British Columbia
Translation in Homogeneous Coordinates
Presentation transcript:

1 Artistic Resizing A Technique for Rich Scale-Sensitive Vector Graphics Merci de ne pas diffuser avant le 30 octobre 05 (brevet en cours) Pierre Dragicevic Stéphane Chatty David Thevenin Jean-Luc Vinot Direction Générale de l’Aviation Civile

2 Graphical designers are given more and more importance in GUIs Exploitation of vector graphics (e.g, Scalable Vector Graphics) IntuiKit [Chatty et al, UIST’04] Graphically Rich User Interfacs

3 The Resizing Problem Fixed size Naive scaling Common resizing

4 Expressing Resizing Resizing is commonly described using formulae These formulae are: Translated into code by the programmer Or used as an input to constraint-solving systems w h wLwL hLhL yLyL xLxL r hBhB wBwB  x L = (w-w L ) / 2  y L = (h-h L ) / 2  w L = 20  h L = 10  w B = 5  h B = 5  r = 20

5 Expressing Resizing But designers think visually They are used to produce visual declinations Variants are also useful to convey general laws On white paper On black paper On red paper Medium size Small size

6 Expressing Resizing Layout design relies on perception and aesthetics Does not translate into simple formulae

7 Artistic Resizing 1. Designers produce variants using their authoring tool 2. IntuiKit interprets the example set

8 Artistic Resizing Support for invariants but also for complex laws w h wLwL hLhL yLyL xLxL r hBhB wBwB  x L = (w-w L ) / 2  y L = (h-h L ) / 2  w L = 20  h L = 10  w B = 5  h B = 5  r = 20

9 Artistic Resizing A scenario

10 Artistic Resizing A scenario

11 Artistic Resizing A scenario

12 Artistic Resizing A scenario

13 Artistic Resizing A scenario

14 Artistic Resizing A scenario

15 Artistic Resizing A scenario

16 Artistic Resizing How does it work? Assumes the exclusive use of: Copy & paste for adding new examples Affine transformation tools (move, scale, rotate, shear) Based on local interpolation of transformations T1T1 T1’T1’

17 Artistic Resizing How does it work? Each variant of T1 is associated with the example’s bounding box T1T1 T1’T1’ ? T 1 ’’ T 1 ’’’

18 Artistic Resizing How does it work? Problem of multivariate interpolation width height T1’T1’ T 1 ’’’ T 1 ’’ transf. T1T1 ?

19 An affine transformation matrix: Artistic Resizing Orthogonal Interpolation a 11 a 12 a 13 a 21 a 22 a T1T1 X Y 1 X0X0 Y0Y0 1 =

20 Orthogonal Interpolation hypothesis: Width only impacts the X contribution Height only impacts the Y contribution Artistic Resizing Orthogonal Interpolation a 11 a 12 a 13 a 21 a 22 a X Y 1 X0X0 Y0Y0 1 = width height

21 Artistic Resizing Orthogonal Interpolation X and Y contributions are projected onto separate axis: width T1T1 a 11 a 12 a 13 a 21 a 22 a 23 height X transf. Y transf.

22 A piecewise linear interpolation is performed on each axis: Artistic Resizing Orthogonal Interpolation width height X transf. Y transf. → + a 11 a 12 a 13 a 21 a 22 a 23 a 11 a 12 a 13 a 21 a 22 a T

23 Artistic Resizing Properties of Orthogonal Interpolation Structure-independent: The interpolation is independent from the way points have been structured into shapes and groups (Sodipodi) (Illustrator) p2 T1T1 T1’T1’ T2T2 T2’T2’ p1 p2 p1 T T’ g g p2 p1 p2 p1 

24 Artistic Resizing Properties of Orthogonal Interpolation Preserves algebraic measures: If horizontal or vertical distances are the same on the examples they will remain the same

25 Artistic Resizing Properties of Orthogonal Interpolation Preserves relative ratios: Ratios that are invariant on the examples will remain invariant

26 Artistic Resizing Properties of Orthogonal Interpolation Preserves contacts: Two points that coincide on the examples will always coincide

27 Artistic Resizing Properties of Orthogonal Interpolation Preserves parallelism: Two lines that are parallel on the examples will remain parallel

28 Artistic Resizing Limitations of Orthogonal Interpolation Does not support composition: Composing interpoled transformations may lead to non-linear resizing behaviors T1T1 T 2 = Scale(1) T 3 = Scale(1) T4T4 T1T1 T 2 = Scale(0.1) T 3 = Scale(20) T4T4 Scale = 1 Scale = 2 A B  T1T1 T 2 = Scale(0.55) T 3 = Scale(10.5) T4T4 Scale = ( A + B )/ 2 

29 Artistic Resizing Limitations of Orthogonal Interpolation Does not support composition: Scenegraphs must be normalized by pre-composing transformation matrices T1T1 T2T2 T 3 = Scale(1) T4T4 T1T1 T2T2 T 3 = Scale(2) T4T4 Scale = 1 Scale = 2 A B T1T1 T2T2 T 3 = Scale(1.5) T4T4 Scale = 1.5 ( A + B )/ 2  

30 Artistic Resizing Limitations of Orthogonal Interpolation Does not support pure rotations: Rotation = Xshear + Yshear

31 Artistic Resizing Limitations of Orthogonal Interpolation Dependent from the coordinates frame: Interpolation properties depend on the orientation

32 Artistic Resizing Limitations of Orthogonal Interpolation Does not support cross-axis constraints: No circles, squares, or «squeezing» effects

33 Artistic Resizing Limitations of Orthogonal Interpolation Does not support high-level constraints: e.g., objects can’t be told to « carriage return »

34 Artistic Resizing vs. Animation Interpolation Techniques: Separate storage of rotation (Flash, Director,…) Polar decomposition [Shoemake et al. 92] Animation: Monovariate (time) Axis-independence Objects rotate (rigidity) Can be precomputed GUI Resizing: Bivariate (width+height) Screen dependence Objects are « elastic » Must update interactively

35 Demonstrational layout specification systems: Peridot [Myers 90] Chimera [Kurlander & Feiner 93] Constraint inference: Extensive search for invariants Sensitive to combi- natorial explosion Over-constrained or unintended rules Artistic Resizing vs. Constraint Inference Orthogonal interpolation: Ensures the preservation of « interesting » invariants Fast computation, even with complex vector graphics Limitations are known, results are easy to predict

36 Artistic Resizing Other Related Work Layout models: Boxes and glue (TeX, Swing,…) 9-part tiling technique [Hudson & Tanaka 00] Constraints: Textual formulae Graphical frontends [Hudson & Mohamed 90] Image interpolation: Multiple Master Fonts Shape blending, image morphing

37 Artistic Resizing Future Work More extensive support for SVG attributes Support for parametrization Blending with traditional layout managers: Testing with graphical designers

38 Artistic Resizing Future Work More extensive support for SVG attributes Support for parametrization Blending with traditional layout managers: Testing with graphical designers

39 Artistic Resizing Questions ?