39
computer graphics & visualization Image Synthesis NPR – Non-photorealistic rendering

Image Synthesis

  • Upload
    bikita

  • View
    31

  • Download
    0

Embed Size (px)

DESCRIPTION

Image Synthesis. NPR – Non-photorealistic rendering. NP vs. NPR?. PR vs. NPR. Why NPR?. Reasons against photorealism?. Too much (unnecessary) information  maps, technical/medical illustrations Constraints Creativity  improper for caricatures, comics , art - PowerPoint PPT Presentation

Citation preview

Page 1: Image Synthesis

computer graphics & visualization

Image Synthesis

NPR – Non-photorealistic rendering

Page 2: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

NP vs. NPR?

Page 3: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

PR vs. NPR

Page 4: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Why NPR?“Science”:

Convey information more efficiently by reduction,

abstraction, accentuation

“Art”:create novel artistic,

creative imagery

Page 5: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Reasons against photorealism?• Too much (unnecessary) information

maps, technical/medical illustrations

• Constraints Creativity improper for caricatures, comics, art

• Time consuming image generation (probably) not feasible for real-time applications

• No room for the fantasy of the viewer

„Photorealism, like pornography, leaves nothing to the imagination“- Cassidy Curtis

Page 6: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ApplicationsArt

Page 7: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ApplicationsComics/ Cartoons

Page 8: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ApplicationsArchitecture

Page 9: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ApplicationsMaps

Page 10: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ApplicationsMaps

Page 11: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ApplicationsMedicine

Page 12: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ApplicationsMedicine

Page 13: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ApplicationsTechnicalIllustrations

Page 14: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ApplicationsArcheology

Page 15: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

BasicsObject Space Screen Space3D 2DGeometry processing Image processingObject Precision Screen Precision

Pseudo code: „for each Object do…“

Pseudo code:„for each Pixel do…“

Usually does not require recomputation on affine transformations

Recomputation every time the image changes ( no frame-to-frame coherence „Shower Door Effect“)

Page 16: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

AlgorithmsToon/Cell Shading

Sketching

Halftoning

Screening

Stippling

Page 17: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Toon Shading

Toon/Cell Shading:Rendering technique to create cartoon like movies

Page 18: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Toon Shading

- large homogenous regions- very few colors- enhanced silhouettes - simple geometry- reduction to important elements

Motivation:Simpel and (semi-) automatic (mass-) production of comics

Page 19: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Toon ShadingColor computation (object space):

precompute 2-3 shades for each color (Light-/ Shadow- color) and store them in a 1D texture

assignment of final color by 1D texture lookup

1D texture

surface

Page 20: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Toon ShadingSilhouettes (Screen Space)

• generate Depth map• find discontinuities

• generate normal map• find discontinuities

Page 21: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Toon ShadingCombination of both silhouette detections ideas:

Technical Illustrations:

Page 22: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Sketching

Sketching:Automatic method to create computer images that look like and hand-made drawings

Page 23: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Computer SketchingMotivation:• Ideal to present concepts (architecture) • Precise Depiction often looks very sterile

Methods:• Use special output device• Image space post-processing• Object space 3D model modification

Page 24: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Computer SketchingExample: Object space approach:• Pseudo-Randomly change length of lines• Cut lines into multiple sub-lines• Move line center

Page 25: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Halftoning

Halftoning: Reproduce (color/grayscale) images with a (very) limited amount of colors, usually only black/white

“Historically”, a necessity to print images in newspapers

Page 26: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

HalftoningAlgorithm:• Input: Gray scale image• Group pixles ( loss of image resolution)• Compute average intensity• Replace group by dither matrix

2 9 4

6 1 8

7 3 5

Page 27: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Halftoning

limited resolution of the human visual system

Page 28: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Error Diffusion

Floyd and Steinberg

Page 29: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Screening• Bild Screening:

Artistic variation of the halftoning algorithm

Replaces the simple dither matrix by one ore more complex images

Page 30: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

ScreeningScreening with text

Page 31: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Stippling

Stippling: Construct an image of a large number of dots

Page 32: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Pointillismus

Georges Seurat - Ein Sonntagnachmittag auf der Insel La Grande Jatte

Page 33: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Stippling• Motivation:

• Results in very “clean/cold” illustrations• Very time-consuming to create manually

• Applications: • Scientific and technical illustrations• Art• Print media

Page 34: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

StipplingStipple points simulate both tone and texture.

Usually a uniform distribution without any recognizable pattern is used

Page 35: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

StipplingObject space:• prioritized line textures

Page 36: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Stippling• Other prioritized line textures

Page 37: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Stippling

Page 38: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Object / Image Space Stippling

Page 39: Image Synthesis

computer graphics & visualization

Image Synthesis – WS 07/08Dr. Jens Krüger – Computer Graphics and Visualization Group

Object / Image Space Stippling

black-and-white stippling

Supersampling in screen spacesurface based anti-aliasing