Computer Vision Lecture 5. Clustering: Why and How.

Slides:



Advertisements
Similar presentations
E.G.M. PetrakisImage Segmentation1 Segmentation is the process of partitioning an image into regions –region: group of connected pixels with similar properties.
Advertisements

Segmentácia farebného obrazu
Clustering & image segmentation Goal::Identify groups of pixels that go together Segmentation.
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Computer Vision Lecture 16: Region Representation
COLORCOLOR A SET OF CODES GENERATED BY THE BRAİN How do you quantify? How do you use?
Image Segmentation Selim Aksoy Department of Computer Engineering Bilkent University
Quadtrees, Octrees and their Applications in Digital Image Processing
Content Based Image Retrieval
Lecture 6 Image Segmentation
EE 7730 Image Segmentation.
Data Structures For Image Analysis
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
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”.
Segmentation Divide the image into segments. Each segment:
Quadtrees, Octrees and their Applications in Digital Image Processing
Image Segmentation Using Region Growing and Shrinking
CS292 Computational Vision and Language Segmentation and Region Detection.
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
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
Image Segmentation by Clustering using Moments by, Dhiraj Sakumalla.
CS 376b Introduction to Computer Vision 04 / 02 / 2008 Instructor: Michael Eckmann.
Computer Vision James Hays, Brown
CSE 185 Introduction to Computer Vision Pattern Recognition.
What we didn’t have time for CS664 Lecture 26 Thursday 12/02/04 Some slides c/o Dan Huttenlocher, Stefano Soatto, Sebastian Thrun.
CS654: Digital Image Analysis Lecture 3: Data Structure for Image Analysis.
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
Segmentation Course web page: vision.cis.udel.edu/~cv May 7, 2003  Lecture 31.
Chapter 14: SEGMENTATION BY CLUSTERING 1. 2 Outline Introduction Human Vision & Gestalt Properties Applications – Background Subtraction – Shot Boundary.
Digital Image Processing CSC331
Intelligent Vision Systems ENT 496 Object Shape Identification and Representation Hema C.R. Lecture 7.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Segmentation.
Quadtrees, Octrees and their Applications in Digital Image Processing.
Chapter 10 Image Segmentation.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Data Extraction using Image Similarity CIS 601 Image Processing Ajay Kumar Yadav.
CS654: Digital Image Analysis
Chap 7 Image Segmentation. Edge-Based Segmentation The edge information is used to determine boundaries of objects Pixel-based direct classification methods.
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.
(c) 2000, 2001 SNU CSE Biointelligence Lab Finding Region Another method for processing image  to find “regions” Finding regions  Finding outlines.
October 16, 2014Computer Vision Lecture 12: Image Segmentation II 1 Hough Transform The Hough transform is a very general technique for feature detection.
Medical Image Analysis Image Segmentation Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
Machine Vision ENT 273 Regions and Segmentation in Images Hema C.R. Lecture 4.
Evaluation of Image Segmentation algorithms By Dr. Rajeev Srivastava.
Image Segmentation Image segmentation (segmentace obrazu)
November 5, 2013Computer Vision Lecture 15: Region Detection 1 Basic Steps for Filtering in the Frequency Domain.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP10 Advanced Segmentation Miguel Tavares.
Image Segmentation Nitin Rane. Image Segmentation Introduction Thresholding Region Splitting Region Labeling Statistical Region Description Application.
1 Review and Summary We have covered a LOT of material, spending more time and more detail on 2D image segmentation and analysis, but hopefully giving.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
May 2003 SUT Color image segmentation – an innovative approach Amin Fazel May 2003 Sharif University of Technology Course Presentation base on a paper.
Digital Image Processing CCS331 Relationships of Pixel 1.
Normalized Cuts and Image Segmentation Patrick Denis COSC 6121 York University Jianbo Shi and Jitendra Malik.
Clustering [Idea only, Chapter 10.1, 10.2, 10.4].
Course : T Computer Vision
Machine Vision ENT 273 Lecture 4 Hema C.R.
Image Representation and Description – Representation Schemes
Miguel Tavares Coimbra
COMP 9517 Computer Vision Segmentation 7/2/2018 COMP 9517 S2, 2017.
Computer Vision Lecture 13: Image Segmentation III
DIGITAL SIGNAL PROCESSING
Mean Shift Segmentation
Computer Vision Lecture 12: Image Segmentation II
ECE 692 – Advanced Topics in Computer Vision
Image Segmentation Using Region Growing and Shrinking
Presentation transcript:

Computer Vision Lecture 5. Clustering: Why and How

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 1 This Lecture What is segmentation? 14.1 Segmentation and human vision 14.2 Background detection, scene changes 14.3 Segmentation through clustering 14.4 –Digital topology –Split and merge –k-means Graph theoretic segmentation 14.5 Hough transform 15.1

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 2 What is Segmentation? Examples –Scene change detection –Part search –Identification of humans –Search for buildings in satellite images –Search for images in databases

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 3 Formal Models of Segmentation Sub-processes –Image region generation –Curve segment detection –Point correspondence between two images Segmentation as clustering –Splitting –Merging

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 4 Gestalt Theories and Segmentation Gestalt theory: psychological theory of vision emphasizing how relations between visual objects affects their perception Examples of gestalt groupings: Basic image Nearness Color similarity Shape similarity Common behavior Common regionRegion grouping is stronger than nearness

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 5 Factors Affecting Grouping Parallel linesSymmetric LinesClosureContinuity

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 6 Shape Decides Figure-Ground Choice

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 7 Figure: Museum Background: Sky plus trees Goal: Identify background Segmentation by Histogram Strategy: Use red to identify trees, use blue to identify sky

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 8 Edit Detection

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 9 Clustering Preliminary processing produces binary image Identify connected groups of pixels in the image

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 10 Topological Clustering Given: Array with values 0 and -1 –Cells with 0 are unmarked (background), cells with -1 are marked (objects) Goal: Assign value 1 for all pixels in first object, value 2 in second object, etc. Topological principle: If a pixel is in object k, and another pixel is adjacent to it and is marked, then it is also in object k pixel values

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 11 Topological Clustering Algorithm topological_clusters { k = 1; p = coordinates_of_marked_pixel while (p != -1) { label_connected_pixels( p, k) k = k+1; p = coordinates_of_marked_pixel } coordinages_of_marked_pixel { for i = 1 to last { if val[i] == -1 return i; } return -1; }

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 12 Connected Pixel Labeling label_connected_pixels( p, k) { // label all marked // pixels connected to p with k val(p) = k; change = 1; while ( change == 1 ) { change = 0; for i = 1 to last { if (val[i] == -1) & (pixel_adjacent_to(i) == k) { val[i] = k; change = 1; } ) pixel i pixel adjacent to i

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 13 More General Clustering Given: Set of points Goal: Set of clusters Method (split and merge) While (stopping criterion not met) { –If (clusters to loose tight) split clusters –If (clusters too small) merge clusters } Many ideas, many algorithms Quality measures –Good if small number of clusters –Good if clusters are tight and/or well shaped

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 14 Adjacency Matrix Merge Adjacency Matrix

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 15 Merge Rules Find adjacency matrix d(i, j) = ||p i –p j || Merge: –Find smallest d(i, j) –Merge these two clusters. Call new cluster k –For all l ≠ i, j, d(l, k) = min(d(l, i), d(l, j))

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 16 k – Mean Clustering Assign data to k clusters Iteratively –Compute c i, means of clusters for i = 1... k –Re-assign data to the cluster associated with the closest mean

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 17 Graph-Based Segmentation Split image into parts Assign a graph vertex to each part Assign edges that measure similarity between parts Partition graph into components that are similar within component and different among components.

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 18 Advantages and Disadvantages Similarity measures can be chosen for the problem at hand –Similarity according to intensity –Similarity in color –Similarity in texture –Similarity in geometry No good method of choosing similarity measures and merging criteria

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 19 Model-Based Segmentation Method of segmentation should be chosen on the basis of model of objects being segmented We will consider clustering of straight lines from edge detection data

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 20 Hough Transform Coordinates of a line on a plane are The transform

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 21 Hough Coordinates Image of one point Hough transform

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 22 Line Detection

Computer Vision, Lecture 5 Oleh Tretiak © 2005Slide 23 Lines With and Without Noise