CSE 415 -- (c) S. Tanimoto, 2007 Segmentation and Labeling 1 Segmentation and Labeling Outline: Edge detection Chain coding of curves Segmentation into.

Slides:



Advertisements
Similar presentations
Robust statistical method for background extraction in image segmentation Doug Keen March 29, 2001.
Advertisements

E.G.M. PetrakisImage Segmentation1 Segmentation is the process of partitioning an image into regions –region: group of connected pixels with similar properties.
1 Computational Vision CSCI 363, Fall 2012 Lecture 35 Perceptual Organization II.
Chapter 8 Content-Based Image Retrieval. Query By Keyword: Some textual attributes (keywords) should be maintained for each image. The image can be indexed.
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 and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Computer Vision Lecture 16: Region Representation
Incidences and Many Faces via cuttings Sivanne Goldfarb
Segmentation (2): edge detection
Segmentation and Region Detection Defining regions in an image.
Biomedical Image Analysis Rangaraj M. Rangayyan Ch. 5 Detection of Regions of Interest: Sections , Presentation March 3rd 2005 Jukka Parviainen.
Lecture 6 Image Segmentation
Thresholding Otsu’s Thresholding Method Threshold Detection Methods Optimal Thresholding Multi-Spectral Thresholding 6.2. Edge-based.
Machinen Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 8&9: Image Segmentation Professor Heikki Kälviäinen Machine Vision.
International Workshop on Computer Vision - Institute for Studies in Theoretical Physics and Mathematics, April , Tehran 1 IV COMPUTING SIZE.
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
1Ellen L. Walker Recognizing Objects in Computer Images Ellen L. Walker Mathematical Sciences Dept Hiram College Hiram, OH 44234
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Segmentation Divide the image into segments. Each segment:
Image Segmentation. Introduction The purpose of image segmentation is to partition an image into meaningful regions with respect to a particular application.
CS223B Assignment 1 Recap. Lots of Solutions! 37 Groups Many different approaches Let’s take a peek at all 37 results on one image from the test set.
CSE (c) S. Tanimoto, 2008 Image Understanding II 1 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection.
Information that lets you recognise a region.
CS292 Computational Vision and Language Segmentation and Region Detection.
Thresholding Thresholding is usually the first step in any segmentation approach We have talked about simple single value thresholding already Single value.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #18.
Neighborhood Operations
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Edge Linking & Boundary Detection
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
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.
Pixel Connectivity Pixel connectivity is a central concept of both edge- and region- based approaches to segmentation The notation of pixel connectivity.
3D Shape Inference Computer Vision No.2-1. Pinhole Camera Model the camera center Principal axis the image plane.
Image Segmentation and Edge Detection Digital Image Processing Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National Cheng.
A survey of different shape analysis techniques 1 A Survey of Different Shape Analysis Techniques -- Huang Nan.
October 7, 2014Computer Vision Lecture 9: Edge Detection II 1 Laplacian Filters Idea: Smooth the image, Smooth the image, compute the second derivative.
(c) 2000, 2001 SNU CSE Biointelligence Lab Finding Region Another method for processing image  to find “regions” Finding regions  Finding outlines.
Colour and Texture. Extract 3-D information Using Vision Extract 3-D information for performing certain tasks such as manipulation, navigation, and recognition.
Digital Image Processing
Chapter 9: Image Segmentation
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
November 5, 2013Computer Vision Lecture 15: Region Detection 1 Basic Steps for Filtering in the Frequency Domain.
Region Detection Defining regions of an image Introduction All pixels belong to a region Object Part of object Background Find region Constituent pixels.
1 Overview representing region in 2 ways in terms of its external characteristics (its boundary)  focus on shape characteristics in terms of its internal.
CIS Intro to AI 1 Interpreting Line Drawings (An Introduction to Constraint Satisfaction) Mitch Marcus CIS 391 Fall 2008.
Lecture 8CSE Intro to Cognitive Science1 Interpreting Line Drawings II.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
Course 3 Binary Image Binary Images have only two gray levels: “1” and “0”, i.e., black / white. —— save memory —— fast processing —— many features of.
September 26, 2013Computer Vision Lecture 8: Edge Detection II 1Gradient In the one-dimensional case, a step edge corresponds to a local peak in the first.
BYST Seg-1 DIP - WS2002: Segmentation Digital Image Processing Image Segmentation Bundit Thipakorn, Ph.D. Computer Engineering Department.
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
Machine Vision ENT 273 Lecture 4 Hema C.R.
Image Representation and Description – Representation Schemes
COMP 9517 Computer Vision Segmentation 7/2/2018 COMP 9517 S2, 2017.
Computer Vision Lecture 13: Image Segmentation III
Image Segmentation – Edge Detection
Computer Vision Lecture 12: Image Segmentation II
Fourier Transform: Real-World Images
Computer Vision Lecture 5: Binary Image Processing
Computer Vision Lecture 9: Edge Detection II
ECE 692 – Advanced Topics in Computer Vision
I. The Problem of Molding
3D Shape Inference Computer Vision No.2-1.
Vision: Scene Labelling
Vision: Scene Labelling
Presentation transcript:

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 1 Segmentation and Labeling Outline: Edge detection Chain coding of curves Segmentation into Regions Connected components labeling using the UNION-FIND abstract data type Blocks world scene analysis using Guzman’s labeling method

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 2 Edge Detection Rationale: In order to find out where the objects are and what their properties are, locate their boundaries by finding “edges”. An edge is a transition from a region of one predominant color or texture to another predominant color or texture. Approaches: 1. local difference operators. E.g., Sobel, Roberts. * 2. model fitting. E.g., Hueckel, Canny. 3. vector space transformation. E.g., Frei & Chen. 3. contour finding via search. 4. snakes.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 3 Edge Detection (cont.) Local Difference Operators (Oriented) Horizontal differences: E h [i, j] = F[i, j] – F[i, j-1] Vertical differences: E v [i, j] = F[i, j] – F[i-1, j]

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 4 Edge Detection (cont.) Combining directions Strength[i,j] = sqrt( E h 2 + E v 2 ) Direction[i,j] = arctan(E v / E h ) (note: the latter has a bug when E h = 0. This can be fixed using alternative cases.)

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 5 Edge Detection (cont.) Local Difference Operators (Omnidirectional) Roberts Cross operator: E[i, j] = sqrt( (F[i, j] – F[i+1, j+1]) 2 + (F[i, j+1] – F[i+1, j]) 2 ) Sobel operator: E[i, j] = sqrt( [(c+2f+i)-(a+2d+g)] 2 + [(g+2h+i)-(a+2b+c)] 2 ) a b c b e f c h i

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 6 Chain Coding of Contours A chain code is a system for representing elementary vectors by small integers.  = 0  = 1  = 2  = 3 To represent a curve, first approximate it as a sequence of elementary vectors, and then write down the code number for each vector in a sequence.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 7 Segmentation into Regions Technique 1: Thresholding Technique 2: Region growing Example: Connected-components labeling with the UNION-FIND abstract data type.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 8 Thresholding Assumption: We have a monochrome image each of whose pixels belong either to the figure(s) or to the background. Perform a thresholding transformation: T[i,j] = 0 if F[i,j] <  1 otherwise The value  is called a threshold.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 9 Threshold Selection Choosing a suitable can be challenging. If is too low, many pixels may be misclassified as figure, whereas, if it is too high, many pixels may be misclassified as background. The valley method: If the histogram of the input image is bimodal, choose as the threshold, the value between the modes where the histogram is lowest.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 10 Valley Method Example X X X X X X X X X Modes at 1 and 5. Valley at  = 4.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 11 Valley Method Example Result of thresholding with =

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 12 Segmentation into Regions: A segmentation into regions means dividing up all the pixels of an image into groups. Each group of pixels must be connected to each other rather than separated in different parts of the image. Each group must have the same brightness, color, or other local property. It should not be possible to merge two groups and have the new group be both connected and uniform in property.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 13 Segmentation into Regions: Formal Definitions “Adjacency” a b c d e f g h i Pixel e is 4-adjacent to each of b, d, f, and h. a b c d e f g h i Pixel e is 8-adjacent to each of a, b, c, d, f, g, h, i.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 14 Segmentation into Regions: Connectivity Let I = {p 0, p 1, …, p N-1 } be an image. Let R be a nonempty subset of I. Suppose R has at least two pixels. Let p s1 and p sn be two pixels in R. Pixels p s1 and p sn are 4-connected in R provided there is a sequence of pixels (p s1, p s2, … p sn ) such that each successive pair of pixels is 4-adjacent, and all these pixels are in R.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 15 Segmentation into Regions: Definition of Region A region R of I is a 4-connected nonempty subset of I, such that every pair of pixels in R is 4-connected in R.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 16 Region Adjacency Let R i and R j be disjoint regions. If p i is a pixel in R i and p j is a pixel in R j, and p i is 4-adjacent to p j, then regions R i and R j are adjacent to one another. Then we write R i adj R j.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 17 Segmentation Definition Let I = {p 0, p 1, …, p N-1 } be an image. Let S = {R 1, R 2, …, R k } be a set of regions of I. Let P be a uniformity predicate where P(R) is true provided that all the pixels in R have a uniform appearance. For example, P(R) could be defined to be true whenever all pixels in R have the same value. S is a segmentation of I provided that: (1) The regions cover I. That is, R 1  R 2  …  R k = I. (2) The regions are disjoint. i  j  R i  R j = . (3) Each region is uniform.  j, P(R j ). (4) Segments are maximal. If R i adj R j then  P(R i  R j ). This means no regions can be merged and still maintain uniformity within the resulting region.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 18 Computing a Segmentation with the UNION-FIND ADT Initialize a set of regions by putting each pixel in its own region. Scan the image in raster-scan order. At each pixel p i, check its neighbor p j to the west (if it has one) as follows: If the two pixels have the same pixel value, do a FIND on each one getting c i and c j. If c i  c j, then perform UNION(c i, c j ). Then check its neighbor p q to the north (if it has one) in the same way. Perform a second scan of the image and at each pixel p, replace the pixel value by FIND(p)

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 19 Vision: Scene Labeling Structure in the world allows us to interpret complex situations by propagating constraints. This is conveniently demonstrated in computer vision, using a technique known as Guzman labeling.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 20 Blocks-World Vision Problem Given: A 2-D line drawing representing a collection of polyhedral blocks on a table. Determine: Which faces (bounded regions in the drawing) go together as parts of the same objects. Which edges (line segments) are internal to objects and which are “occluding” edges.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 21 Example Scene Analysis Problem

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 22 Guzman’s Vertex Labels EllArrowFork Tee Arrow: There is an angle of more than 180 deg. Fork: Each of the 3 angles is of less than 180 deg. Tee: There is one angle of exactly 180 deg., and 2 smaller ones.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 23 Guzman’s Labelling Technique 1. Classify each vertex into one of the categories: ell, arrow, fork, tee, or other. 2. At each vertex, mark each incoming edge according to the role it plays at the vertex (e.g., shank of an arrow, stem of a tee). 3. Create single links between neighboring regions each time: a. they are divided by a line segment at a fork, b. they are divided by the shank of an arrow, c. they are in corresponding positions of a configuration of two opposing tees with colinear stems. 4. Create a “node” for each region. Whenever two regions are doubly linked, connect their nodes with a “same object” link.

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 24 Example with Vertex Labels A A A A A F F A L L L L T T T L L T T

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 25 Example with Region Links

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 26 Example with Object Links

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 27 Example with Internal and Occluding Edges Identified occluding internal

CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 28 Discussion The work of Guzman was refined by D. Huffman, M. Clowes, and D. Waltz to take into account additional kinds of edges, including crack edges, oriented occluding edges, and concave and convex internal edges. A key point of this research was to show that constraints imposed by the real world could make seemingly intractable combinatorial interpretation problems actually solvable.