CS654: Digital Image Analysis Lecture 5: Pixels Relationships.

Slides:



Advertisements
Similar presentations
Image Processing Ch2: Digital image Fundamentals Part 2 Prepared by: Tahani Khatib.
Advertisements

電腦視覺 Computer and Robot Vision I
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Table of Contents 9.5 Some Basic Morphological Algorithm
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Teaching assistant: Yimo Guo Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 1.
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
Each pixel is 0 or 1, background or foreground Image processing to
图像处理技术讲座( 7 ) Digital Image Processing (7) 二值形态学 Binary morphology 顾 力栩 上海交通大学 计算机系
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
November 4, 2014Computer Vision Lecture 15: Shape Representation II 1Signature Another popular method of representing shape is called the signature. In.
Digital Image Processing Chapter 2: Digital Image Fundamentals.
1 Computer Science 631 Lecture 3: Morphing, Sampling Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
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}
CGMB 314 Intro to Computer Graphics Fill Area Primitives.
Digital Image Processing
Machine Vision for Robots
CS 6825: Binary Image Processing – binary blob metrics
Digital Image Fundamentals II 1.Image modeling and representations 2.Pixels and Pixel relations 3.Arithmetic operations of images 4.Image geometry operation.
CS 376b Introduction to Computer Vision 02 / 22 / 2008 Instructor: Michael Eckmann.
Under Supervision of Dr. Kamel A. Arram Eng. Lamiaa Said Wed
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.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
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.
Medical Image Processing & Neural Networks Laboratory 1 Medical Image Processing Chapter 2 Digital Image Fundamentals 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang.
CS654: Digital Image Analysis Lecture 6: Basic Transformations.
MIDPOINT CIRCLE & ELLIPSE GENERARTING ALGORITHMS
Digital Image Processing In The Name Of God Digital Image Processing Lecture2: Digital Image Fundamental M. Ghelich Oghli By: M. Ghelich Oghli
Miguel Tavares Coimbra
CS654: Digital Image Analysis Lecture 4: Basic relationship between Pixels.
CS654: Digital Image Analysis
CS654: Digital Image Analysis
Digital Topology CIS 601 Fall 2004 Longin Jan Latecki.
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
Digital Image Processing
Some Basic Relationships Between Pixels Definitions: –f(x,y): digital image –Pixels: q, p –Subset of pixels of f(x,y): S.
Digital Image Processing Lecture 13: Image Topology - Skeletonization Prof. Charlene Tsai.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
BYST Morp-1 DIP - WS2002: Morphology Digital Image Processing Morphological Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department.
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.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
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.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Image Sampling and Quantization
Some Basic Relationships Between Pixels
Digital Image Fundamentals
图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations
Digital Image Processing Lecture 13: Image Topology - Skeletonization
Mean Shift Segmentation
Slope and Curvature Density Functions
Computer Vision Lecture 5: Binary Image Processing
CS Digital Image Processing Lecture 5
Pixel Relations.
Digital Image Fundamentals
Computer and Robot Vision I
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Computer and Robot Vision I
Digital Image Processing
Chapter 6 Neighborhood Operators
Computer and Robot Vision I
CS654: Digital Image Analysis
Presentation transcript:

CS654: Digital Image Analysis Lecture 5: Pixels Relationships

Recap of Lecture 4 Different pixel relationships Neighbourhood Connectivity Adjacency Path Connected component labelling

Outline Different distance measures Application of distance measures Arithmetic and logical operations on images

Region and boundary A region is a set of pixels in which there is a path between any pair of pixels Points within a region are contiguous: reflexive, symmetric and transitive Decomposition of set Connected component labeling

Foreground and background

Distance Measures For pixels p, q and z, with coordinates (x,y), (s,t) and (v,w), respectively, D is a distance function if: (a) D (p,q) ≥ 0 (D (p,q) = 0 iff p = q), (b) D (p,q) = D (q, p), and (c) D (p,z) ≤ D (p,q) + D (q,z).

Distance Measures The Euclidean Distance between p and q is defined as: D e (p,q) = [(x – s) 2 + (y - t) 2 ] 1/2 D e (p,q) p (x,y) q (s,t) Pixels having a distance less than or equal to some value r from (x,y) are the points contained in a disk of radius r centered at (x,y)

Distance Measures The D 4 distance (also called city-block distance, Manhattan distance) between p and q is defined as: D 4 (p,q) = | x – s | + | y – t | Pixels having a D 4 distance from (x,y), less than or equal to some value r form a Diamond centered at (x,y) p (x,y) q (s,t) D4D4

Distance Measures Example: The pixels with distance D 4 ≤ 2 from (x,y) form the following contours of constant distance. The pixels with D 4 = 1 are the 4-neighbors of (x,y) P

Distance Measures The D 8 distance (also called chessboard distance ) between p and q is defined as: D 8 (p,q) = max(| x – s |,| y – t |) Pixels having a D 8 distance from (x,y), less than or equal to some value r form a square Centered at (x,y) p (x,y) q (s,t) D 8(b) D 8(a) D 8 = max(D 8(a), D 8(b) )

Distance Measures Example: D 8 distance ≤ 2 from (x,y) form the following contours of constant distance P

Distance Measures Dm distance: is defined as the shortest m-path between the points. In this case, the distance between two pixels will depend on the values of the pixels along the path, as well as the values of their neighbors.

Distance Measures Example: Consider the following arrangement of pixels and assume that p, p 2, and p 4 have value 1 and that p 1 and p 3 can have can have a value of 0 or 1 Suppose that we consider the adjacency of pixels values 1 (i.e. V = {1}) 0st qr0 p00

Distance Measures Cont. Example: Now, to compute the D m between points p and t Here we have 4 cases: Case1: If q =0 and s = 0 The length of the shortest m-path (the D m distance) is 2 (p, p 2, p 4 ) 00t 0r0 p00

Distance Measures Cont. Example: Case2: If q =1 and s = 0 now, q and p will no longer be adjacent (see m-adjacency definition) then, the length of the shortest path will be 3 (p, q, r, t) 00t qr0 p00

Distance Measures Cont. Example: Case3: If p 1 =0 and p 3 = 1 The same applies here, and the shortest –m-path will be 3 (p, p 2, p 3, p 4 ) 0st 0r0 p00

Distance Measures Cont. Example: Case4: If p 1 =1 and p 3 = 1 The length of the shortest m-path will be 4 (p, p 1, p 2, p 3, p 4 ) 0st qr0 p00

Paradoxes 4- connectivity Perpendicular lines not crossing each other

Paradoxes aB dC 8- connectivity Perpendicular lines not crossing each other

Application of distance measure: Shape matching Distance transform is an operator normally only applied to binary images. The result of the transform is a gray-level image that looks similar to the input image Except that the grey level intensities of points inside foreground regions are changed to show the distance to the closest boundary from each point.

Distance transform: Analogy Imagine that foreground regions in the input binary image are made of some uniform slow burning inflammable material. Starting a fire at all points on the boundary of a foreground region and letting the fire burn its way into the interior. Label each point in the interior with the amount of time that the fire took to first reach that point Chamfering algorithm or chamfering or distance function

Distance transform The resulting image has pixel values o 0 for elements of the relevant subset o Low values for close pixel o High values for pixels remote from it The distance transform of a binary image o Distance from each pixel to the nearest non-zero pixel

Example Distance transform for distance D 4

Two pass distance transform algorithm Proposed by Rosenfeld and Pfaltz for distance D 4 and D 8 Idea: traverse the image by a small local mask Pass 1: Starts from top left corner of the image Move horizontally left to right Move vertically top to bottom Pass 2: Starts from bottom right corner of the image Move horizontally right to left Move vertically bottom to top

Masks use for distance transform calculation AL P Pixel neighbourhoods used in DT P is the central pixel The effectiveness comes from the propagation of values in a wave like manner Mask used for pass 1 BR P Mask used for pass 2

The DT Algorithm

Arithmetic operations on Images An image is represented in a matrix format. To perform image arithmetic the size of the two matrices should be same. The operation on two images results in a new image. Consider two images A and B with same size. Image Addition – add components from one image into other image Image Subtraction – change detection Image Multiplication – masking Image Division

Logical operation on images Logical operations are done on pixel by pixel basis. The AND and OR operations are used for selecting sub- images in an image. This masking operation is referred as Region Of Interest processing. Isolate image parts Logical AND Logical OR

Thank you Next Lecture: Basic transformations