1 / 23

Graphcut Textures

This paper presents a novel algorithm for texture synthesis in images and videos using graph cuts. It discusses patch placement, the graph cut technique, and provides results for both image and video synthesis. The algorithm is fast and can generate realistic textures within seconds to minutes.

vcabral
Download Presentation

Graphcut Textures

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphcut Textures Image and Video Synthesis Using Graph Cuts Vivek Kwatra, Arno Schödl, Irfan Essa, Greg Turk and Aaron Bobick

  2. Overview • Brief Introduction to Texture Synthesis • Related Work • The Graph Cut Technique • Patch Placement • Image Synthesis Results • Video Synthesis • Conclusion

  3. Texture Synthesis • The ability to generate a reasonable amount of texture from a sample input texture or from some training data

  4. Related Work • Three Classes of Algorithms • Pixel Based • Parametric Model • Use a fixed number of parameters • Non-parametric Model • Use a collection of exemplars to model the texture • Patch Based • Uses patches of texture from the input texture

  5. Image Quilting min. error boundary • Patches of texture overlap, a dynamic programming algorithm is used to find the minimum error boundary between the patches

  6. Max Flow / Min Cut Problem • Problem: Find the maximum amount that can flow from s to t • Theorem: The maximal amount of a flow is equal to the capacity of a minimal cut

  7. A new way to find the cut • Model overlapping patches as directed graphs • Assign sources and sinks, and set the edges of adjacent pixel equal color difference • M(1, 4, A, B) = ||A(1) - B(1)|| + ||A(4) - B(4)|| • run the max flow algorithm to find optimal seam

  8. Accounting for Old Seams • We can incorporate old seam costs into the problem, and thus determine which pixels (if any) from the new patch should cover over some of the old seams.

  9. Surrounded Regions • Sometimes we may want to cover old seams

  10. Patch Placement • We’ve talked about how to slice and dice, but how do we lay down the texture patches? • Random Placement: Fast and works well for random textures • Entire Patch Matching: Normalize the sum-of-squared-differences and divide by area of patch. Pick a random, but good match. • Sub-Patch Matching: Pick a place in the output texture to place a patch, then search the input texture for the best match

  11. Results

  12. Results

  13. Results

  14. Extensions and Refinements • Adapting the Cost Function: Pay attention to frequency content present in the image or video • Feathering and multi-resolution splining: Reduces ability to notice obvious seams • FFT-Based Acceleration: For patch matching. SSD can be expensive. One example had a reduction of 10 minutes to 5 seconds after switching to the FFT method.

  15. Additional Transformations • Input image can be rotated, mirrored and scaled to produce interesting results

  16. Additional Transformations Continued

  17. Rotation Example • Image Quilting vs Graph Cut Graph Cut Result Image Quilting Result Input

  18. Interactive Graph Cuts • User has a hand in placing image, graph cut algorithm then finds the best cut

  19. Interactive Graph Cuts Continued

  20. Video Synthesis • Video textures turn existing video into an infinitely playing form by finding smooth transitions from one part of the video to another • Patches in the case of video are the whole 3D space-time blocks of video

  21. Video Synthesis Continued

  22. Conclusion • A new texture synthesis algorithm was introduced that works not only in 2D, but in 3D • It’s has advantages over previous patch based methods • It’s very fast, taking between 5 seconds and 5 minutes to generate results

  23. Questions • Any questions?

More Related