Lecture 13 Shape from Shading 2 Looking at finding normal, not distance Normal: Describe the shape Assuming point light source is far away p,q are unknowns.

Slides:



Advertisements
Similar presentations
Bayesian Belief Propagation
Advertisements

Heuristic Search techniques
Local Search Algorithms
Ali Husseinzadeh Kashan Spring 2010
CS6800 Advanced Theory of Computation
1 An Adaptive GA for Multi Objective Flexible Manufacturing Systems A. Younes, H. Ghenniwa, S. Areibi uoguelph.ca.
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
Exact and heuristics algorithms
Tetris – Genetic Algorithm Presented by, Jeethan & Jun.
NUS CS5247 Motion Planning for Camera Movements in Virtual Environments By Dennis Nieuwenhuisen and Mark H. Overmars In Proc. IEEE Int. Conf. on Robotics.
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
Introduction to Genetic Algorithms Yonatan Shichel.
Data classification based on tolerant rough set reporter: yanan yean.
Genetic Algorithms GAs are one of the most powerful and applicable search methods available GA originally developed by John Holland (1975) Inspired by.
Fuzzy Simulated Evolution for Power and Performance of VLSI Placement Sadiq M. SaitHabib Youssef Junaid A. KhanAimane El-Maleh Department of Computer Engineering.
Genetic Algorithms Learning Machines for knowledge discovery.
Artificial Intelligence Genetic Algorithms and Applications of Genetic Algorithms in Compilers Prasad A. Kulkarni.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Basic concepts of Data Mining, Clustering and Genetic Algorithms Tsai-Yang Jea Department of Computer Science and Engineering SUNY at Buffalo.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
Recap Low Level Vision –Input: pixel values from the imaging device –Data structure: 2D array, homogeneous –Processing: 2D neighborhood operations Histogram.
Efficient Model Selection for Support Vector Machines
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
1 Local search and optimization Local search= use single current state and move to neighboring states. Advantages: –Use very little memory –Find often.
Genetic algorithms Prof Kang Li
Optimization in Engineering Design Georgia Institute of Technology Systems Realization Laboratory Mixed Integer Problems Most optimization algorithms deal.
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Optimization Problems - Optimization: In the real world, there are many problems (e.g. Traveling Salesman Problem, Playing Chess ) that have numerous possible.
Fuzzy Genetic Algorithm
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
A Memetic Algorithm for VLSI Floorplanning Maolin Tang, Member, IEEE, and Xin Yao, Fellow, IEEE IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS—PART.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
A New Evolutionary Approach for the Optimal Communication Spanning Tree Problem Sang-Moon Soak Speaker: 洪嘉涓、陳麗徽、李振宇、黃怡靜.
Exact and heuristics algorithms
Learning by Simulating Evolution Artificial Intelligence CSMC February 21, 2002.
Chapter 9 Genetic Algorithms.  Based upon biological evolution  Generate successor hypothesis based upon repeated mutations  Acts as a randomized parallel.
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Edge Assembly Crossover
1. Genetic Algorithms: An Overview  Objectives - Studying basic principle of GA - Understanding applications in prisoner’s dilemma & sorting network.
Biologically inspired algorithms BY: Andy Garrett YE Ziyu.
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Solution approaches to the marker layout problem. Kath Dowsland Gower Optimal Algorithms Ltd.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Design of a real time strategy game with a genetic AI By Bharat Ponnaluri.
Genetic Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Advanced AI – Session 6 Genetic Algorithm By: H.Nematzadeh.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithm(GA)
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Hirophysics.com The Genetic Algorithm vs. Simulated Annealing Charles Barnes PHY 327.
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
Warehouse Lending Optimization Paul Parker (2016).
Optimization Of Robot Motion Planning Using Genetic Algorithm
Evolutionary Algorithms Jim Whitehead
Balancing of Parallel Two-Sided Assembly Lines via a GA based Approach
Local Search Algorithms
Advanced Artificial Intelligence Evolutionary Search Algorithm
Aiman H. El-Maleh Sadiq M. Sait Syed Z. Shazli
Beyond Classical Search
Nesting by Shachaf Ben Jakov.
Local Search Algorithms
Presentation transcript:

Lecture 13 Shape from Shading

2 Looking at finding normal, not distance Normal: Describe the shape Assuming point light source is far away p,q are unknowns Ellipse

3 SFS: Data Constraint Given an intensity value I, (p,q) are constrained to be an ellipse q p

4 Self Occluding If know self occluding, we can estimate normal. Normal for self occluding edges are perpendicular to the edge in 2D

5 SFS In human : tends to assume that light is above

6 SFS: SFS: Classical Work Horn and Schunk Use (p,q) Problem: Self Occluding p,q undefined At occluding edge dz/dx p  ∞, q  ∞ To rectified this, sphere coordinates ( ,  ) are used

7 Photometric Stereo 2/3 lights -Given L1, Observe I1 -Given L2, Observe I2 -Given L3, Observe I3 Have 3 lights at different directions with distance ∞ -Turn on L1, take pictures -Turn on L2, take pictures -Turn on L3, take pictures

8 Photometric Stereo I(x,y) = k d I d (N.L) =  N.L  = Albedo = whiteness

9 Photometric Stereo 4 unknowns : albedo and normal known unknown

10 Photometric Stereo I = L.N 1

11 Photometric Stereo

12 Remaining Topic Genetic Algorithm Neural Network Motion Processing Structure Tracking (Fovea – Center Of Vision) Camera Calibration Object Recognition Models

13 Genetic Algorithm Optimization Technique Based on “Survival of Fittest” 1.Population Size – Fixed Each solution is an individual 2.Fitness of Individual – Fitness of “Chromosome” (small part) “Goodness” 3.Crossover – Combining Parts of 2 or more individuals New child is put into population. May die. 4.Mutation – “Random change done to Part of an Individual”

14 Genetic Algorithm Charls Darwin – “Survival of Fitness” proposed how species develop Moth - Industrial Revolution YellowBlack 99%1% 70%30% 20%80%

15 Genetic Algorithm Algorithm: 1.Create a random solution of 20 individuals Sort by fitness { (1,__), (2, __), (3, __), …. } 2.R = Random(0,1) if (R<0.9) /* Cross Over */ Use 2 or more solutions to create new one else Create a new random Individual Insert new individual in to population if it is fitter than the worst one Repeat Until the top 20 does not change

16 Problem Statement: Input The Order Book consists of Many Instances of a Set of Patterns Each Piece of garment can be placed at 0 degrees or 180 degrees

17 Problem Statement: Output W L Place all the pieces in the order book to use minimum fabric length on a fixed width roll Method: Genetic Algorithm

18 About Genetic Algorithms  An optimization method that mimics the evolution of life using concepts of survival of the fittest within a fixed population.  Parts of Genetic Algorithm: Individual – a solution with known fitness Population – set of individuals forming the genetic pool Fitness Function – a measure of the goodness of an individual Creating a New Individual through Reproduction: 1. Self Replication 2. Crossover 3. Mutation Output, result reported as the most fit individual in population.

19 Related Work: Pargas and Jain 1993 [8] R. P. Pargas and R. Jain. A Parallel Stochastic Optimization Algorithm for Solving 2D Bin Packing Problems. IEEE Int. Conf. on A.I. for Applications  A stochastic approach to bin packing 2-D figures  Similar to genetic algorithms and simulated annealing  Has 80% efficiency on regular shapes  Tested on objects that can be packed to 100% efficiency  For garments, efficiency cannot be 100%  We compare to human expert for benchmark

20 G. Roussel and S. Maouche, “Improvements About Automatic Lay-Planning For Irregular Shapes on Plain Fabric” IEEE Proc. Systems Man and Cybernetics, System Engineering,  Shape layout problem for garment pieces  Use a heuristic tree search algorithm called  -admissible algorithm  Reasonable results  Too much time spent back-tracking  Tends to have a local minimum problem Related Work: Roussel and Mouche 1993 [9]

21 Related Work: Ismail and Hon [11] H.S. Ismail and K.B. Hon. The Nesting of two- dimensional Shapes Using Genetic Algorithms. Proceedings of The Institution of Mechanical Engineers Part B, Journal of Engineering Manufacture  Minimize Raw Mat for cutting 2-D pieces  Uses Genetic Algorithms and Heuristics  Simple shapes used  Raw Material width not fixed, unrealistic

22 Related Work: Bounsaythip et al [10] C. Bounsaythip, S. Maouche and M. Neus. Evolutionary Search Techniques Application in Automated Lay- Planning Optimization Problem. IEEE Int. Conf. on Intelligent Systems for the 21st Century,  Minimize unoccupied space by Evolutionary Algorithm  Shape representation by Comb Code  Efficiency Measure: Length of Raw Mat (Fabric).  Used pant garment pieces, regular shapes  Good Results due to regular shapes used.

23 Related Work: Bounsaythip and Maouche [12] C. Bounsaythip and S. Maouche. Irregular Shape Nesting And Placing With Evolutionary Approach”. IEEE Int. Conf. On Systems Man and Cybernetics  Use the comb code representation for each garment piece  Shape placement represented as hierarchical tree  Allow orientations of 0, 90, 180, and 270 degrees  Crossover: combine parts of tree, removing redundancy  Results presented on relatively simple shapes, making it difficult to assess the efficiency achieved

24 Placing Items from Order Book The Order Book consists of Many Instances of a Set of Patterns Each Piece of garment can be placed at 0 degrees or 180 degrees Each garment piece is polygonal Smooth contours (splines) approximated by convex hull first

25 Placement Method: Check for Overlaps Upon placing a new polygon, must check that: 1. NO vertex is INSIDE other polygons 2. NO other polygon’s vertex is INSIDE Convex Polygons Assumed

26 Our Genetic Algorithm 1. Set and Randomly Initialize the Population of size P = 15 2.Divide Individual into chromosome strips. Compute strip efficiency. 3. Crossover, Mutation, and Selection: Repeat If random (0, 1) < crossover probability Create a New Individual by Crossover: Repeat Sample for a chromosome from the solution biased by efficiency Recompute chromosome efficiency based on Order Book balance Until No Efficient Chromosome Available Fill Remaining Solution Randomly by Order Book balance Else Create New Individual by Mutation: Fill Randomly from Order Book Insert the solution into the new population Check for Survival of Fittest P = 15 Until(Population has converged)or(No improvement in Best Solution)

27 Step 1: Initial Random Population S1 = [(5, 1), (3, 0), (4, 1), (1, 1), (2, 0), 15] S2 = [(1, 0), (3, 0), (2, 1), (3, 0), (4, 0), 17] S3 = [(5, 1), (3, 0), (7, 1), (1, 1), (2, 0), 20] S4 = [(1, 0), (5, 0), (4, 0), (3, 1), (2, 0), 21] S5 = [(1, 0), (3, 0), (5, 0), (2, 1), (4, 0), 23] S6 = [(4, 0), (5, 0), (1, 1), (2, 0), (3, 0), 25] S7 = [(3, 1), (4, 0), (5, 1), (2, 0), (1, 0), 27] S8 = [(5, 1), (4, 0), (3, 1), (2, 1), (1, 0), 29] S9 = [(3, 0), (2, 0), (1, 0), (5, 1), (4, 1), 32] S10 = [(4, 1), (3, 0), (1, 1), (2, 1), (5, 1), 34] An Individual Solution: S = [(F 1, O 1 ), (F 2, O 2 ),…,(F n, O n ), L)] whereS - completed order bookF i - garment piece number O i - orientation at 0 or 180 degreesL - Length of Fabric used

28 Step 2: Determine Strips W L str1 L str2 L L str3 Each Strip is determined by largest piece along column. Efficiency of each strip is Computed, used for crossover

29 Crossover: Sampling Within Population P = LBLB  LB LB

30 Crossover: Sampling for Efficient Strips P = EBEB  EB EB After sampling from population for 4 best solutions, Crossover takes place using efficient strips first

31 Crossover: Efficiency Decreases over Time Efficiency decreases as Order Book fills up Once Efficiency too low, fill remaining items randomly highlowered

32 Mutation: New Random Individual When Efficiency low, fill randomly is partly like mutation Mutation by generating a new random solution This new individual usually does not survive Our results are compared with layout by human expert

33 Experimental Result 1: Rectangles 6 Sets in Order Book G.A.: 1:15 Hrs.

34 Rectangles by Human Expert Manually: 0:25 Hrs.

35 Experimental Result 2: Shirt Pieces 10 Sets in Order Book

36 Shirt Pcs. (10 orders) by G.A. G.A.: 51:08 Hrs.

37 Shirt Pcs. (10 orders) by Human Manually: 1:25 Hrs.

38 Experimental Result 3: Multi-Edged Shapes by G.A. 3 Sets in Order Book

39 Multi-Edged G.A. vs. Human G.A.: 0:57 Hrs.

Iterati ons E % Finding Crossover Number

41 Finding Good Population Size E % Iterations

42 Discussion and Conclusion  Main Problem: successive crossover reduces efficiency of good strips.  Efficiency 3-5% lower than human expert, while taking more time.  Efficiency depends on the complexity of the piece, making it hard to compare results among researchers. high lowered