multiscale moment-based painterly rendering

27
Multiscale Moment- Based Painterly Rendering Diego Nehab and Luiz Velho [email protected] [email protected]

Upload: cybill

Post on 16-Jan-2016

52 views

Category:

Documents


4 download

DESCRIPTION

Multiscale Moment-Based Painterly Rendering. Diego Nehab and Luiz Velho [email protected] [email protected]. Overview of presentation. Introduction Moment-based painterly rendering Original contributions Multiscale approach Parametrized dithering Image abstraction - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Multiscale Moment-Based Painterly Rendering

Multiscale Moment-Based Painterly Rendering

Diego Nehab and Luiz [email protected]

[email protected]

Page 2: Multiscale Moment-Based Painterly Rendering

Overview of presentation

• Introduction– Moment-based painterly rendering

• Original contributions– Multiscale approach– Parametrized dithering– Image abstraction

• Results, conclusions and future work

Page 3: Multiscale Moment-Based Painterly Rendering

Review of MBPR

• Goal: automatically create painting-like images from digital photographs

• Proceed as an artist who progressively strokes a canvas

• Each stroke approximates a neighborhood of the input image

• First step: Analyze input image and compute stroke list

• Second step: Blend strokes together to produce final image

Page 4: Multiscale Moment-Based Painterly Rendering

Analysis step

• Determine stroke distribution– More strokes close to high frequencies– Do not allow gaps larger than stroke size

• Compute parameters for each stroke– Color is given by input color at position– Remaining parameters come from image-

moment theory

Page 5: Multiscale Moment-Based Painterly Rendering

Stroke distribution

• Stroke area image– For each pixel, shows area of stroke at position– Dark values correspond to small strokes…– ...which in turn correspond to high frequencies

• Stroke positions image– Carefully dithered version of stroke are image– Density inversely proportional to stroke areas– No large empty regions

Page 6: Multiscale Moment-Based Painterly Rendering

Stroke area Image

• Dark regions mean smaller strokes, or higher frequencies

• Size of neighborhoods being considered determine range of frequencies captured

Page 7: Multiscale Moment-Based Painterly Rendering

Stroke positions image

• High frequencies yield more strokes

• No holes larger than neighborhood size

Page 8: Multiscale Moment-Based Painterly Rendering

Stroke parameters

• Position within neighborhood

• Width and Length• Orientation• Color• Template alpha map is

fixed throughout

(xc, yc)L

W

Page 9: Multiscale Moment-Based Painterly Rendering

Color distance Image

• Given a color and a neighborhood, compute distance from color to that of each pixel

• Captures the shape of the stroke

Page 10: Multiscale Moment-Based Painterly Rendering

Computing stroke parameters

• Color is pixel color at neighborhood center

• Remaining parameters correspond to a rectangle similar to color difference image

Page 11: Multiscale Moment-Based Painterly Rendering

Synthesis step

• Blend stroke list together to produce final painted image

QuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.

QuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.

Page 12: Multiscale Moment-Based Painterly Rendering

What to improve?

• Stroke sizes do not vary all that much– Real color difference images are not high contrast

• Large features must be composed by many strokes– Those that are larger than the neighborhood size

• Too many strokes used to cover all image• Stroke distribution end up being too uniform

Page 13: Multiscale Moment-Based Painterly Rendering

How to improve?

• Capture strokes at several different resolutions– How to prevent high-res strokes from

completely overwriting low-res strokes?

• Use a parametrized dithering algorithm– Hi-res strokes gradually concentrate only on

edges

Page 14: Multiscale Moment-Based Painterly Rendering

QuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.QuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.

Multi-resolution

• Use a pyramid of resolutions to capture strokes on wider frequency range

• Blend hi-res levels on top of low-res levels

Page 15: Multiscale Moment-Based Painterly Rendering

Parametrized dithering

• Transform area value before dithering

• Diffuse error randomly in all directions

• Parameter e enhances values close to edges

• Parameter s controls stroke spreading limit

• Both parameters are changed within levels

Page 16: Multiscale Moment-Based Painterly Rendering

2425 strokes2453 strokes5771 strokes10294 strokes

Varying the parameters

• Empirical formulas adjust dithering parameters as a function of resolution

Page 17: Multiscale Moment-Based Painterly Rendering

Com

pari

son

sing

lesc

ale

63933 strokes

QuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.

Page 18: Multiscale Moment-Based Painterly Rendering

Com

pari

son

mul

tisc

ale

QuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.

20883 strokes

Page 19: Multiscale Moment-Based Painterly Rendering

• Operations performed are:– rotation, scaling and blending

– color difference image, stroke are image• Performed over small neighborhoods

• Requirements are:– Avoid copy operations

– Avoid memory allocation

– General enough to be used always

– As simple as possible

Image abstraction

Page 20: Multiscale Moment-Based Painterly Rendering

Simple structure

• Neighborhood representation is uniform, and shares buffer with original image

• All graphics primitives operates equally in images and neighborhoods

• Clipping logic is isolated in only one function

• No copies needed

Page 21: Multiscale Moment-Based Painterly Rendering

Results: gallery

Page 22: Multiscale Moment-Based Painterly Rendering
Page 23: Multiscale Moment-Based Painterly Rendering
Page 24: Multiscale Moment-Based Painterly Rendering
Page 25: Multiscale Moment-Based Painterly Rendering
Page 26: Multiscale Moment-Based Painterly Rendering

Conclusions

• Multiscale approach can produce images with less strokes and wider frequency range

• Parametrized dithering algorithm provides better control over stroke distribution

• Image abstraction provides good performance and simplifies code

Page 27: Multiscale Moment-Based Painterly Rendering

Future work

• Let low-res levels contribution influence stroke parameter computation for higher levels

• Can we achieve photo-realism, or perhaps use ideas to compact image?

• Explore coherence in stroke lists to help NPR animations