Image-Guided Maze Construction 논문 세미나 고려대학교 그래픽스 연구실 윤종철 2007.10.18 1.

Slides:



Advertisements
Similar presentations
Decision Maths Networks Kruskals Algorithm Wiltshire Networks A Network is a weighted graph, which just means there is a number associated with each.
Advertisements

Label Placement and graph drawing Imo Lieberwerth.
Graphs Chapter 12. Chapter Objectives  To become familiar with graph terminology and the different types of graphs  To study a Graph ADT and different.
A Gimp Plugin that uses “GrabCut” to perform image segmentation
Train DEPOT PROBLEM USING PERMUTATION GRAPHS
Rajat K. Pal. Chapter 3 Emran Chowdhury # P Presented by.
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
ITEC200 – Week 12 Graphs. 2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study.
1 Spanning Trees Lecture 20 CS2110 – Spring
Automated Layout and Phase Assignment for Dark Field PSM Andrew B. Kahng, Huijuan Wang, Alex Zelikovsky UCLA Computer Science Department
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Image Quilting for Texture Synthesis and Transfer Alexei A. Efros1,2 William T. Freeman2.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
Spring 2010CS 2251 Graphs Chapter 10. Spring 2010CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs.
Fall 2007CS 2251 Graphs Chapter 12. Fall 2007CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs To.
Interactive Layout Design Optimization Author: Jeremy J. Michalek Presented by: Hoda Homayouni.
More Graph Algorithms Weiss ch Exercise: MST idea from yesterday Alternative minimum spanning tree algorithm idea Idea: Look at smallest edge not.
Minimum Spanning Trees. Subgraph A graph G is a subgraph of graph H if –The vertices of G are a subset of the vertices of H, and –The edges of G are a.
Graph Theory in Computer Science
0 Course Outline n Introduction and Algorithm Analysis (Ch. 2) n Hash Tables: dictionary data structure (Ch. 5) n Heaps: priority queue data structures.
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
1 Optimal Cycle Vida Movahedi Elder Lab, January 2008.
 2004 SDU Lecture 7- Minimum Spanning Tree-- Extension 1.Properties of Minimum Spanning Tree 2.Secondary Minimum Spanning Tree 3.Bottleneck.
Stylization and Abstraction of Photographs Doug Decarlo and Anthony Santella.
Spanning Trees CSIT 402 Data Structures II 1. 2 Two Algorithms Prim: (build tree incrementally) – Pick lower cost edge connected to known (incomplete)
V Spanning Trees Spanning Trees v Minimum Spanning Trees Minimum Spanning Trees v Kruskal’s Algorithm v Example Example v Planar Graphs Planar Graphs v.
Lecture 19 Greedy Algorithms Minimum Spanning Tree Problem.
Semantic Wordfication of Document Collections Presenter: Yingyu Wu.
Introduction to Graph Theory
SPANNING TREES Lecture 20 CS2110 – Fall Spanning Trees  Definitions  Minimum spanning trees  3 greedy algorithms (incl. Kruskal’s & Prim’s)
Graphs. Graphs Similar to the graphs you’ve known since the 5 th grade: line graphs, bar graphs, etc., but more general. Those mathematical graphs are.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
Spanning Tree Algorithms William T. Trotter and Mitchel T. Keller Math 3012 – Applied Combinatorics Spring 2009.
Graph Theory Trees. WHAT YOU WILL LEARN Trees, spanning trees, and minimum-cost spanning trees.
Trees Dr. Yasir Ali. A graph is called a tree if, and only if, it is circuit-free and connected. A graph is called a forest if, and only if, it is circuit-free.
X-Toon: An Extended Toon Shader Pascal Barla, Joelle Thollot ARTIS GRAVIR/IMAGE INRIA Lee Markosian University of Michigan.
Lecture 19 Minimal Spanning Trees CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Tree Diagrams A tree is a connected graph in which every edge is a bridge. There can NEVER be a circuit in a tree diagram!
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Graphs 1 Neil Ghani University of Strathclyde. Where are we …. We studied lists: * Searching and sorting a list Then we studied trees: * Efficient search.
DESIGN ELEMENTS AND COMPOSITION By Sofia Obien 2015.
Rapidly-Exploring Random Trees
Proof technique (pigeonhole principle)
Announcements CS accounts Project 1 is out today
Minimum Spanning Tree Chapter 13.6.
Minimum Spanning Trees and Shortest Paths
Short paths and spanning trees
Reconstructing Shredded Documents
Autumn 2016 Lecture 11 Minimum Spanning Trees (Part II)
Graph Algorithm.
Connected Components Minimum Spanning Tree
Minimum Spanning Tree.
Graphs Chapter 13.
4-4 Graph Theory Trees.
Kruskal’s Algorithm for finding a minimum spanning tree
Chapter 23 Minimum Spanning Tree
Problem Solving 4.
Networks Kruskal’s Algorithm
Announcements Project 1 is out today
Automated Layout and Phase Assignment for Dark Field PSM
離散數學 DISCRETE and COMBINATORIAL MATHEMATICS
Autumn 2016 Lecture 10 Minimum Spanning Trees
Lecture 19 Linear Program
Minimum Spanning Trees (MSTs)
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Warm Up – Monday Calculate the Redundancy of the above network.
CSE 332: Minimum Spanning Trees
Minimum-Cost Spanning Tree
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Image-Guided Maze Construction 논문 세미나 고려대학교 그래픽스 연구실 윤종철

목차 Abstract Introduction Maze basics Related work Maze textures ◦ Directional mazes ◦ Spiral and vortex mazes ◦ Random mazes ◦ User-defined lines User-specified solution paths Additional effects ◦ Tone reproduction ◦ Foreshortening Implementation and results Conclusions and Future Work 2

Abstract a set of graphical and combinatorial algorithms for designing mazes based on images 3

Introduction 4

Introduction Mazes and labyrinths have enjoyed a long, venerable tradition in the history of art and design. They have been used as pure visual art, as architectural decoration, and as cultural and religious artifacts An interactive application that lets a designer author a maze at a high level. 5

Related work Vortex maze construction [Jie Xu 2006] ◦ Technique for drawing abstract geometric mazes based on arrangements of vortices Organic Labyrinths and Mazes [Pedersen 2006] ◦ Single paths with no branch 6

Maze basics Kruskal’s algorithm ◦ 1. graph 의 모든 edge 를 가중치로 오름차순 정렬 ◦ 2. 가중치가 가장 작은 곳에 edge 를 삽입, 이때 cycle 을 형성하는 edge 는 삽입할 수 없으므로 다 음 가중치가 작은 edge 삽입 ◦ 3. n-1 개의 edge 를 삽입할 때까지 2 반복 ◦ 4. edge 가 n-1 개가 되면 spanning tree 완성 7

Maze basics Kruskal’s algorithm ◦ Cycle 판별  a 와 b 라는 노드가 선택되었을 때,  1) a 와 b 가 서로 다른 집합이면 a 와 b 는 연결해도 cycle 이 생기지 않는다.  2) a 와 b 가 서로 같은 집합에 속해 있다면 a 와 b 를 연결하면 cycle 이 생긴다.  1 번의 경우 edge 를 연결하고 a 가 속한 집합과 b 가 속한 집합 을 합쳐주고, 2 번의 경우에는 edge 를 선택하지 않는다. 8

Maze basics 9

ex) To bias maze construction ◦ 0<a<b<1 ◦ Assign horizontal walls weights chosen from the interval [0,b], and vertical walls weights from [a,1] Horizontal walls are therefore more likely to be deleted first 10

11

12

13 Perfect maze : When each of these paths is unique then the maze contains no cycles and is called perfect

14

Segmentation 15 not automate the segmentation, Intelligent Scissors [Mortensen 1995]

Maze textures ◦ Directional mazes ◦ Spiral and vortex mazes ◦ Random mazes ◦ User-defined lines 16

Maze textures (a) directional region (b) spiral region, (c) random region (d) user-defined lines 17

18

Vortex texture 19

20

21

Random texture 22

Random texture 23

User-specified solution paths 24

User-specified solution paths 25

User-specified solution paths 26

User-specified solution paths 27

User-specified solution paths 28 A B C ABCABC

User-specified solution paths 29 α β A B C ABCABC > (O)

User-specified solution paths 30

User-specified solution paths 31

User-specified solution paths 32

Avoidance direct passages 33

Additional effects Tone reproduction Foreshortening 34

Tone reproduction 35

Tone reproduction Lightness G = (S-W)/S ◦ S : the spacing between the centres of the lines ◦ W : line Width ◦ P : passage width  S-W 36 S W P

Tone reproduction We define ◦ minimum line width W min ◦ minimum passage width P min ◦ The largest acceptable line spacing S max The darkest tone : ◦ S = S max, S−W = P min ◦ lightness G min = P min /S max Similarly, the lightest available tone is G max = (S max −W min )/S max 37

Tone reproduction Both passage width and line width are minimized ◦ G thresh = P min / P min +W min ◦ G’ is computed by mapping G into the range [G min,G max ] When G’<=G thresh, S=P min /G’, W=P min (1-G’)/G’ When G>G thresh, S=W min (1-G’), W=W min 38

Foreshortening 39

40

Implementation and results C++, CGAL library Design process requires only a few minutes of user interaction Multi-thread 41

Results 42

Results 43

Results 44

Results 45

Conclusions and Future Work A system for designing mazes that are stylized line drawings of images The perfect mazes we construct here are but one possible maze topology. ◦ It is also possible to construct mazes containing cycles, or indeed mazes with no dead ends at all Mathematical structure and human psychology 46

END 47