Digital Image Processing CCS331 Relationships of Pixel 1.

Slides:



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

電腦視覺 Computer and Robot Vision I
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009.
Digital Image Processing
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
Computer Vision Lecture 3: Digital Images
Digital Image Processing
Digital Image Processing CCS331 Basic Transformations 1.
Digital Image Processing CCS331 Image Interpolation 1.
Digital Image Processing CCS331
Edge Linking & Boundary Detection
Segmentation Course web page: vision.cis.udel.edu/~cv May 7, 2003  Lecture 31.
Digital Image Processing CSC331
CS 6825: Binary Image Processing – binary blob metrics
Digital Image Processing CSC331
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
September 5, 2013Computer Vision Lecture 2: Digital Images 1 Computer Vision A simple two-stage model of computer vision: Image processing Scene analysis.
Digital Image Processing CCS331 Relationships of Pixel 1.
Chapter 10 Image Segmentation.
Digital Image Processing CSC331 Image Enhancement 1.
Digital Image Fundamentals Faculty of Science Silpakorn University.
3. Image Sampling & Quantisation 3.1 Basic Concepts To create a digital image, we need to convert continuous sensed data into digital form. This involves.
Digital Image Processing DIGITIZATION. Summery of previous lecture Digital image processing techniques Application areas of the digital image processing.
Digital Image Processing CSC331 Morphological image processing 1.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Computer Vision Introduction to Digital Images.
Copyright Howie Choset, Renata Melamud, Al Costa, Vincent Lee-Shue, Sean Piper, Ryan de Jonckheere. All Rights Reserved Computer Vision.
Digital Image Processing In The Name Of God Digital Image Processing Lecture2: Digital Image Fundamental M. Ghelich Oghli By: M. Ghelich Oghli
Digital Image Processing CSC331 Image restoration 1.
Digital Image Processing CSC331 Morphological image processing 1.
CS654: Digital Image Analysis Lecture 5: Pixels Relationships.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
CS654: Digital Image Analysis Lecture 4: Basic relationship between Pixels.
Low level Computer Vision 1. Thresholding 2. Convolution 3. Morphological Operations 4. Connected Component Extraction 5. Feature Extraction 1.
Digital Image Processing
Digital Topology CIS 601 Fall 2004 Longin Jan Latecki.
Digital Image Processing CSC331 Image Enhancement 1.
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
ISAN-DSP GROUP Digital Image Fundamentals ISAN-DSP GROUP What is Digital Image Processing ? Processing of a multidimensional pictures by a digital computer.
Digital Image Processing CSC331 Image restoration 1.
Image Segmentation Nitin Rane. Image Segmentation Introduction Thresholding Region Splitting Region Labeling Statistical Region Description Application.
Some Basic Relationships Between Pixels Definitions: –f(x,y): digital image –Pixels: q, p –Subset of pixels of f(x,y): S.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Digital Image Processing CSC331
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 CSC331 Introduction 1. My Introduction EDUCATION Technical University of Munich, Germany Ph.D. Major: Machine learning.
Digital Image Processing CCS331 Camera Model and Imaging Geometry 1.
What is Digital Image Processing?
Some Basic Relationships Between Pixels
Digital Image Fundamentals
Course : T Computer Vision
IMAGE PROCESSING RECOGNITION AND CLASSIFICATION
Digital Image Processing CSC331
Computer Vision Lecture 13: Image Segmentation III
Mean Shift Segmentation
Computer Vision Lecture 12: Image Segmentation II
Computer Vision Lecture 5: Binary Image Processing
Pixel Relations.
Digital Image Fundamentals
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Department of Computer Engineering
Digital Image Processing
Computer and Robot Vision I
Computer and Robot Vision I
Miguel Tavares Coimbra
Presentation transcript:

Digital Image Processing CCS331 Relationships of Pixel 1

Summery of previous lecture Sampling: instead of taking the possible intensity values at every possible location in the image; we take the pixels values or intensity values at some discrete locations in the 2 dimensional space Quantization: The sample values are quantized to one of the discrete levels and depending upon the number of levels that we choose, the number of bits needed to represent each and every sample value. 2

Summery of previous lecture Normally 8 bits for quantization of every sample value is used. – if it is a black and white image; then the set of values for black and white will be 16 – if it is a color image, then there are 3 different planes - the red plane, green plane and blue plane. For each of these different planes, every point is represented by 8 bits. – for a color image, normally we have 24 bits for every sample which we call it pixel; – an image is represented in the form of a matrix or a 2 dimensional matrix which is a digital image and each of the matrix elements are is now called a pixel. 3

Todays lecture By representing the image in matrix with different points called “pixels”, There are some important relationships exist among those pixels. Neighborhood of the pixel and there types. Connectivity in an image. Connected component labeling algorithm Adjacency and different types of adjacency relationships. Distance measures method Different image operations 4

Pixel neighborhood An image is represented as a function f(x, y) Each element f(x, y) at location of x and y in 2D matrix is called pixel. – So the location is sampling and the values are quantization as it’s a matrix so there will be some pixels around one x, y location 5

Pixel neighborhood Consider a pixel at location a pixel p at location x y matrix will have a number of rows and columns row which is just before x that is row x minus 1, and the row just after the row x is, row x plus 1. Similarly, there will be a column just before the column y that is column y minus 1 and there will be a column just after column y which is column y plus 1. 2 pixels are vertical neighbors of point p by x axes. 2 pixels are the horizontal neighbors of the point p by y axes. 4 pixels are called 4 neighbors of the point p and is represented by p N 4 (p). 6

boundary pixel, neighbors Particular pixel p, does not have any pixel in the row above this pixel; And it does not have any pixel in the column before this particular column. 7

Diagonal neighborhood of pixel There are 4 diagonal points. One at location x minus 1 y minus 1, the other one at location x plus 1 y plus 1, one at location x minus 1 y plus 1 and the other one is at location x plus 1 and y minus 1. 4 pixels are known as the diagonal neighbors of point p and represented by N D (p) 8

8 neighbors of Pixel N 4 (p) and N D (p), they together are called 8 neighbors of point p and represented by N8 (p) and is the union of N 4 (p) and N D (p) the points belongs to N8 (p) or the number of 8 neighbors of the point p will be 8 if p is inside an image, if its its a boundary point N8 (p) will be less then 8 9

Connectivity How the pixels are connected with each other? Segmentations – It is used for finding the objects boundaries – Defining image components, regions if the intensity value or if x y at a particular point x y is greater than certain threshold Th; then point x y belongs to the object. Whereas, if the point or the intensity level at the point x y is less than the threshold; then the point x y belongs to the background. we represent every object point as a white pixel or assign a value 1 to it and every background pixel as a black pixel or assign a value 0 10

Connectivity Do the Pixels belongs to 1 object? What are the properties of the object? I need grouping of pixels 11

Connectivity Pixels are connected if they are adjacent in some sense Adjacent means that they have to be neighbors – If 2 pixels p and q are connected; then by adjacency, we mean that p must be a neighbor of q or q must be a neighbor of p. – That means q has to belong to N 4 (p) or N D (p) or N8 (p) The intensity values of the 2 points p and q must be similar. 12

Connectivity In case of gray level image where for example we take 8 levels of black and 8 levels of white N 4 (p) intersection with N 4 (q) must be equal to phi means if the point q belongs to the diagonal neighbor of p and there is a common set of points which have 4 neighbors to both the points p and q; then M connectivity is not valid. 13

M connectivite M connectivity or mixed connectivity this to avoid multiple connection path mixed connectivity is 2 points are M connected if one is the 4 neighbor of other or one is 4 neighbor of other and at the same time, they do not have any common 4 neighbor. 14

Relationship of adjacency pixels p and q are adjacent if they are connected. 3 different types of connectivity – 4 connectivity – 8 connectivity – M connectivity 3 different types of adjacency – 4 adjacency, – th8 adjacency – m adjacency 15

Adjacency Adjacency of 2 different points can be extend to image regions. – that 2 image regions may be adjacent or they may not be adjacent. – What is the condition for adjacency of 2 image regions? 2 image regions are adjacent S i and S j, if there exists a point p in image region S i and a point q in image region S j such that p and q are adjacent. 16

17

Path between 2 points Sequence of points between p and q such that all the points which are traversed in between p and q, And all those subsequent points; they are adjacent, Then a path exists between from point p to point q. And we can also define the length of the path to be n. 18

Connected region We define that 2 pixels are connected, if they are adjacent in some sense that is – they are neighbors and their intensity values are also similar. We have also defined 2 regions to be adjacent if there is a point in one region which is adjacent to some other point in another region We have defined a path between a point p and q if there are a set of points in between which are adjacent to each other. Now, this concept can be called as connected component. 19

Connected component We take a sub set S of an image I we take 2 point p and q which belong to this subset S of image I. Then p is connected to q in S. which means if there exists a path from p to q consisting entirely of pixels in S. For any such p belonging to S, the set of pixels in S that are connected to p is called a connected component of S. 20

21

Connected component labeling To extracting the region property we need to distinguish the components For the identification or group identification, we need identify a set of pixels which are connected; belonging to a particular group, assign a particular identification number. 22

Component labeling Once we identify group of pixels which belong particular region; then we can go for finding out some region properties Region properties may be – shape up that particular region, – area of that particular region, – the boundary, – the length of the boundary – and many other features can be extracted 23

Algorithm for labeling The algorithm is called component leveling algorithm to assign an identification number to each of the connected pixels which will identify a particular region. 24

Component leveling algorithm 25

2 nd level 26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

2 nd pass 49

Summery Pixel connectivity, What is adjacency Different types of adjacency We have also seen a connected component labeling problem. 50

References Prof.P. K. Biswas Department of Electronics and Electrical Communication Engineering Indian Institute of Technology, Kharagpur Gonzalez R. C. & Woods R.E. (2008). Digital Image Processing. Prentice Hall. Forsyth, D. A. & Ponce, J. (2011).Computer Vision: A Modern Approach. Pearson Education. 51