Digital Image Fundamentals II 1.Image modeling and representations 2.Pixels and Pixel relations 3.Arithmetic operations of images 4.Image geometry operation.

Slides:



Advertisements
Similar presentations
電腦視覺 Computer and Robot Vision I
Advertisements

Chapter 3 Image Enhancement in the Spatial Domain.
Document 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.
Objective of Computer Vision
Objective of Computer Vision
Math for CSLecture 11 Mathematical Methods for Computer Science Lecture 1.
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, 劉震昌.
National Center for Supercomputing Applications University of Illinois at Urbana-Champaign Image Features Kenton McHenry, Ph.D. Research Scientist.
Digital Image Processing
Digital Image Processing
Image Formation. Input - Digital Images Intensity Images – encoding of light intensity Range Images – encoding of shape and distance They are both a 2-D.
Machine Vision for Robots
Edge Linking & Boundary Detection
CS 6825: Binary Image Processing – binary blob metrics
Under Supervision of Dr. Kamel A. Arram Eng. Lamiaa Said Wed
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.
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.
Image Processing Fundamental II Operation & Transform.
Medical Image Processing & Neural Networks Laboratory 1 Medical Image Processing Chapter 2 Digital Image Fundamentals 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang.
CS482 Selected Topics in Digital Image Processing بسم الله الرحمن الرحيم Instructor: Dr. Abdullah Basuhail,CSD, FCIT, KAU, 1432H Chapter 2: Digital Image.
CS 556 – Computer Vision Image Basics & Review. What is an Image? Image: a representation, resemblance, or likeness An image is a signal: a function carrying.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Levels of Image Data Representation 4.2. Traditional Image Data Structures 4.3. Hierarchical Data Structures Chapter 4 – Data structures for.
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.
References Books: Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al Chapter 9, Digital Image Processing, Gonzalez & Woods.
Fourier Transform.
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
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
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
Some Basic Relationships Between Pixels Definitions: –f(x,y): digital image –Pixels: q, p –Subset of pixels of f(x,y): S.
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
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.
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.
Image Enhancement in the Spatial Domain.
What is Digital Image Processing?
Image Sampling and Quantization
Some Basic Relationships Between Pixels
Digital Image Fundamentals
图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations
IT472: Digital Image Processing
F(x,y) قيمة البيكسل الواحد توجد 3 مراحل لمعالجة الصورة
IMAGE PROCESSING Questions and Answers.
Mean Shift Segmentation
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
Introduction to Mathematical tools in used in DIP
Presentation transcript:

Digital Image Fundamentals II 1.Image modeling and representations 2.Pixels and Pixel relations 3.Arithmetic operations of images 4.Image geometry operation 5.Image processing with Matlab - Image Processing Toolbox (IPT)

1. Image modeling and representation A 2D image is a function of any quantity over a finite spatial extent: The value of f(x, y,) can be real number, integer, or 0,1 –Continuous space image: x and y are chosen as real numbers –Discrete space: x and y are chosen as integers

Digital images in discrete space 2D digital image –x = 0, …, M-1, y = 0, …, N-1, and f(x, y) are integers in binary format of 8 bits, 16 bits (or d bits). –(i, j) is pixel, f(x, y) is its pixel or intensity –Resolution: M × N, i.e. number of pixels –Size: M × N × d i.e., the total number of bits to represent the image –Represented as a matrix

Pixel coordinate and spatial coordinate Discrete domain Continuous demain

For color image, f(x, y) is triple of integers:

One-Dimensional Image 1D image is a function One-dimensional (1D) image can be represented as a sequence of numbers: Graphical representation

Image representation A 1D image of one point Represent image of discrete domain by continuous image function. Representation in continuous domain

Image representation 2D image of one point Represent image of discrete domain by continuous image function.

2. Relations of pixels Neighbors of a pixel p at (x, y) 4-neighbors of p: N 4 (p) ={ (x+1, y), (x-1,y),(x,y+1), (x,y-1)} 4-diagonal neighbors of p: N D (p) = { (x+1, y+1), (x+1,y-1),(x-1,y+1), (x-1,y-1)} 8-neighbors of p : N 8 (p) = N 4 (p) U N D (p)

Connectivity Let V be the set of gray-level values used to defined connectivity 4-connectivity : 2 pixels p and q with values from V are 4-connected if q is in the set N 4 (p) 8-connectivity : 2 pixels p and q with values from V are 8-connected if q is in the set N 8 (p) m-connectivity (mixed connectivity): 2 pixels p and q with values from V are m-connected if q is in the set N 4 (p), or q is in the set N D (p) and the set N 4 (p)∩N 4 (q) is empty. (the set of pixels that are 4- neighbors of both p and q whose values are from V )

Adjacent, path and connected component Adjacent: a pixel p is adjacent to a pixel q if they are connected Two image area subsets S1 and S2 are adjacent if some pixel in S1 is adjacent to some pixel S2 Path –a path from pixel p(x,y) to pixel q(s,t) is a sequence of distinct pixels with coordinates (x,y)=(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 ), n is the length of the path Connected component: a group of pixels such that it contains a path connecting every pair of its pixels.

Example

Consider the two image subsets S1 and S2 : For V={1}, determine whether S1 and S2 are 4-connected, 8-connected, m-connected

Labeling of Connected Components scan the image from left to right Let p denote the pixel at any step in the scanning process. Let t denote the upper neighbor of p. Let l denote the left-hand neighbors of p, respectively. when we get to p, points t and l have already been encountered and labeled if they were 1’s. if the value of p = 0, move on. if the value of p = 1, examine t and l. if they are both 0, assign a new label to p. if only one of them is 1, assign its label to p. if they are both 1 if they have the same label, assign that label to p. if not, assign one of the labels to p and make a note that the two labels are equivalent. (t and l are connected through p). at the end of the scan, all points with value 1 have been labeled. do a second scan, assign a new label for each equivalent labels

Example How to find the bounding box of a connected component?

Distance Measures Given pixels p(x,y), q(s,t) and z(u,v). D is a distance function or metric if (a)D(p,q) ≥ 0 ; D(p,q) = 0 iff p=q (b)D(p,q) = D(q,p) (c)D(p,z) ≤ D(p,q) + D(q,z)

Euclidean Distance Euclidean distance between p and q

Manhattan Distance Manhattan distance e.g. the diamond centered at (x, y)

Chessboard distance D 8 distance

Other distances D 4 distance –defined by the length of the shortest D 4 path D 8 distance –defined by the length of the shortest D 8 path m-connectivity’s distance –defined by the length of the shortest m-connectivity path

Arithmetic Operators of Images Arithmetic operations of two images are carried out by the arithmetic operations of the corresponding pixels of the two images. Addition : p+q used in image average to reduce noise. Subtraction : p-q basic tool in medical imaging. Multiplication : pxq to correct gray-level shading result from non-uniformities in illumination or in the sensor used to acquire the image. Division : p/q

Logic operations AND : p AND q OR : p OR q COMPLEMENT : NOT q ( ) logic operations apply only to binary images Arithmetic operations apply to multi-valued pixels logic operations used for tasks such as masking, feature detection, and shape analysis.

Mask Operation Besides pixel-by-pixel processing on entire images, arithmetic and Logical operations are used in neighborhood oriented operations. The value of a pixel is arithmetic result of its neighbors. e.g W i are called mask coefficients. When

Mask coefficient Proper selection of the coefficients and application of the mask at each pixel position in an image makes possible a variety of useful image operations –noise reduction –region thinning –edge detection Applying a mask at each pixel location in an image is a computationally expensive task. More mathematics will be involved.

Image Geometry Transformation Geometry transformation p(x, y) => p’ (x’, y’) Basic transformations –Translation –Scaling –Rotation The composition of transformations Transformation matrix

Translate Translate point P to point P’ along a vector (x 0, y 0 ) Homogeneous coordinates

Rotation Rotate w.r.t x -axis

Scaling

Composition of Transformations The transformation matrix of a sequence of transformation is equal to the product of transformation matrices of each individual matrix.

Image Transformation Input an image output another image Geometry transformation Intensity transformation These transformation works directly on pixels. They are spatial transformation, or in spatial domain.

Image Transformation The transformation can be complicate in transformation domain

Image Transformation Example: 2-D Fourier transformation