ISAN-DSP GROUP Digital Image Fundamentals ISAN-DSP GROUP What is Digital Image Processing ? Processing of a multidimensional pictures by a digital computer.

Slides:



Advertisements
Similar presentations
Digital Imaging with Charge- coupled devices (CCDs)
Advertisements

CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009.
Digital Image Processing
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Spatial Filtering (Chapter 3)
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
 Image Characteristics  Image Digitization Spatial domain Intensity domain 1.
Digital Image Processing
Digital Image Processing
DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.
6/9/2015Digital Image Processing1. 2 Example Histogram.
Digital Cameras CCD (Monochrome) RGB Color Filter Array.
Imaging Science Fundamentals
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
1 Image filtering Images by Pawan SinhaPawan Sinha.
Imaging Techniques in Digital Cameras Presented by Jinyun Ren Jan
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, 劉震昌.
Digital Images The nature and acquisition of a digital image.
Image processing Lecture 4.
The Digital Image.
Digital Images Chapter 8 Exploring the Digital Domain.
SCCS 4761 Introduction What is Image Processing? Fundamental of Image Processing.
Neighborhood Operations
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Digital Image Processing Lecture 2
Spatial Filtering: Basics
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Digital Image Fundamentals II 1.Image modeling and representations 2.Pixels and Pixel relations 3.Arithmetic operations of images 4.Image geometry operation.
Lecture Three Chapters Two and three Photo slides from Digital Image Processing, Gonzalez and Woods, Copyright 2002.
ISAN-DSP GROUP Introduction to Image Processing The First Semester of Class 2546 Dr. Nawapak Eua-Anant Department of Computer Engineering Khon.
1 COMS 161 Introduction to Computing Title: Digital Images Date: November 12, 2004 Lecture Number: 32.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Digital Image Fundamentals Faculty of Science Silpakorn University.
A Simple Image Model Image: a 2-D light-intensity function f(x,y)
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.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Digital Image Processing (DIP) Lecture # 5 Dr. Abdul Basit Siddiqui Assistant Professor-FURC 1FURC-BCSE7.
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
Digital Image Processing Lecture4: Fundamentals. Digital Image Representation An image can be defined as a two- dimensional function, f(x,y), where x.
Computer Vision Introduction to Digital Images.
How digital cameras work The Exposure The big difference between traditional film cameras and digital cameras is how they capture the image. Instead of.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Copyright Howie Choset, Renata Melamud, Al Costa, Vincent Lee-Shue, Sean Piper, Ryan de Jonckheere. All Rights Reserved Computer Vision.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
Digital Image Processing In The Name Of God Digital Image Processing Lecture2: Digital Image Fundamental M. Ghelich Oghli By: M. Ghelich Oghli
Image Processing Ch2: Digital image Fundamentals Prepared by: Tahani Khatib.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Image Enhancement in Spatial Domain Presented by : - Mr. Trushar Shah. ME/MC Department, U.V.Patel College of Engineering, Kherva.
Machine Vision. Image Acquisition > Resolution Ability of a scanning system to distinguish between 2 closely separated points. > Contrast Ability to detect.
Digital Image Processing Image Enhancement in Spatial Domain
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
An Introduction to Digital Image Processing Dr.Amnach Khawne Department of Computer Engineering, KMITL.
Digital Image Processing CCS331 Relationships of Pixel 1.
Digital Image Fundamentals
Digital 2D Image Basic Masaki Hayashi
Fundamentals of Spatial Filtering
Image filtering Images by Pawan Sinha.
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Fundamentals
Image filtering Images by Pawan Sinha.
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing Week IV
Digital Image Processing
Lecture 2: Image filtering
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

ISAN-DSP GROUP Digital Image Fundamentals

ISAN-DSP GROUP What is Digital Image Processing ? Processing of a multidimensional pictures by a digital computer การประมวลผลสัญญาณรูปภาพโดยใช้ดิจิตอลคอมพิวเตอร์ Why we need Digital Image Processing ? 1. เพื่อบันทึกและจัดเก็บภาพ 2. เพื่อปรับปรุงภาพให้ดีขึ้นโดยใช้ กระบวนการทางคณิตศาสตร์ 3. เพื่อช่วยในการวิเคราะห์รูปภาพ 4. เพื่อสังเคราะห์ภาพ 5. เพื่อสร้างระบบการมองเห็นให้กับ คอมพิวเตอร์

ISAN-DSP GROUP Image “After snow storm” Fundamentals of Digital Images f(x,y)f(x,y) x y  An image: a multidimensional function of spatial coordinates.  Spatial coordinate: (x,y) for 2D case such as photograph, (x,y,z) for 3D case such as CT scan images (x,y,t) for movies  The function f may represent intensity (for monochrome images) or color (for color images) or other associated values. Origin

ISAN-DSP GROUP Digital Images Digital image: an image that has been discretized both in Spatial coordinates and associated value.  Consist of 2 sets:(1) a point set and (2) a value set  Can be represented in the form I = {(x,a(x)): x  X, a(x)  F} where X and F are a point set and value set, respectively.  An element of the image, (x,a(x)) is called a pixel where - x is called the pixel location and - a(x) is the pixel value at the location x

ISAN-DSP GROUP CCD KAF-3200E from Kodak. (2184 x 1472 pixels, Pixel size 6.8 microns 2 ) Image Sensor:Charge-Coupled Device (CCD)  Used for convert a continuous image into a digital image  Contains an array of light sensors  Converts photon into electric charges accumulated in each sensor unit

ISAN-DSP GROUP Horizontal Transportation Register Output Gate Image Sensor: Inside Charge-Coupled Device Amplifier Vertical Transport Register Gate Vertical Transport Register Gate Vertical Transport Register Gate Photosites Output

ISAN-DSP GROUP Image Sensor: How CCD works abc ghi def abc ghi def abc ghi def Vertical shift Horizontal shift Image pixel Horizontal transport register Output

ISAN-DSP GROUP Image Types Intensity image or monochrome image each pixel corresponds to light intensity normally represented in gray scale (gray level). Gray scale values

ISAN-DSP GROUP Image Types Color image or RGB image: each pixel contains a vector representing red, green and blue components. RGB components

ISAN-DSP GROUP Image Types Binary image or black and white image Each pixel contains one bit : 1 represent white 0 represents black Binary data

ISAN-DSP GROUP Image Types Index image Each pixel contains index number pointing to a color in a color table Index value Index No. Red component Green component Blue component ………… Color Table

ISAN-DSP GROUP Image Sampling Image sampling: discretize an image in the spatial domain Spatial resolution / image resolution: pixel size or number of pixels

ISAN-DSP GROUP How to choose the spatial resolution = Sampling locations Original image Sampled image Under sampling, we lost some image details! Spatial resolution

ISAN-DSP GROUP How to choose the spatial resolution : Nyquist Rate Original image = Sampling locations Minimum Period Spatial resolution (sampling rate) Sampled image No detail is lost! Nyquist Rate: Spatial resolution must be less or equal half of the minimum period of the image or sampling frequency must be greater or Equal twice of the maximum frequency. 2mm 1mm

ISAN-DSP GROUP Effect of Spatial Resolution 256x256 pixels 64x64 pixels 128x128 pixels 32x32 pixels Down sampling is an irreversible process.

ISAN-DSP GROUP Image Quantization Image quantization: discretize continuous pixel values into discrete numbers Color resolution/ color depth/ levels: - No. of colors or gray levels or - No. of bits representing each pixel value - No. of colors or gray levels N c is given by where b = no. of bits

ISAN-DSP GROUP Image Quantization : Quantization function Light intensity Quantization level N c -1 N c -2 DarkestBrightest

ISAN-DSP GROUP Effect of Quantization Levels 256 levels 128 levels 32 levels64 levels

ISAN-DSP GROUP Effect of Quantization Levels (cont.) 16 levels 8 levels 2 levels4 levels In this image, it is easy to see false contour.

ISAN-DSP GROUP Basic Relationship of Pixels x y (0,0) Conventional indexing method (x,y)(x,y)(x+1,y)(x-1,y) (x,y-1) (x,y+1) (x+1,y-1)(x-1,y-1) (x-1,y+1)(x+1,y+1)

ISAN-DSP GROUP Neighbors of a Pixel p (x+1,y) (x-1,y) (x,y-1) (x,y+1) 4-neighbors of p: N 4 (p) = (x  1,y) (x+1,y) (x,y  1) (x,y+1) Neighborhood relation is used to tell adjacent pixels. It is useful for analyzing regions. Note: q  N 4 (p) implies p  N 4 (q) 4-neighborhood relation considers only vertical and horizontal neighbors.

ISAN-DSP GROUP p(x+1,y)(x-1,y) (x,y-1) (x,y+1) (x+1,y-1)(x-1,y-1) (x-1,y+1)(x+1,y+1) Neighbors of a Pixel (cont.) 8-neighbors of p: (x  1,y  1) (x,y  1) (x+1,y  1) (x  1,y) (x+1,y) (x  1,y+1) (x,y+1) (x+1,y+1) N 8 (p) = 8-neighborhood relation considers all neighbor pixels.

ISAN-DSP GROUP p (x+1,y-1)(x-1,y-1) (x-1,y+1)(x+1,y+1) Diagonal neighbors of p: N D (p) = (x  1,y  1) (x+1,y  1) (x  1,y  1) (x+1,y+1) Neighbors of a Pixel (cont.) Diagonal -neighborhood relation considers only diagonal neighbor pixels.

ISAN-DSP GROUP Template, Window, and Mask Operation Sometime we need to manipulate values obtained from neighboring pixels Example: How can we compute an average value of pixels in a 3x3 region center at a pixel z? Pixel z Image

ISAN-DSP GROUP Template, Window, and Mask Operation (cont.) Pixel z Step 1. Selected only needed pixels …… … …

ISAN-DSP GROUP …… … … Template, Window, and Mask Operation (cont.) Step 2. Multiply every pixel by 1/9 and then sum up the values X Mask or Window or Template

ISAN-DSP GROUP Template, Window, and Mask Operation (cont.) Question: How to compute the 3x3 average values at every pixels? Solution: Imagine that we have a 3x3 window that can be placed everywhere on the image Masking Window

ISAN-DSP GROUP 4.3 Template, Window, and Mask Operation (cont.) Step 1: Move the window to the first location where we want to compute the average value and then select only pixels inside the window Step 2: Compute the average value Sub image p Original image Output image Step 3: Place the result at the pixel in the output image Step 4: Move the window to the next location and go to Step 2

ISAN-DSP GROUP Template, Window, and Mask Operation (cont.) The 3x3 averaging method is one example of the mask operation or Spatial filtering.  The mask operation has the corresponding mask (sometimes called window or template).  The mask contains coefficients to be multiplied with pixel values. w(2,1)w(3,1) w(3,3) w(2,2) w(3,2) w(1,1) w(1,2) w(3,1) Mask coefficients Example : moving averaging The mask of the 3x3 moving average filter has all coefficients = 1/9

ISAN-DSP GROUP Template, Window, and Mask Operation (cont.) The mask operation at each point is performed by: 1. Move the reference point (center) of mask to the location to be computed 2. Compute sum of products between mask coefficients and pixels in subimage under the mask. p(2,1) p(3,2)p(2,2) p(2,3) p(2,1) p(3,3) p(1,1) p(1,3) p(3,1) …… … … Subimage w(2,1)w(3,1) w(3,3) w(2,2) w(3,2) w(1,1) w(1,2) w(3,1) Mask coefficients Mask frame The reference point of the mask

ISAN-DSP GROUP Template, Window, and Mask Operation (cont.) The mask operation on the whole image is given by: 1.Move the mask over the image at each location. 2.Compute sum of products between the mask coefficeints and pixels inside subimage under the mask. 3.Store the results at the corresponding pixels of the output image. 4.Move the mask to the next location and go to step 2 until all pixel locations have been used.

ISAN-DSP GROUP Template, Window, and Mask Operation (cont.) Examples of the masks Sobel operators x3 moving average filter 8 3x3 sharpening filter