Some Basic Relationships Between Pixels Definitions: –f(x,y): digital image –Pixels: q, p –Subset of pixels of f(x,y): S.

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

Chapter 4 Partition I. Covering and Dominating.
Image Processing Ch2: Digital image Fundamentals Part 2 Prepared by: Tahani Khatib.
電腦視覺 Computer and Robot Vision I
Digital Image Processing
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
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,
6/9/2015Digital Image Processing1. 2 Example Histogram.
Digital Image Processing Chapter 2: Digital Image Fundamentals.
UNIVERSITY OF MEDICINE AND PHARMACY “Victor Babeş” TIMISOARA MEDICAL INFORMATICS DEPARTMENT
Digital Image Fundamentals
Fat Curves and Representation of Planar Figures L.M. Mestetskii Department of Information Technologies, Tver’ State University, Tver, Russia Computers.
Chapter 2 Digital Image Fundamentals. Outline Elements of Visual Perception Light and the Electromagnetic Spectrum Image Sensing and Acquisition Image.
2007Theo Schouten1 Morphology Set theory is the mathematical basis for morphology. Sets in Euclidic space E 2 (or rather Z 2 : the set of pairs of integers)
1 Image Processing(IP) 1. Introduction 2. Digital Image Fundamentals 3. Image Enhancement in the spatial Domain 4. Image Enhancement in the Frequency Domain.
Chapter 2: Digital Image Fundamentals Fall 2003, 劉震昌.
Image Segmentation by Clustering using Moments by, Dhiraj Sakumalla.
Chapter 2 Digital Image Fundamentals
Digital Image Fundamentals
Chapter 10: Image Segmentation
Chapter 3 Binary Image Analysis. Types of images ► Digital image = I[r][c] is discrete for I, r, and c.  B[r][c] = binary image - range of I is in {0,1}
GRAPH Learning Outcomes Students should be able to:
Digital Image Processing
Digital Image Processing
Digital Image Processing Lecture 2
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 11 Representation & Description Chapter 11 Representation.
Digital Image Processing in Life Sciences March 14 th, 2012 Lecture number 1: Digital Image Fundamentals.
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.
Chapter Two Digital Image Fundamentals. Agenda: –Light and Electromagnetic Spectrum –Image Sensing & Acquisition –Image Sampling & quantization –Relationship.
Digital Image Processing CCS331 Relationships of Pixel 1.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
Chapter 10 Image Segmentation.
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.
Digital Image Processing (DIP) Lecture # 5 Dr. Abdul Basit Siddiqui Assistant Professor-FURC 1FURC-BCSE7.
Pixel Connectivity Pixel connectivity is a central concept of both edge- and region- based approaches to segmentation The notation of pixel connectivity.
Medical Image Processing & Neural Networks Laboratory 1 Medical Image Processing Chapter 2 Digital Image Fundamentals 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang.
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.
Miguel Tavares Coimbra
CS654: Digital Image Analysis Lecture 4: Basic relationship between Pixels.
Digital Topology CIS 601 Fall 2004 Longin Jan Latecki.
Digital Image Processing
1 Overview representing region in 2 ways in terms of its external characteristics (its boundary)  focus on shape characteristics in terms of its internal.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
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.
Chapter 6 Skeleton & Morphological Operation. Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post.
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.
What is Digital Image Processing?
Image Sampling and Quantization
Some Basic Relationships Between Pixels
Digital Image Fundamentals
Chapter 3 The Real Numbers.
Chapter 3 The Real Numbers.
T490 (IP): Tutorial 2 Chapter 2: Digital Image Fundamentals
Pixel Relations.
Digital Image Fundamentals
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Subject Name: IMAGE PROCESSING Subject Code: 10EC763
Computer and Robot Vision I
Digital Image Processing
Presentation transcript:

Some Basic Relationships Between Pixels Definitions: –f(x,y): digital image –Pixels: q, p –Subset of pixels of f(x,y): S

Neighbors of a Pixel A pixel p at (x,y) has 2 horizontal and 2 vertical neighbors: –(x+1,y), (x-1,y), (x,y+1), (x,y-1) –This set of pixels is called the 4-neighbors of p: N 4 (p)

Neighbors of a Pixel The 4 diagonal neighbors of p are: (N D (p)) –(x+1,y+1), (x+1,y-1), (x-1,y+1), (x-1,y-1) N 4 (p) + N D (p)  N 8 (p): the 8-neighbors of p

Connectivity Connectivity between pixels is important: –Because it is used in establishing boundaries of objects and components of regions in an image

Connectivity Two pixels are connected if: –They are neighbors (i.e. adjacent in some sense - - e.g. N 4 (p), N 8 (p), …) –Their gray levels satisfy a specified criterion of similarity (e.g. equality, …) V is the set of gray-level values used to define adjacency (e.g. V={1} for adjacency of pixels of value 1)

Adjacency We consider three types of adjacency: –4-adjacency: two pixels p and q with values from V are 4-adjacent if q is in the set N 4 (p) –8-adjacency : p & q are 8- adjacent if q is in the set N 8 (p)

Adjacency The third type of adjacency: –m-adjacency: p & q with values from V are m- adjacent if q is in N 4 (p) or q is in N D (p) and the set N 4 (p)  N 4 (q) has no pixels with values from V

Adjacency Mixed adjacency is a modification of 8- adjacency and is used to eliminate the multiple path connections that often arise when 8-adjacency is used.

Adjacency Two image subsets S1 and S2 are adjacent if some pixel in S1 is adjacent to some pixel in S2.

Path A path (curve) from pixel p with coordinates (x,y) to pixel q with coordinates (s,t) is a sequence of distinct pixels: –(x 0,y 0 ), (x 1,y 1 ), …, (x n,y n ) –where (x 0,y 0 )=(x,y), (x n,y n )=(s,t), and (x i,y i ) is adjacent to (x i-1,y i-1 ), for 1≤i ≤n ; n is the length of the path. If (x o, y o ) = (x n, y n ): a closed path

Paths 4-, 8-, m-paths can be defined depending on the type of adjacency specified. If p,q  S, then q is connected to p in S if there is a path from p to q consisting entirely of pixels in S.

Connectivity For any pixel p in S, the set of pixels in S that are connected to p is a connected component of S. If S has only one connected component then S is called a connected set.

Boundary R a subset of pixels: R is a region if R is a connected set. Its boundary (border, contour) is the set of pixels in R that have at least one neighbor not in R Edge can be the region boundary (in binary images)

Distance Measures For pixels p,q,z with coordinates (x,y), (s,t), (u,v), D is a distance function or metric if: –D(p,q) ≥ 0 (D(p,q)=0 iff p=q) –D(p,q) = D(q,p) and –D(p,z) ≤ D(p,q) + D(q,z)

Distance Measures Euclidean distance: –D e (p,q) = [(x-s) 2 + (y-t) 2 ] 1/2 –Points (pixels) having a distance less than or equal to r from (x,y) are contained in a disk of radius r centered at (x,y).

Distance Measures D 4 distance (city-block distance): –D 4 (p,q) = |x-s| + |y-t| –forms a diamond centered at (x,y) –e.g. pixels with D 4 ≤2 from p D 4 = 1 are the 4-neighbors of p

Distance Measures D 8 distance (chessboard distance): –D 8 (p,q) = max(|x-s|,|y-t|) –Forms a square centered at p –e.g. pixels with D 8 ≤2 from p D 8 = 1 are the 8-neighbors of p

Distance Measures D 4 and D 8 distances between p and q are independent of any paths that exist between the points because these distances involve only the coordinates of the points (regardless of whether a connected path exists between them).

Distance Measures However, for m-connectivity the value of the distance (length of path) between two pixels depends on the values of the pixels along the path and those of their neighbors.

Distance Measures e.g. assume p, p 2, p 4 = 1 p 1, p 3 = can have either 0 or 1 If only connectivity of pixels valued 1 is allowed, and p 1 and p 3 are 0, the m- distance between p and p 4 is 2. If either p 1 or p 3 is 1, the distance is 3. If both p 1 and p 3 are 1, the distance is 4 (pp 1 p 2 p 3 p 4 )