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

Slides:



Advertisements
Similar presentations
Digital Image Processing Lecture 12: Image Topology
Advertisements

September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
Digital Image Processing. 2 Interpolation of Data Suppose we have a collection of four values that we wish to enlarge to eight: Interpolated results x-axis.
Digital Image Processing Chapter 2: Digital Image Fundamentals.
Objective of Computer Vision
Digital Image Fundamentals
Preprocessing ROI Image Geometry
Objective of Computer Vision
Chapter 2 Digital Image Fundamentals. Outline Elements of Visual Perception Light and the Electromagnetic Spectrum Image Sensing and Acquisition Image.
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, 劉震昌.
Chapter 2 Digital Image Fundamentals
Digital Image Fundamentals
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}
Digital Image Processing
Chapter 3: Image Restoration Geometric Transforms.
Digital Image Processing Lecture 2
CS 551/651 Advanced Computer Graphics Warping and Morphing Spring 2002.
Digital Image Processing in Life Sciences March 14 th, 2012 Lecture number 1: Digital Image Fundamentals.
Image Preprocessing: Geometric Correction Image Preprocessing: Geometric Correction Jensen, 2003 John R. Jensen Department of Geography University of South.
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.
Chapter Two Digital Image Fundamentals. Agenda: –Light and Electromagnetic Spectrum –Image Sensing & Acquisition –Image Sampling & quantization –Relationship.
Digital Image Processing Lecture 6: Image Geometry
Digital Image Processing CCS331 Relationships of Pixel 1.
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.
Spring 2012Meeting 2, 7:20PM-10PM1 Image Processing with Applications-CSCI567/MATH563 Lectures 3, 4, and 5: L3. Representing Digital Images; Zooming. Bilinear.
Medical Image Processing & Neural Networks Laboratory 1 Medical Image Processing Chapter 2 Digital Image Fundamentals 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang.
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.
Elements of Visual Perception
Image Processing Ch2: Digital image Fundamentals Prepared by: Tahani Khatib.
CS654: Digital Image Analysis Lecture 4: Basic relationship between Pixels.
Digital Topology CIS 601 Fall 2004 Longin Jan Latecki.
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.
BYST Morp-1 DIP - WS2002: Morphology Digital Image Processing Morphological Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
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.
What is Digital Image Processing?
Image Sampling and Quantization
Some Basic Relationships Between Pixels
Digital Image Fundamentals
Chapter 6: Image Geometry 6.1 Interpolation of Data
F(x,y) قيمة البيكسل الواحد توجد 3 مراحل لمعالجة الصورة
IMAGE PROCESSING Questions and Answers.
Image Formation and Processing
Outline Announcement Local operations (continued) Linear filters
Computer Vision Lecture 5: Binary Image Processing
T490 (IP): Tutorial 2 Chapter 2: Digital Image Fundamentals
Autumn 2016 Lecture 11 Minimum Spanning Trees (Part II)
ICS 353: Design and Analysis of Algorithms
Enlarging or Contracting a Digital Image
Pixel Relations.
Digital Image Fundamentals
Computer and Robot Vision I
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Subject Name: IMAGE PROCESSING Subject Code: 10EC763
Digital Image Processing
Digital Image Fundamentals
© 2010 Cengage Learning Engineering. All Rights Reserved.
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Computer and Robot Vision I
Lecture 2 Digital Image Fundamentals
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Image Processing Ch2: Digital image Fundamentals Part 2 Prepared by: Tahani Khatib

Zooming (over sampling) images Ch2, lesson2: Zooming and shrinking Zoomed by using nearest neighbor Zoomed by using Bilinear

Zooming (over sampling) images Ch2, lesson2: Zooming and shrinking Zooming requires 2 steps: The creation of new pixel locations. The assignment of gray levels to these new locations. Two techniques for zooming: 1. Nearest neighbor interpolation 2. Bilinear interpolation

Nearest neighbor interpolation Ch2, lesson2: Zooming and shrinking Example: Suppose A 2x2 pixels image will be enlarged 2 times by the nearest neighbor method: 1.Lay an imaginary 4*4 grid over the original image.. 2. For any point in the overlay, look for the closest pixel in the original image, and assign its gray level to the new pixel in the grid. (copy) 3. When all the new pixels are assigned values, expand the overlay grid to the original specified size to obtain the zoomed image. Pixel replication (re sampling) is a special case that is applicable when the size of the image needs to be increased an integer number of times (like 2 times not 1.5 for example). + ve : Nearest neighbor is fast -ve: it produces a checkerboard effect like this!

shrinking  Similar to image zooming. Shrinking an image an integer number of times Pixel replication is replaced by row&column deletion. Shrinking an image by a non-integer factor Expand the grid to fit over the original image. Do gray-level interpolation (nearest neighbor or bilinear). Shrink the grid back to its original specified size. Ch2, lesson2: Zooming and shrinking

Neighbors of a pixel Ch2, lesson3: Some basic Relationships between pixels

Adjacency Ch2, lesson3: Some basic Relationships between pixels V: set of gray level values (L), (V is a subset of L.) 3 types of adjacency  4- adjacency: 2 pixels p and q with values from V are 4- adjacent if q is in the set N 4 (p)  8- adjacency: 2 pixels p and q with values from V are 8- adjacent if q is in the set N 8 (p)  m- adjacency: 2 pixels p and q with values from V are madjacent if 1. q is in N 4 (p), or 2. q is in N D (p) and the set N 4 (p) ∩ N 4 (q) has no pixels whose values are from V

connectivity  A digital path from pixel p with coordinates (x,y) to pixel q with coordinates (s,t) is a sequence of distinct pixels with coordinates (x0,y0), (x1,y1), …, (xn,yn), where (x0,y0)= (x,y) and (xn,yn)=(s,t), and pixels (xi,yi) and (xi-1,yi-1) are adjacent for 1 ≤ i ≤ n.  S: a subset of pixels in an image.  Two pixels p and q are said to be connected in S if there exists a path between them consisting entirely of pixels in S.  For any pixel p in S, the set of pixels that are connected to it in S is called a connected component of S.  If S has only one connected component, it is called a connected set. Ch2, lesson3: Some basic Relationships between pixels

Regions and boundaries  R: a subset of pixels in an image.  R is a region of the image if R is a connected set.  The boundary of a region R is the set of pixels in the region that have one or more neighbors that are not in R. Ch2, lesson3: Some basic Relationships between pixels

Foreground and background Suppose that the image contains K disjoint regions Rk none of which touches the image border. Ru : the union of all regions. (Ru) c : is the complement. so Ru is called foreground, and (Ru) c : is the background.

Distance measures If we have 3 pixels: p,q,z: p with (x,y) q with (s,t) z with (v,w) Then: D(p,q) = 0 iff p = q D(p,q) = D(q,p) D(p,z) ≤ D(p,q) + D(q,z)  Euclidean distance between p and q: De(p,q) = [(x-s) 2 + (y-t) 2 ]1/2  D4 distance: D4(p,q) = |x-s| + |y-t|  D8 distance: D8(p,q) = max (|x-s|, |y-t|)  D4 and D8 distances between p and q are independent of any paths that might exist between the points.  For m-adjacency, Dm distance between two points is defined as the shortest m-path between the points. Ch2, lesson3: Some basic Relationships between pixels

Distance measures

Example q p Compute the distance between the two pixels using the three distances : q:(1,1) P: (2,2) Euclidian distance : ((1-2) 2 +(1-2) 2 ) 1/2 = sqrt(2). D4(City Block distance): |1-2| +|1-2| =2 D8(chessboard distance ) : max(|1-2|,|1-2|)= 1 (because it is one of the 8-neighbors )

Distance measures Example : Use the city block distance to prove 4- neighbors ? Pixel A : | 2-2| + |1-2| = 1 Pixel B: | 3-2|+|2-2|= 1 Pixel C: |2-2|+|2-3| =1 Pixel D: |1-2| + |2-2| = 1 Now as a homework try the chessboard distance to proof the 8- neighbors!!!! d cpa b