CS654: Digital Image Analysis Lecture 4: Basic relationship between Pixels.

Slides:



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

電腦視覺 Computer and Robot Vision I
Robust statistical method for background extraction in image segmentation Doug Keen March 29, 2001.
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Teaching assistant: Yimo Guo Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 1.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Digital Image Processing Lecture 12: Image Topology
Each pixel is 0 or 1, background or foreground Image processing to
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
Chapter 5 Raster –based algorithms in CAC. 5.1 area filling algorithm 5.2 distance transformation graph and skeleton graph generation algorithm 5.3 convolution.
Surface Reconstruction from 3D Volume Data. Problem Definition Construct polyhedral surfaces from regularly-sampled 3D digital volumes.
CS 376b Introduction to Computer Vision 04 / 08 / 2008 Instructor: Michael Eckmann.
Image Analysis Preprocessing Image Quantization Binary Image Analysis
Digital Image Processing Chapter 2: Digital Image Fundamentals.
Objective of Computer Vision
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.
Digital Image Processing
Digital Image Processing Lecture 2
CS654: Digital Image Analysis Lecture 3: Data Structure for Image Analysis.
G52IIP, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
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.
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.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
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.
Medical Image Processing & Neural Networks Laboratory 1 Medical Image Processing Chapter 2 Digital Image Fundamentals 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang.
1 Closures of Relations: Transitive Closure and Partitions Sections 8.4 and 8.5.
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
1 Euler Number Computation By Kishore Kulkarni (Under the Guidance of Dr. Longin Jan Latecki)
CS654: Digital Image Analysis Lecture 5: Pixels Relationships.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
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.
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.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
CS552: Computer Graphics Lecture 16: Polygon Filling.
Copyright ©2008, Thomson Engineering, a division of Thomson Learning Ltd.
What is Digital Image Processing?
Image Sampling and Quantization
Some Basic Relationships Between Pixels
Digital Image Fundamentals
Course : T Computer Vision
Digital Image Processing Lecture 15: Morphological Algorithms April 27, 2005 Prof. Charlene Tsai.
图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations
IMAGE PROCESSING Questions and Answers.
Computer Vision Lecture 5: Binary Image Processing
T490 (IP): Tutorial 2 Chapter 2: Digital Image Fundamentals
Pixel Relations.
Digital Image Fundamentals
Binary Image processing بهمن 92
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
Digital Image Processing Lecture 15: Morphological Algorithms
Computer and Robot Vision I
Presentation transcript:

CS654: Digital Image Analysis Lecture 4: Basic relationship between Pixels

Recap of Lecture 3 Issues with sampling and quantization Quality and size trade-off Data structure to store image information Matrices – Integral image Topological – Graph Hierarchical – Pyramid, Quadtree

Highlights of Lecture 4 Relationship between image pixels Neighbourhood Connectivity Adjacency Path Distance metric Euclidean, City block, Chess board distance, Geodesic distance

Definitions f(x,y): digital image Pixels: q, p Subset of pixels of f(x,y): S p q

Neighbors of a Pixel A pixel p at coordinates (x,y) has four horizontal and vertical neighbors whose coordinates are given by: (x+1,y), (x-1, y), (x, y+1), (x,y-1) (x-1, y) (x, y-1)p (x, y)(x, y+1) (x+1, y)

Neighbourhood This set of pixels, called the 4-neighbors or p, is denoted by N 4 (p). Each pixel is one unit distance from (x,y) Some of the neighbors of p lie outside the digital image

Neighbors of a Pixel: Diagonal The four diagonal neighbors of p have coordinates: (x+1, y+1), (x+1, y-1), (x-1, y+1), (x-1, y-1) and are denoted by N D (p). As before, if (x,y) is on the border of the image. (x-1, y-1)(x-1, y+1) p (x,y) (x+1, y-1)(x+1, y+1)

Neighbourhood: 8-neighbours (x-1, y-1)(x-1, y)(x-1, y+1) (x, y-1)p (x,y)(x, y+1) (x+1, y-1)(x, y+1)(x+1, y+1) Some of the points in N D (p) and N 8 (p) fall outside the image

Connectivity It is used in establishing boundaries of objects and components of regions in an image A pixel is connected to its neighbor when it has the same property V is the set of gray-level values used to define adjacency V set can be any subset of these 256 values. For binary image ??

V = { } Different types of connectivity p pp 4-connected8-connectedm-connected

Adjacency A pixel p is adjacent to a pixel q, if they are connected. 1.4-adjacency: Two pixels p and q with values from V are 4-adjacent if q is in the set N 4 (p). 2.8-adjacency: Two pixels p and q with values from V are 8-adjacent if q is in the set N 8 (p). 3.m-adjacency =(mixed) Depending upon the connectivity used

Types of Adjacency Mixed adjacency is a modification of 8- adjacency. It is introduced to eliminate the ambiguities that often arise when 8-adjacency is used. For example:

Types of Adjacency In this example, we can note that to connect between two pixels (finding a path between two pixels): In 8-adjacency way, you can find multiple paths between two pixels While, in m-adjacency, you can find only one path between two pixels So, m-adjacency has eliminated the multiple path connection that has been generated by the 8-adjacency.

Adjacent regions Two subsets S1 and S2 are adjacent, if  some pixel in S1 is adjacent to some pixel in S2. Adjacent means, either 4-, 8- or m-adjacency. Region 1 Region 2

A Digital Path A digital path from pixel p with coordinate (x,y) to pixel q with coordinate (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) and (x n, y n ) = (s,t) Pixels (x i, y i ) and (x i-1, y i-1 ) are adjacent for 1 ≤ i ≤ n n is the length of the path If (x 0,y 0 ) = (x n, y n ), the path is closed.

A Digital Path Return to the previous example: In figure (b) the paths between the top right and bottom right pixels are 8-paths. And the path between the same 2 pixels in figure (c) is m-path

Connected component

Connected component labeling (CCL) Ability to assign different labels to various disjoint connected components Connected-component analysis, Blob extraction, Region labeling, Blob discovery, or Region extraction Connected-component labeling is not to be confused with segmentation.

Algorithm for CCL Scan an image from left to right and from top to bottom Assume 4-connectivity P be a pixel at any step in the scanning process p r t Before pixel p, pixel r and t are scanned

Steps of CCL Algorithm: Pass 1 I(p) : pixel value at position p L(p): Label assigned to pixel location p 1.If I(p) = 0, then move to next scanning position 2.If I(p) = 1 and I(r) = I(t) = 0, then 3.Assign a new label to position p 4.If I(p) = 1 and only one of the two neighbor is 1, then 5.Assign its label to p 6.If I(p) = 1 and both r and t are 1’s, then 7.If L(r) = L(t) then L(p) = L(r) 8. If L(r) != L(t) then 9. assign on of the labels to p and make a note that the two labels are quivalent

CCL: Pass 2 After all the pixels are processed once, Pixels with value 1 are labeled Some labels are equivalent During 2 nd pass (post-processing), process the equivalent pixels to form equivalent classes Assign a different label to each class Each pixel is labeled with the class label

CCL: Example

Equivalent labels

CCL: Example

Thank you Next Lecture: Neighbourhood Relationship (Contd.)