Segmentation from Examples By: A’laa Kryeem Lecturer: Hagit Hel-Or.

Slides:



Advertisements
Similar presentations
Complex Networks for Representation and Characterization of Images For CS790g Project Bingdong Li 9/23/2009.
Advertisements

1 Texture Texture is a description of the spatial arrangement of color or intensities in an image or a selected region of an image. Structural approach:
Stereo Many slides adapted from Steve Seitz. Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image Where does the.
I Images as graphs Fully-connected graph – node for every pixel – link between every pair of pixels, p,q – similarity w ij for each link j w ij c Source:
Proportion Priors for Image Sequence Segmentation Claudia Nieuwenhuis, etc. ICCV 2013 Oral.
Image Denoising using Locally Learned Dictionaries Priyam Chatterjee Peyman Milanfar Dept. of Electrical Engineering University of California, Santa Cruz.
Graph-Based Image Segmentation
GrabCut Interactive Image (and Stereo) Segmentation Joon Jae Lee Keimyung University Welcome. I will present Grabcut – an Interactive tool for foreground.
Lecture 6 Image Segmentation
Texture Synthesis Tiantian Liu. Definition Texture – Texture refers to the properties held and sensations caused by the external surface of objects received.
Stereo & Iterative Graph-Cuts Alex Rav-Acha Vision Course Hebrew University.
MRF Labeling With Graph Cut CMPUT 615 Nilanjan Ray.
Recovering Articulated Object Models from 3D Range Data Dragomir Anguelov Daphne Koller Hoi-Cheung Pang Praveen Srinivasan Sebastian Thrun Computer Science.
Stereo Computation using Iterative Graph-Cuts
Comp 775: Graph Cuts and Continuous Maximal Flows Marc Niethammer, Stephen Pizer Department of Computer Science University of North Carolina, Chapel Hill.
Object Based Video Coding - A Multimedia Communication Perspective Muhammad Hassan Khan
Perceptual Organization: Segmentation and Optical Flow.
IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 20, NO. 11, NOVEMBER 2011 Qian Zhang, King Ngi Ngan Department of Electronic Engineering, the Chinese university.
Announcements vote for Project 3 artifacts Project 4 (due next Wed night) Questions? Late day policy: everything must be turned in by next Friday.
Announcements Project 3 questions Photos after class.
Automatic User Interaction Correction via Multi-label Graph-cuts Antonio Hernández-Vela, Carlos Primo and Sergio Escalera Workshop on Human Interaction.
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Image Renaissance Using Discrete Optimization Cédric AllèneNikos Paragios ENPC – CERTIS ESIEE – A²SI ECP - MAS France.
Mutual Information-based Stereo Matching Combined with SIFT Descriptor in Log-chromaticity Color Space Yong Seok Heo, Kyoung Mu Lee, and Sang Uk Lee.
Object Based Video Coding - A Multimedia Communication Perspective Muhammad Hassan Khan
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/24/10.
Image Segmentation Seminar III Xiaofeng Fan. Today ’ s Presentation Problem Definition Problem Definition Approach Approach Segmentation Methods Segmentation.
Graph Cut 韋弘 2010/2/22. Outline Background Graph cut Ford–Fulkerson algorithm Application Extended reading.
Segmentation Course web page: vision.cis.udel.edu/~cv May 7, 2003  Lecture 31.
Hierarchical Distributed Genetic Algorithm for Image Segmentation Hanchuan Peng, Fuhui Long*, Zheru Chi, and Wanshi Siu {fhlong, phc,
City University of Hong Kong 18 th Intl. Conf. Pattern Recognition Self-Validated and Spatially Coherent Clustering with NS-MRF and Graph Cuts Wei Feng.
CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct
Conjoining Gestalt Rules for Abstraction of Architectural Drawings Liangliang(Leon) Nan 1, Andrei Sharf 2, Ke Xie 1, Tien-Tsin Wong 3 Oliver Deussen 4,
Interactive Graph Cuts for Optimal Boundary & Region Segmentation of Objects in N-D Images (Fri) Young Ki Baik, Computer Vision Lab.
Object Stereo- Joint Stereo Matching and Object Segmentation Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on Michael Bleyer Vienna.
Stereo Many slides adapted from Steve Seitz.
Graph Cuts Marc Niethammer. Segmentation by Graph-Cuts A way to compute solutions to the optimization problems we looked at before. Example: Binary Segmentation.
CS 376b Introduction to Computer Vision 03 / 21 / 2008 Instructor: Michael Eckmann.
CS654: Digital Image Analysis Lecture 25: Hough Transform Slide credits: Guillermo Sapiro, Mubarak Shah, Derek Hoiem.
CS654: Digital Image Analysis
Lecture 19: Solving the Correspondence Problem with Graph Cuts CAP 5415 Fall 2006.
Gene expression & Clustering. Determining gene function Sequence comparison tells us if a gene is similar to another gene, e.g., in a new species –Dynamic.
Gaussian Mixture Models and Expectation-Maximization Algorithm.
Graphcut Textures Image and Video Synthesis Using Graph Cuts
CSSE463: Image Recognition Day 23 Midterm behind us… Midterm behind us… Foundations of Image Recognition completed! Foundations of Image Recognition completed!
CS654: Digital Image Analysis Lecture 28: Advanced topics in Image Segmentation Image courtesy: IEEE, IJCV.
Example Apply hierarchical clustering with d min to below data where c=3. Nearest neighbor clustering d min d max will form elongated clusters!
Learning Hierarchical Features for Scene Labeling
Photoconsistency constraint C2 q C1 p l = 2 l = 3 Depth labels If this 3D point is visible in both cameras, pixels p and q should have similar intensities.
Normalized Cuts and Image Segmentation Patrick Denis COSC 6121 York University Jianbo Shi and Jitendra Malik.
Gaussian Conditional Random Field Network for Semantic Segmentation
Parsing Natural Scenes and Natural Language with Recursive Neural Networks INTERNATIONAL CONFERENCE ON MACHINE LEARNING (ICML 2011) RICHARD SOCHER CLIFF.
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
CSSE463: Image Recognition Day 21
DIGITAL SIGNAL PROCESSING
Nonparametric Semantic Segmentation
Paper Presentation: Shape and Matching
Jianping Fan Dept of CS UNC-Charlotte
Efficient Graph Cut Optimization for Full CRFs with Quantized Edges
CSSE463: Image Recognition Day 23
Lecture 31: Graph-Based Image Segmentation
CSSE463: Image Recognition Day 23
Text Categorization Berlin Chen 2003 Reference:
CSSE463: Image Recognition Day 23
Announcements Project 4 out today (due Wed March 10)
A Block Based MAP Segmentation for Image Compression
Announcements Project 1 is out today help session at the end of class.
CSSE463: Image Recognition Day 23
Feature mapping: Self-organizing Maps
“Traditional” image segmentation
Presentation transcript:

Segmentation from Examples By: A’laa Kryeem Lecturer: Hagit Hel-Or

What is Segmentation from Examples ?  Segment an image based on one (or more) correctly segmented image(s) assumed to be from the same domain  Effective when making a semantic segmentation

Why to use Examples  The example defines the granularity of the desired output  Give us the ability to characterize meaningful parts in the image  Using example allow us to use non-parametric model

The example defines the granularity of the desired output: Training image Test Image Desired Segmentation Induced Segmentation

Why to use Examples  The example defines the granularity of the desired output  Give us the ability to characterize meaningful parts in the image

Give us the ability to characterize meaningful parts in the image

Semantic Segmentation from an example  We want to segment an image into semantically meaningful parts  Required in various applications

Semantic Segmentation from an example  We want to segment an image into semantically meaningful parts  Required in various applications  Problems:  Meaningful parts are often too complex  Semantic interpretation is highly subjective, depending on both the application, and the user

Meaningful parts are often too complex

Semantic Segmentation from an example  We want to segment an image into semantically meaningful parts  Required in various applications  Problems:  Meaningful parts are often too complex  Semantic interpretation is highly subjective, depending on both the application, and the user

Example of image different segmentation

Semantic Segmentation from an example  So, How to achieve semantic segmentation  Getting segmented training image(s) as input

Training set

Semantic Segmentation from an example  So, How to achieve semantic segmentation  Getting segmented training image(s) as input  Using non-parametric representation

non-parametric model Each semantic part is represented by a set of square patches

Semantic Segmentation from an example  So, How to achieve semantic segmentation  Getting segmented training image(s) as input  Using non-parametric representation  Over-segmenting the Test image into small fragments

Over segmented image

Semantic Segmentation from an example  So, How to achieve semantic segmentation  Getting segmented training image(s) as input  Using non-parametric representation  Over-segmenting the Test image into small fragments  Compute costs for fragment-label pairs

(fragment,label) cost example ?

Semantic Segmentation from an example  So, How to achieve semantic segmentation  Getting segmented training image(s) as input  Using non-parametric representation  Over-segmenting the Test image into small fragments  Compute costs for fragment-label pairs  Graph-cuts multi-label optimization

Why do we need graph-cuts  Graph-cuts optimization is used to label each fragment in a globally optimal manner

Training set Test image Fragmentation Fragments Patch sets Classification Classification scores Graph-Cuts optimization Result

Over segmenting  Fragment: small arbitrarily-shaped and simply-connected pixel clusters  We assume that small homogeneous regions always belong to the same semantic part

Over segmenting  Fragment: small arbitrarily-shaped and simply connected pixel clusters  We assume that small homogeneous regions always belong to the same semantic part  Advantages:  Enforces a locally coherent labeling  Reduces the computational complexity

Graph-cuts multi-label optimization  For each fragment we have k cost values, we need to determine which one is the optimal  Using expanded version of the graph-cuts we saw at Jad’s lecture, where we may have more than two labels (background, object)

Algorithm for semantic segmentation 1.Pixel labeling costs 2.Fragmentation 3.Fragment labeling costs 4.Graph-cuts optimization

Algorithm for semantic segmentation 1.Pixel labeling costs 2.Fragmentation 3.Fragment labeling costs 4.Graph-cuts optimization

Pixel labeling costs  Given I train and L train  Representing each label(segment) in L train by a set of square patches  We get k sets {S l } l=1,…,k one for each label

Pixel labeling costs (cont.)  Next, we define φ (p, l) for each (pixel,label) pair  The cost of assigning label l to pixel p I test P’S l p:pixel at I test l : label in L train ssd(P,P’) is the sum of squared distances between P,P’ M:mxmx3 P:mXm neighborhood centered at p P’:mxm patch

Algorithm for semantic segmentation 1.Pixel labeling costs 2.Fragmentation 3.Fragment labeling costs 4.Graph-cuts optimization

Fragmentation  We partition I test into small,color- homogeneous regions using mean shift segmentation

Fragmentation  We partition I test into small,color- homogeneous regions using mean shift segmentation  Fragment size is adjusted according to I test.(fragments are smaller in more detailed areas of I test, and larger in more homogeneous regions)

Fragmentation  We partition I test into small,color- homogeneous regions using mean shift segmentation  Fragment size is adjusted according to I test.(fragments are smaller in more detailed areas of I test, and larger in more homogeneous regions)  Fragment boundaries align with edges in the image

Fragmentation (cont.) Random colorizationDetailed close-up

Algorithm for semantic segmentation 1.Pixel labeling costs 2.Fragmentation 3.Fragment labeling costs 4.Graph-cuts optimization

Fragment labeling costs  Voting scheme in order to compute labeling costs of each fragment  For each fragment f I test we pick a few representative pixels: Rep(f)={p i f } i=I,…,R f R f is proportional to |f|

Fragment labeling costs (cont.)

Fragment labeling vs. pixel labeling

 Enforces a locally coherent labeling Training image Training seg. Input image Fragment labeling Pixel labeling

Algorithm for semantic segmentation 1.Pixel labeling costs 2.Fragmentation 3.Fragment labeling costs 4.Graph-cuts optimization

Graph-cuts optimization After calculating labeling cost for all image fragments we get k images. Image i describes the cost assigning each pixel at the test image to label i fragment labeling costs. Costs range in the interval [0,1]

Graph-cuts optimization  Now for each pixel p I test we have a labeling cost  We need to find L test the globally optimal labeling  Requirements:  Minimizes the total labeling cost  Consistent with presence (or absence) of edges

Graph-cuts optimization (cont.)

Intuition:

Graph-cuts optimization (cont.)  Finally L test is determined by solving L test =min L E(L) Fragment labeling Labeling after Graph- Cuts Optimization

Multi-label graph-cut Colored nodes:labels Squares : fragments For each (fragment,label) pair we have an edge. Edge weigh according to φ. Edges between two squares weighed according to Ψ.

Multi-label graph-cut Induced graph Each fragment connected to a single label.

Multi-label graph-cut is NP-complete problem!

Training image Training segmentation Input image

Algorithm for semantic segmentation 1.Pixel labeling costs 2.Fragmentation 3.Fragment labeling costs 4.Graph-cuts optimization

Algorithm results Training set a b c

Bear results  invariant to the number of instances of each semantic part within the image, and insensitive to the shape of each part.  We can’t separate multiple objects belonging to the same label (c).

Algorithm results Training set a b c d

Summary

Thank You For Listening

References  Inducing Semantic Segmentation from an Example, Yaar Schnitman, Yaron Caspi, Daniel Cohen-Or, and Dani Lischinski.  "Segmentation by Example“, Sameer Agarwal and Serge Belongie.  Christoudias, C.M., Georgescu, B.: Edge detection and image segmentation (edison) system.  Boykov, Y., Veksler, O., Zabih, R.: Fast approximate energy minimization via graph cuts. IEEE Trans. Pattern Anal. Mach. Intell. 23 (2001) 1222–1239