Announcements Project 4 out today (due Wed March 10)

Slides:



Advertisements
Similar presentations
Lecture 24: Segmentation CS6670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
Advertisements

Segmentácia farebného obrazu
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:
Graph-Based Image Segmentation
Image Segmentation Selim Aksoy Department of Computer Engineering Bilkent University
Active Contours (SNAKES) Back to boundary detection –This time using perceptual grouping. This is non-parametric –We’re not looking for a contour of a.
10/11/2001Random walks and spectral segmentation1 CSE 291 Fall 2001 Marina Meila and Jianbo Shi: Learning Segmentation by Random Walks/A Random Walks View.
Lecture 6 Image Segmentation
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
© 2003 by Davi GeigerComputer Vision October 2003 L1.1 Image Segmentation Based on the work of Shi and Malik, Carnegie Mellon and Berkley and based on.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Segmentation CSE P 576 Larry Zitnick Many slides courtesy of Steve Seitz.
Problem Sets Problem Set 3 –Distributed Tuesday, 3/18. –Due Thursday, 4/3 Problem Set 4 –Distributed Tuesday, 4/1 –Due Tuesday, 4/15. Probably a total.
Segmentation Divide the image into segments. Each segment:
Announcements Project 2 more signup slots questions Picture taking at end of class.
Today: Image Segmentation Image Segmentation Techniques Snakes Scissors Graph Cuts Mean Shift Wednesday (2/28) Texture analysis and synthesis Multiple.
From Pixels to “Blobs” : Rendering and Image Processing Alexei Efros.
CS 376b Introduction to Computer Vision 04 / 04 / 2008 Instructor: Michael Eckmann.
Image Segmentation Today’s Readings Intelligent Scissors, Mortensen et. al, SIGGRAPH 1995Intelligent Scissors From Sandlot ScienceSandlot Science.
Lecture 18: Context and segmentation CS6670: Computer Vision Noah Snavely.
Image Segmentation A Graph Theoretic Approach. Factors for Visual Grouping Similarity (gray level difference) Similarity (gray level difference) Proximity.
Image Segmentation Today’s Readings Forsyth & Ponce, Chapter 14
Perceptual Organization: Segmentation and Optical Flow.
Segmentation and Clustering Today’s Readings Forsyth & Ponce, Chapter 7 (plus lots of optional references in the slides) From Sandlot ScienceSandlot Science.
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.
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
Image Segmentation Selim Aksoy Department of Computer Engineering Bilkent University
Graph-based Segmentation
Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which usually.
Region Segmentation Readings: Chapter 10: 10.1 Additional Materials Provided K-means Clustering (text) EM Clustering (paper) Graph Partitioning (text)
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Segmentation & Grouping Tuesday, Sept 23 Kristen Grauman UT-Austin.
CS654: Digital Image Analysis Lecture 28: Advanced topics in Image Segmentation Image courtesy: IEEE, IJCV.
Normalized Cuts and Image Segmentation Patrick Denis COSC 6121 York University Jianbo Shi and Jitendra Malik.
Course Introduction to Medical Imaging Segmentation 1 – Mean Shift and Graph-Cuts Guy Gilboa.
K-Means Segmentation.
Image Segmentation Today’s Readings Szesliski Chapter 5
Segmentation by clustering: normalized cut
Exercise class 13 : Image Segmentation
Announcements CS accounts Project 1 is out today
Region Segmentation Readings: Chapter 10: 10
CSSE463: Image Recognition Day 21
CSSE463: Image Recognition Day 34
CS4670/5670: Image Scissors Noah Snavely Today’s Readings
Lecture 7: Image alignment
Two-view geometry Computer Vision Spring 2018, Lecture 10
Segmentation and Grouping
CS 2750: Machine Learning Clustering
Grouping.
CSSE463: Image Recognition Day 23
Announcements Reader is in the BOOK STORE (not Comm Bldg.)
Lecture 31: Graph-Based Image Segmentation
Announcements Photos right now Project 3 questions
Digital Image Processing
Emel Doğrusöz Esra Ataer Muhammet Baştan Tolga Can
Seam Carving Project 1a due at midnight tonight.
Image Segmentation CS 678 Spring 2018.
Segmentation (continued)
Announcements Project 4 questions Evaluations.
Announcements Project 1 is out today
Announcements Project 2 artifacts Project 3 due Thursday night
CSSE463: Image Recognition Day 23
Announcements Artifact due Thursday
Announcements Project 1 is out today help session at the end of class.
CSSE463: Image Recognition Day 23
EM Algorithm and its Applications
CSSE463: Image Recognition Day 34
Announcements Artifact due Thursday
“Traditional” image segmentation
Presentation transcript:

Announcements Project 4 out today (due Wed March 10) help session, end of class Late day policy: everything must be turned in by Friday March 12

Image Segmentation Today’s Readings Shapiro, pp. 279-289 http://www.dai.ed.ac.uk/HIPR2/morops.htm Dilation, erosion, opening, closing

From images to objects What Defines an Object? Subjective problem, but has been well-studied Gestalt Laws seek to formalize this proximity, similarity, continuation, closure, common fate see notes by Steve Joordens, U. Toronto

Image Segmentation We will consider different methods Already covered: Intelligent Scissors (contour-based) Hough transform (model-based) This week: K-means clustering (color-based) Discussed in Shapiro Normalized Cuts (region-based) Forsyth, chapter 16.5 (supplementary)

Image histograms How many “orange” pixels are in this image? This type of question answered by looking at the histogram A histogram counts the number of occurrences of each color Given an image The histogram is defined to be What is the dimension of the histogram of an RGB image?

What do histograms look like? Photoshop demo                                               How Many Modes Are There? Easy to see, hard to compute

Histogram-based segmentation Goal Break the image into K regions (segments) Solve this by reducing the number of colors to K and mapping each pixel to the closest color photoshop demo

Histogram-based segmentation Goal Break the image into K regions (segments) Solve this by reducing the number of colors to K and mapping each pixel to the closest color photoshop demo Here’s what it looks like if we use two colors

Clustering How to choose the representative colors? Objective This is a clustering problem! Objective Each point should be as close as possible to a cluster center Minimize sum squared distance of each point to closest center

Break it down into subproblems Suppose I tell you the cluster centers ci Q: how to determine which points to associate with each ci? A: for each point p, choose closest ci Suppose I tell you the points in each cluster Q: how to determine the cluster centers? A: choose ci to be the mean of all points in the cluster

K-means clustering K-means clustering algorithm Randomly initialize the cluster centers, c1, ..., cK Given cluster centers, determine points in each cluster For each point p, find the closest ci. Put p into cluster i Given points in each cluster, solve for ci Set ci to be the mean of points in cluster i If ci have changed, repeat Step 2 Java demo: http://www.elet.polimi.it/upload/matteucc/Clustering/tutorial_html/AppletKM.html Properties Will always converge to some solution Can be a “local minimum” does not always find the global minimum of objective function:

Expectation Maximization A popular variant of this clustering method: EM: “Expectation Maximization” each cluster is modeled using a Gaussian E step: “soft assignment” of points to clusters probability that a point is in a cluster M step: solve for mean, variance of Gaussian for each cluster

Cleaning up the result Problem: How can these be fixed? Histogram-based segmentation can produce messy regions segments do not have to be connected may contain holes How can these be fixed? photoshop demo

Dilation operator: Dilation: does H “overlap” F around [x,y]? 1 1 1 1 Dilation: does H “overlap” F around [x,y]? G[x,y] = 1 if H[u,v] and F[x+u-1,y+v-1] are both 1 somewhere 0 otherwise Written

Dilation operator Demo http://www.cs.bris.ac.uk/~majid/mengine/morph.html

Erosion operator: Erosion: is H “contained in” F around [x,y] 1 1 1 1 Erosion: is H “contained in” F around [x,y] G[x,y] = 1 if F[x+u-1,y+v-1] is 1 everywhere that H[u,v] is 1 0 otherwise Written

Erosion operator Demo http://www.cs.bris.ac.uk/~majid/mengine/morph.html

Nested dilations and erosions What does this operation do? this is called a closing operation

Nested dilations and erosions What does this operation do? this is called a closing operation Is this the same thing as the following?

Nested dilations and erosions What does this operation do? this is called an opening operation http://www.dai.ed.ac.uk/HIPR2/open.htm You can clean up binary pictures by applying combinations of dilations and erosions Dilations, erosions, opening, and closing operations are known as morphological operations see http://www.dai.ed.ac.uk/HIPR2/morops.htm

Graph-based segmentation?

Images as graphs c Fully-connected graph q Cpq p node for every pixel link between every pair of pixels, p,q cost cpq for each link cpq measures similarity similarity is inversely proportional to difference in color and position this is different than the costs for intelligent scissors

Segmentation by Graph Cuts w A B C Break Graph into Segments Delete links that cross between segments Easiest to break links that have low cost (similarity) similar pixels should be in the same segments dissimilar pixels should be in different segments

Cuts in a graph B A Link Cut Find minimum cut set of links whose removal makes a graph disconnected cost of a cut: Find minimum cut gives you a segmentation fast algorithms exist for doing this

But min cut is not always the best cut...

Cuts in a graph B A Normalized Cut a cut penalizes large segments fix by normalizing for size of segments volume(A) = sum of costs of all edges that touch A

Interpretation as a Dynamical System Treat the links as springs and shake the system elasticity proportional to cost vibration “modes” correspond to segments

Interpretation as a Dynamical System Treat the links as springs and shake the system elasticity proportional to cost vibration “modes” correspond to segments

Color Image Segmentation

Normalize Cut in Matrix Form W is the cost matrix : W ( i , j ) = c ; i , j å D is the sum of costs from node i : D ( i , i ) = W ( i , j ); D(i,j) = 0 j Can write normalized cut as: Solution given by “generalized” eigenvalue problem: Solved by converting to standard eigenvalue problem: optimal solution corresponds to second smallest eigenvector for more details, see J. Shi and J. Malik, Normalized Cuts and Image Segmentation, IEEE Conf. Computer Vision and Pattern Recognition(CVPR), 1997 http://www.cs.washington.edu/education/courses/455/03wi/readings/Ncut.pdf

Summary Things to take away from this lecture Image histogram K-means clustering Morphological operations dilation, erosion, closing, opening Normalized cuts