Segmentation Course web page: vision.cis.udel.edu/~cv May 7, 2003  Lecture 31.

Slides:



Advertisements
Similar presentations
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Advertisements

Computer vision: models, learning and inference Chapter 13 Image preprocessing and feature extraction.
Fitting: The Hough transform. Voting schemes Let each feature vote for all the models that are compatible with it Hopefully the noise features will not.
Online Social Networks and Media. Graph partitioning The general problem – Input: a graph G=(V,E) edge (u,v) denotes similarity between u and v weighted.
Segmentation (2): edge detection
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.
Fitting: The Hough transform
Lecture 5 Hough transform and RANSAC
Normalized Cuts and Image Segmentation Jianbo Shi and Jitendra Malik, Presented by: Alireza Tavakkoli.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Image Segmentation Chapter 14, David A. Forsyth and Jean Ponce, “Computer Vision: A Modern Approach”.
CS 376b Introduction to Computer Vision 04 / 11 / 2008 Instructor: Michael Eckmann.
Prénom Nom Document Analysis: Data Analysis and Clustering Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Segmentation Graph-Theoretic Clustering.
Feature Detection: Corners and Lines. Edges vs. Corners Edges = maxima in intensity gradientEdges = maxima in intensity gradient.
Fitting a Model to Data Reading: 15.1,
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
Segmentation Slides Credit: Jim Rehg, G.Tech. Christopher Rasmussen, UD John Spletzer, Lehigh Also, Slides adopted from material provided by David Forsyth.
Hough Transform (Section 10.2) CS474/67. Edge Linking and Boundary Detection Edge detection does not yield connected boundaries. Edge linking and boundary.
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which usually.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Graph-based consensus clustering for class discovery from gene expression data Zhiwen Yum, Hau-San Wong and Hongqiang Wang Bioinformatics, 2007.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Segmentation Techniques Luis E. Tirado PhD qualifying exam presentation Northeastern University.
Computer Vision More Image Features Hyunki Hong School of Integrative Engineering.
Segmentation using eigenvectors
CSSE463: Image Recognition Day 34 This week This week Today: Today: Graph-theoretic approach to segmentation Graph-theoretic approach to segmentation Tuesday:
Segmentation using eigenvectors Papers: “Normalized Cuts and Image Segmentation”. Jianbo Shi and Jitendra Malik, IEEE, 2000 “Segmentation using eigenvectors:
Image Segmentation February 27, Implicit Scheme is considerably better with topological change. Transition from Active Contours: –contour v(t) 
Edge Linking & Boundary Detection
Chapter 14: SEGMENTATION BY CLUSTERING 1. 2 Outline Introduction Human Vision & Gestalt Properties Applications – Background Subtraction – Shot Boundary.
From Pixels to Features: Review of Part 1 COMP 4900C Winter 2008.
Fitting: The Hough transform. Voting schemes Let each feature vote for all the models that are compatible with it Hopefully the noise features will not.
Generalized Hough Transform
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
Classification Course web page: vision.cis.udel.edu/~cv May 12, 2003  Lecture 33.
Lecture 08 Detecting Shape Using Hough Transform Lecture 08 Detecting Shape Using Hough Transform Mata kuliah: T Computer Vision Tahun: 2010.
CS654: Digital Image Analysis Lecture 25: Hough Transform Slide credits: Guillermo Sapiro, Mubarak Shah, Derek Hoiem.
Fitting: The Hough transform
Fitting Thursday, Sept 24 Kristen Grauman UT-Austin.
October 16, 2014Computer Vision Lecture 12: Image Segmentation II 1 Hough Transform The Hough transform is a very general technique for feature detection.
Classification Course web page: vision.cis.udel.edu/~cv May 14, 2003  Lecture 34.
 In the previews parts we have seen some kind of segmentation method.  In this lecture we will see graph cut, which is a another segmentation method.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP10 Advanced Segmentation Miguel Tavares.
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Camera Calibration Course web page: vision.cis.udel.edu/cv March 24, 2003  Lecture 17.
Detecting Image Features: Corner. Corners Given an image, denote the image gradient. C is symmetric with two positive eigenvalues. The eigenvalues give.
MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.
Digital Image Processing CCS331 Relationships of Pixel 1.
Normalized Cuts and Image Segmentation Patrick Denis COSC 6121 York University Jianbo Shi and Jitendra Malik.
Hough Transform CS 691 E Spring Outline Hough transform Homography Reading: FP Chapter 15.1 (text) Some slides from Lazebnik.
Object Recognition. Segmentation –Roughly speaking, segmentation is to partition the images into meaningful parts that are relatively homogenous in certain.
1 Hough Transform. 2 A Technique to Isolate Features of a Particular Shape within an Image The classical Hough transform is most commonly used for the.
Miguel Tavares Coimbra
Fitting: Voting and the Hough Transform
University of Ioannina
CSSE463: Image Recognition Day 34
Fitting Curve Models to Edges
Segmentation and Grouping
Segmentation Graph-Theoretic Clustering.
Grouping.
Computer Vision Lecture 16: Texture II
Hough Transform COMP 4900C Winter 2008.
Spectral Clustering Eric Xing Lecture 8, August 13, 2010
CSSE463: Image Recognition Day 34
“Traditional” image segmentation
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
Presentation transcript:

Segmentation Course web page: vision.cis.udel.edu/~cv May 7, 2003  Lecture 31

Announcements Read Chapter in Forsyth & Ponce on classification for Friday HW 5 due Friday Class on Friday is at 4 pm due to Honors day

Outline Graph theory basics Eigenvector methods for segmentation Hough transform

Graph Theory Terminology Graph G : Set of vertices V and edges E connecting pairs of vertices Each edge is represented by the vertices (a, b) it joins A weighted graph has a weight associated with each edge w(a, b) Connectivity –Vertices are connected if there is a sequence of edges joining them –A graph is connected if all vertices are connected –Any graph can be partitioned into connected components (CC) such that each CC is a connected graph and there are no edges between vertices in different CCs from Forsyth & Ponce 4

Graphs for Clustering Tokens are vertices Weights on edges proportional to token similarity Cut: “Weight” of edges joining two sets of vertices: Segmentation: Look for minimum cut in graph –Recursively cut components until regions uniform enough A B

Graphs for Clustering Tokens are vertices Weights on edges proportional to token similarity Cut: “Weight” of edges joining two sets of vertices: Segmentation: Look for minimum cut in graph –Recursively cut components until regions uniform enough

Representing Graphs As Matrices Use N £ N matrix W for N –vertex graph Entry W(i, j) is weight on edge between vertices i and j Undirected graphs have symmetric weight matrices from Forsyth & Ponce Example graph and its weight matrix

Affinity Measures Affinity A(i, j) between tokens i and j should be proportional to similarity Based on metric on some visual feature(s) –Position: E.g., A(i, j) = exp f¡(i ¡ j) T (i ¡ j)/2¾ d 2 g –Intensity –Color –Texture These are weights in an affinity graph A over tokens

Eigenvectors and Segmentation Given k tokens with affinities defined by A, want partition into c clusters For a particular cluster n, denote the membership weights of the tokens with the vector w n –Require normalized weights so that “Best” assignment of tokens to cluster n is achieved by selecting w n that maximizes objective function (highest intra-cluster affinity) subject to weight vector normalization constraint Using method of Lagrange multipliers, this yields system of equations which means that w n is an eigenvector of A and a solution is obtained from the eigenvector with the largest eigenvalue

Eigenvectors and Segmentation Note that an appropriate rearrangement of affinity matrix leads to block structure indicating clusters Largest eigenvectors A of tend to correspond to eigenvectors of blocks So interpret biggest c eigenvectors as cluster membership weight vectors –Quantize weights to 0 or 1 to make memberships definite from Forsyth & Ponce

Normalized Cuts Previous approach doesn’t work when eigenvalues of blocks are similar –Just using within-cluster similarity doesn’t account for between- cluster differences –No encouragement of larger cluster sizes Define association between vertex subset A and full set V as Before, we just maximized assoc(A, A) ; now we also want to minimize assoc(A, V). Define the normalized cut as

Normalized Cut Algorithm Define diagonal degree matrix D(i, i) = § j A(i, j) Define integer membership vector x over all vertices such that each element is 1 if the vertex belongs to cluster A and -1 if it belongs to B (i.e., just two clusters) Define real approximation to x as This yields the following objective function to minimize: which sets up the system of equations The eigenvector with second smallest eigenvalue is the solution (smallest always 0) Continue partitioning clusters if normcut is over some threshold

Example: Normalized Cut Segmentations Affinity measures are position, intensity, texture from Forsyth & Ponce

Shape Finding Problem: How to efficiently find instances of shapes in image –E.g., lines, curves, ellipses Segmentation in the sense of figure-ground separation Finding lane lines for driving after edge detection from B. Southall & C. Taylor

Hough Transform Exhaustive search extremely inefficient Basic idea of Hough transform (HT): Change problem from complicated pattern detection to peak finding in parameter space of the shape –Each pixel can lie on a family of possible shapes (e.g., for lines, the pencil of lines through that point) –Shapes with more pixels on them have more evidence that they are present in the image –Thus every pixel “votes” for a set of shapes and the one(s) with the most votes “win”—i.e., exist courtesy of Massey U.

HT for Line Finding Parametrize lines by distance from origin and angle (r, µ) Every point (r, µ) in “line space” is a unique line The set of image points f(x, y)g on a particular line is expressed by: Problem with slope-intercept representation (m, n) is that it can’t handle vertical lines

HT for Line Finding Fixing an image pixel (x i, y i ) yields a set of points in line space f(r, µ)g corresponding to a sinusoidal curve described by Each point on curve in line space is a member of the pencil of lines through the pixel Collinear points yield curves that intersect in a single point courtesy of R. Bock

HT for Line Finding: Algorithm Set up T x R accumulator array A quantizing line space –Range: r 2 [0, max(W, H)], µ 2 [0, ¼ ] –Bin size: Reasonable intervals –Initial value: 0 for all bins For every image pixel (x, y) that is a feature/edge/etc., iterate over h 2 [1, T] ( µ (h) is line angle for row h of A ) –Let r = x cos µ (h) + y sin µ (h) –Find index k of the A column closest to r –Increment A(h, k) by one Find all local maxima of A Graph sinusoid

HT for Line Finding: Algorithm Set up T x R accumulator array A quantizing line space –Range: r 2 [0, max(W, H)], µ 2 [0, ¼ ] –Bin size: Reasonable intervals –Initial value: 0 for all bins For every image pixel (x, y) that is a feature/edge/etc., iterate over h 2 [1, T] ( µ (h) is line angle for row h of A ) –Let r = x cos µ (h) + y sin µ (h) –Find index k of the A column closest to r –Increment A(h, k) by one Find all local maxima of A Graph sinusoid

Example: HT for Line Finding Edge-detected image Accumulator array “De-Hough” of lines ¸ 70% of max courtesy of Massey U.

Hough Transform: Issues Noise –Points slightly off curve result in multiple intersections –Can use larger bins, smooth accumulator array Non-maximum suppression a good idea to get unique peaks Dimensionality –Exponential increase in size of accumulator array as number of shape parameters goes up –HT works best for shapes with 3 or fewer variables