Digital Topology CIS 601 Fall 2004 Longin Jan Latecki.

Slides:



Advertisements
Similar presentations
Goal: a graph representation of the topology of a gray scale image. The graph represents the hierarchy of the lower and upper level sets of the gray level.
Advertisements

Image Segmentation Longin Jan Latecki CIS 601. Image Segmentation Segmentation divides an image into its constituent regions or objects. Segmentation.
Chapter 8 Topics in Graph Theory
Image Processing Ch2: Digital image Fundamentals Part 2 Prepared by: Tahani Khatib.
電腦視覺 Computer and Robot Vision I
Document Image Processing
Viewing & Clipping In 2D. 2 of 44 Contents Windowing Concepts Clipping –Introduction –Brute Force –Cohen-Sutherland Clipping Algorithm Area Clipping –Sutherland-Hodgman.
Closest Pair Given a set S = {p1, p2,..., pn} of n points in the plane find the two points of S whose distance is the smallest. Images in this presentation.
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Some Basic Morphological Algorithm
Digital Image Processing Lecture 12: Image Topology
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
Contour Tracing Seo, Jong-hoon Media System Lab. Yonsei University.
Objective of Computer Vision
Clustering Color/Intensity
Image Segmentation Using Region Growing and Shrinking
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
1 Image Processing(IP) 1. Introduction 2. Digital Image Fundamentals 3. Image Enhancement in the spatial Domain 4. Image Enhancement in the Frequency Domain.
CS 2813 Discrete Structures
Chapter 1.7 Midpoint and Distance in a Coordinate Plane
Image Segmentation CIS 601 Fall 2004 Longin Jan Latecki.
Edge Detection Hao Huy Tran Computer Graphics and Image Processing CIS 581 – Fall 2002 Professor: Dr. Longin Jan Latecki.
Digital Image Processing
Lecture 06 Binary Image Analysis Lecture 06 Binary Image Analysis Mata kuliah: T Computer Vision Tahun: 2010.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 11 Representation & Description Chapter 11 Representation.
Edge Linking & Boundary Detection
Digital Image Fundamentals II 1.Image modeling and representations 2.Pixels and Pixel relations 3.Arithmetic operations of images 4.Image geometry operation.
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 CCS331 Relationships of Pixel 1.
Image Similarity Longin Jan Latecki CIS Dept. Temple Univ., Philadelphia
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.
Introduction Image geometry studies rotation, translation, scaling, distortion, etc. Image topology studies, e.g., (i) the number of occurrences.
Digital Image Fundamentals Faculty of Science Silpakorn University.
Pixel Connectivity Pixel connectivity is a central concept of both edge- and region- based approaches to segmentation The notation of pixel connectivity.
Computer Vision Introduction to Digital Images.
Digital Image Processing In The Name Of God Digital Image Processing Lecture2: Digital Image Fundamental M. Ghelich Oghli By: M. Ghelich Oghli
CS654: Digital Image Analysis Lecture 5: Pixels Relationships.
CSCI 115 Chapter 8 Topics in Graph Theory. CSCI 115 §8.1 Graphs.
CS654: Digital Image Analysis Lecture 4: Basic relationship between Pixels.
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
November 5, 2013Computer Vision Lecture 15: Region Detection 1 Basic Steps for Filtering in the Frequency Domain.
Some Basic Relationships Between Pixels Definitions: –f(x,y): digital image –Pixels: q, p –Subset of pixels of f(x,y): S.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 11 Representation and.
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.
Image Processing Chapter(3) Part 1:Relationships between pixels Prepared by: Hanan Hardan.
Relationship between pixels Neighbors of a pixel – 4-neighbors (N,S,W,E pixels) == N 4 (p). A pixel p at coordinates (x,y) has four horizontal and vertical.
Digital Image Processing CCS331 Relationships of Pixel 1.
Sheng-Fang Huang Chapter 11 part I.  After the image is segmented into regions, how to represent and describe these regions? ◦ In terms of its external.
October 3, 2013Computer Vision Lecture 10: Contour Fitting 1 Edge Relaxation Typically, this technique works on crack edges: pixelpixelpixel pixelpixelpixelebg.
What is Digital Image Processing?
Image Sampling and Quantization
Some Basic Relationships Between Pixels
Course : T Computer Vision
Discrete Mathematics Graph: Planar Graph Yuan Luo
Computer Vision Lecture 13: Image Segmentation III
Computer Vision Lecture 12: Image Segmentation II
Computer Vision Lecture 5: Binary Image Processing
T490 (IP): Tutorial 2 Chapter 2: Digital Image Fundamentals
Fall 2012 Longin Jan Latecki
Pixel Relations.
Digital Image Fundamentals
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Subject Name: IMAGE PROCESSING Subject Code: 10EC763
Digital Image Processing
Computer and Robot Vision I
Image Segmentation Using Region Growing and Shrinking
Presentation transcript:

Digital Topology CIS 601 Fall 2004 Longin Jan Latecki

Relationship between pixels Neighbors of a pixel – 4-neighbors (N,S,W,E pixels) == N 4 (p). A pixel p at coordinates (x,y) has four horizontal and vertical neighbors: (x+1,y), (x-1, y), (x,y+1), (x, y-1)

– You can add the four diagonal neighbors to give the 8- neighbor set. Diagonal neighbors == ND(p). – 8-neighbors: include diagonal pixels == N 8 (p).

Pixel Connectivity Connectivity is used to trace contours, to define object boundaries, and for segmentation. In order for two pixels to be connected, they must be “neighbors” sharing a common property—satisfy some similarity criterion. In a binary image with pixel values “0” and “1”, two neighboring pixels are said to be connected if they have the same value. Let V: Set of binary or gray level values used to define connectivity; e.g., V={1}.

Connectivity 4-adjacency: Two pixels p and q with values in V are 4-adjacent if q is in the set N 4 (p). 8-adjacency: q is in the set N 8 (p). A 4 (8)-path from p to q is a sequence of points p=p 0, p 1, …, p n =q such that each p n+1 is 4 (8)-adjacent to p n

Connected components Let S represent a subset of pixels in an image. Set S is connected if for each pair of points p and q in S, there is a path from p to q contained entirely S. A connected component is a maximal set of pixels in S that is connected. There can be more than one such set within a given S.

We assume that points r and t have been visited and labeled. Now we visit point p:p=0: no action; p=1: check r and t. – both r and t = 0; assign new label to p; – only one of r and t is a 1. assign its label to p; – both r and t are 1: same label => assign it to p; different label=> assign one of them to p and establish equivalence between labels (they are the same.) Second pass over the image to merge equivalent labels. r pt 4-connected component labeling for points

Homework 9 Develop a similar algorithm for 8-connectivity. Matlab example: BW = logical([ ]); L = bwlabel(BW,4); [r,c] = find(L == 2);

Problems with 4- and 8-connectivity Neither method is satisfactory. – Why? A simple closed curve divides a plane into two simply connected regions. – However, neither 4-connectivity nor 8-connectivity can achieve this for discrete labeled components. – Give some examples.

Border following Let our object b be an 8-connected set of 1’s that is not a single isolated point. A pixel P is a border pixel of b if P is 4-adjacent to at least one 0. Let the 8 neighbors of P be ordered counterclockwise as follows, which implies that the outer border will be followed counterclockwise. N4N3N2 N5 PN1 N6N7N8

Border following algorithm: Let (P_i,Q_i) be such that P_i is in b (P_i is 1), Q_i is 0, Q_i = N_1, and P_i and Q_i are 4-adjacent. Then P_i+1 = N_k, where N_k is the first of the 8 neighbors of P_i that is 1 (it exists since b is not a single isolated point) and Q_i = N_k-1. The algorithm stops when we come back to the initial point pair (P_1, Q_1). This stop condition is necessary, since we can pass through a point twice (give an example). In Matlab use function B = boundaries(BW);

Q3 Q41 P31 P2Q2 1 P411 P1Q1 Q51 P51 P61 P7 Q6Q7 Example of the border following algorithm: