SlideShare a Scribd company logo
1 of 29
CS 414 - Spring 2009
CS 414 – Multimedia Systems Design
Lecture 4 – Digital Image
Representation
Klara Nahrstedt
Spring 2009
CS 414 - Spring 2009
Administrative
 Group Directories will be established
hopefully today (or latest by Friday)
 MP1 will be out on 1/28 (today)
 Start by reading the MP1 and organizing
yourself as a group this week, start to read
documentation, search for audio and video
files.
Images – Capturing and
Processing
CS 414 - Spring 2009
Capturing Real-World Images
 Picture – two dimensional image captured
from a real-world scene that represents a
momentary event from the 3D spatial
world
CS 414 - Spring 2009
W3
W1
W2
r
s
F r= function of (W1/W3);
s=function of (W2/W3)
Image Concepts
 An image is a function of intensity values
over a 2D plane I(r,s)
 Sample function at discrete intervals to
represent an image in digital form
matrix of intensity values for each color plane
intensity typically represented with 8 bits
 Sample points are called pixels
CS 414 - Spring 2009
Digital Images
 Samples = pixels
 Quantization = number of bits per pixel
 Example: if we would sample and quantize
standard TV picture (525 lines) by using
VGA (Video Graphics Array), video
controller creates matrix 640x480pixels,
and each pixel is represented by 8 bit
integer (256 discrete gray levels)
CS 414 - Spring 2009
Image Representations
 Black and white image
 single color plane with
2 bits
 Grey scale image
 single color plane with
8 bits
 Color image
 three color planes
each with 8 bits
 RGB, CMY, YIQ, etc.
 Indexed color image
 single plane that
indexes a color table
 Compressed images
 TIFF, JPEG, BMP, etc.
2gray levels
4 gray levels
Digital Image Representation
(3 Bit Quantization)
CS 414 - Spring 2009
Color Quantization
Example of 24 bit RGB Image
CS 414 - Spring 2009
24-bit Color Monitor
Image Representation Example
128 135 166 138 190 132
129 255 105 189 167 190
229 213 134 111 138 187
135 190
255 167
213 138
128 138
129 189
229 111
166 132
105 190
134 187
24 bit RGB Representation (uncompressed)
Color Planes
Graphical Representation
CS 414 - Spring 2009
Image Properties (Color)
CS 414 - Spring 2009
Color Histogram
CS 414 - Spring 2009
Image Properties (Texture)
 Texture – small surface structure, either
natural or artificial, regular or irregular
 Texture Examples: wood barks, knitting
patterns
 Statistical texture analysis describes
texture as a whole based on specific
attributes: regularity, coarseness,
orientation, contrast, …
CS 414 - Spring 2009
Texture Examples
CS 414 - Spring 2009
Spatial and Frequency Domains
 Spatial domain
 refers to planar region of
intensity values at time t
 Frequency domain
 think of each color plane
as a sinusoidal function of
changing intensity values
 refers to organizing pixels
according to their
changing intensity
(frequency)
CS 414 - Spring 2009
Image Processing Function: 1. Filtering
 Filter an image by replacing each pixel in the
source with a weighted sum of its neighbors
 Define the filter using a convolution mask, also
referred to as a kernel
 non-zero values in small neighborhood, typically
centered around a central pixel
 generally have odd number of rows/columns
CS 414 - Spring 2009
Convolution Filter
CS 414 - Spring 2009
100 100 100 100 100
100 100 50 50 100
100 100 100 100 100
100 100 100 100 100
100 100 100 100 100
0 1 0
0 0 0
0 0 0
100 100 100 100 100
100 100 50 50 100
100 100 50 100 100
100 100 100 100 100
100 100 100 100 100
X =
Mean Filter
Convolution filter
Subset of image
95
49
64
8
22
81
34
55
33
19
15
45
23
14
12
20










1
1
1
1
1
1
1
1
1
9
1
CS 414 - Spring 2009
Mean Filter
Convolution filter
Subset of image
95
49
64
8
22
81
34
55
33
19
15
45
23
14
12
20










1
1
1
1
1
1
1
1
1
9
1
CS 414 - Spring 2009
Common 3x3 Filters
 Low/High pass filter
 Blur operator
 H/V Edge detector










1
2
1
2
1
2
1
2
1
13
1


















1
1
1
1
9
1
1
1
1












 1
2
1
0
0
0
1
2
1













1
0
1
2
0
2
1
0
1










1
1
1
1
1
1
1
1
1
9
1
Example
CS 414 - Spring 2009
Image Function: 2. Edge Detection
 Identify areas of strong
intensity contrast
 filter useless data; preserve
important properties
 Fundamental technique
 e.g., use gestures as input
 identify shapes, match to
templates, invoke commands
Edge Detection
CS 414 - Spring 2009
Simple Edge Detection
 Example: Let assume single line of pixels
 Calculate 1st derivative (gradient) of the
intensity of the original data
 Using gradient, we can find peak pixels in image
 I(x) represents intensity of pixel x and
 I’(x) represents gradient (in 1D),
 Then the gradient can be calculated by convolving the
original data with a mask (-1/2 0 +1/2)
 I’(x) = -1/2 *I(x-1) + 0*I(x) + ½*I(x+1)
CS 414 - Spring 2008
5 7 6 4 152 148 149
Basic Method of Edge Detection
 Step 1: filter noise using mean filter
 Step 2: compute spatial gradient
 Step 3: mark points > threshold as edges
CS 414 - Spring 2009
Mark Edge Points
 Given gradient at each
pixel and threshold
 mark pixels where
gradient > threshold as
edges
CS 414 - Spring 2009
Compute Edge Direction
 Calculation of Rate of Change in
Intensity Gradient
 Use 2nd derivative
 Example: (5 7 6 4 152 148 149)
 Use convolution mask (+1 -2 +1)
 I’’(x) = 1*I(x-1) -2*I(x) + 1*I(x+1)
 Peak detection in 2nd derivate
is a method for line detection.
CS 414 - Spring 2009
Summary
 Other Important Image Processing Functions
 Image segmentation
 Image recognition
 Formatting
 Conditioning
 Marking
 Grouping
 Extraction
 Matching
 Image synthesis
CS 414 - Spring 2009

More Related Content

What's hot

Color Theory In Graphic Design
Color Theory In Graphic DesignColor Theory In Graphic Design
Color Theory In Graphic DesignPropel Guru
 
Chapter 8 Video
Chapter 8 VideoChapter 8 Video
Chapter 8 Videoshelly3160
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reductionJksuryawanshi
 
Introduction to 3D Animation
Introduction to 3D AnimationIntroduction to 3D Animation
Introduction to 3D AnimationGary Ferguson
 
Types of Images & File Types
Types of Images & File TypesTypes of Images & File Types
Types of Images & File TypesChris Chapman
 
Broadcast Camera Technology, Part 1
Broadcast Camera Technology, Part 1Broadcast Camera Technology, Part 1
Broadcast Camera Technology, Part 1Dr. Mohieddin Moradi
 
About Motion graphics by Karriem A muhammad
About Motion graphics  by Karriem A muhammadAbout Motion graphics  by Karriem A muhammad
About Motion graphics by Karriem A muhammadKarriem A Muhammad
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESVicky Kumar
 
Multimedia System & Design Ch 1, 2, 3 Multimedia
Multimedia System & Design Ch 1, 2, 3 MultimediaMultimedia System & Design Ch 1, 2, 3 Multimedia
Multimedia System & Design Ch 1, 2, 3 MultimediaBadar Waseer
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And ReconstructionAmnaakhaan
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portionMoe Moe Myint
 
Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Iftikhar Ahmad
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
 
Multimedia color in image and video
Multimedia color in image and videoMultimedia color in image and video
Multimedia color in image and videoMazin Alwaaly
 

What's hot (20)

Color Theory In Graphic Design
Color Theory In Graphic DesignColor Theory In Graphic Design
Color Theory In Graphic Design
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Chapter 8 Video
Chapter 8 VideoChapter 8 Video
Chapter 8 Video
 
Color models
Color modelsColor models
Color models
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reduction
 
Introduction to 3D Animation
Introduction to 3D AnimationIntroduction to 3D Animation
Introduction to 3D Animation
 
Types of Images & File Types
Types of Images & File TypesTypes of Images & File Types
Types of Images & File Types
 
Broadcast Camera Technology, Part 1
Broadcast Camera Technology, Part 1Broadcast Camera Technology, Part 1
Broadcast Camera Technology, Part 1
 
About Motion graphics by Karriem A muhammad
About Motion graphics  by Karriem A muhammadAbout Motion graphics  by Karriem A muhammad
About Motion graphics by Karriem A muhammad
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
Multimedia System & Design Ch 1, 2, 3 Multimedia
Multimedia System & Design Ch 1, 2, 3 MultimediaMultimedia System & Design Ch 1, 2, 3 Multimedia
Multimedia System & Design Ch 1, 2, 3 Multimedia
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portion
 
Ray tracing
Ray tracingRay tracing
Ray tracing
 
Colour theory
Colour theoryColour theory
Colour theory
 
Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Multimedia color in image and video
Multimedia color in image and videoMultimedia color in image and video
Multimedia color in image and video
 
Adobe Photoshop Tools
Adobe Photoshop ToolsAdobe Photoshop Tools
Adobe Photoshop Tools
 
Ray tracing
Ray tracingRay tracing
Ray tracing
 

Similar to CS 414 Digital Image Representation

Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfnagwaAboElenein
 
24th IP_Fundamentals.ppt
24th IP_Fundamentals.ppt24th IP_Fundamentals.ppt
24th IP_Fundamentals.pptMphill2018
 
Build Your Own 3D Scanner: 3D Scanning with Swept-Planes
Build Your Own 3D Scanner: 3D Scanning with Swept-PlanesBuild Your Own 3D Scanner: 3D Scanning with Swept-Planes
Build Your Own 3D Scanner: 3D Scanning with Swept-PlanesDouglas Lanman
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfnagwaAboElenein
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image ProcessingAnkur Nanda
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
 
Lectures 1 3 final (4)
Lectures 1 3 final (4)Lectures 1 3 final (4)
Lectures 1 3 final (4)seemakashyap15
 
DIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdfDIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdfGaurav Sharma
 
DIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer ScienceDIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer Sciencebaaburao4200
 
quantization and sampling presentation ppt
quantization and sampling presentation pptquantization and sampling presentation ppt
quantization and sampling presentation pptKNaveenKumarECE
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureFatmaNewagy1
 
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...Hemantha Kulathilake
 
Display Hardware
Display HardwareDisplay Hardware
Display Hardwareguest56aeb3
 
Deep Local Parametric Filters for Image Enhancement
Deep Local Parametric Filters for Image EnhancementDeep Local Parametric Filters for Image Enhancement
Deep Local Parametric Filters for Image EnhancementSean Moran
 
الوسائط المتعددة Multimedia تاج
الوسائط المتعددة  Multimedia تاجالوسائط المتعددة  Multimedia تاج
الوسائط المتعددة Multimedia تاجmaaz hamed
 
Image enhancement
Image enhancementImage enhancement
Image enhancementKuppusamy P
 

Similar to CS 414 Digital Image Representation (20)

4 image enhancement in spatial domain
4 image enhancement in spatial domain4 image enhancement in spatial domain
4 image enhancement in spatial domain
 
Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdf
 
24th IP_Fundamentals.ppt
24th IP_Fundamentals.ppt24th IP_Fundamentals.ppt
24th IP_Fundamentals.ppt
 
Build Your Own 3D Scanner: 3D Scanning with Swept-Planes
Build Your Own 3D Scanner: 3D Scanning with Swept-PlanesBuild Your Own 3D Scanner: 3D Scanning with Swept-Planes
Build Your Own 3D Scanner: 3D Scanning with Swept-Planes
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
 
Lectures 1 3 final (4)
Lectures 1 3 final (4)Lectures 1 3 final (4)
Lectures 1 3 final (4)
 
Lecture-11.pdf
Lecture-11.pdfLecture-11.pdf
Lecture-11.pdf
 
DIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdfDIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdf
 
DIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer ScienceDIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer Science
 
quantization and sampling presentation ppt
quantization and sampling presentation pptquantization and sampling presentation ppt
quantization and sampling presentation ppt
 
Seema dip
Seema dipSeema dip
Seema dip
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
 
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
 
Display Hardware
Display HardwareDisplay Hardware
Display Hardware
 
Deep Local Parametric Filters for Image Enhancement
Deep Local Parametric Filters for Image EnhancementDeep Local Parametric Filters for Image Enhancement
Deep Local Parametric Filters for Image Enhancement
 
الوسائط المتعددة Multimedia تاج
الوسائط المتعددة  Multimedia تاجالوسائط المتعددة  Multimedia تاج
الوسائط المتعددة Multimedia تاج
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 

Recently uploaded

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 

Recently uploaded (20)

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 

CS 414 Digital Image Representation

  • 1. CS 414 - Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009
  • 2. CS 414 - Spring 2009 Administrative  Group Directories will be established hopefully today (or latest by Friday)  MP1 will be out on 1/28 (today)  Start by reading the MP1 and organizing yourself as a group this week, start to read documentation, search for audio and video files.
  • 3. Images – Capturing and Processing CS 414 - Spring 2009
  • 4. Capturing Real-World Images  Picture – two dimensional image captured from a real-world scene that represents a momentary event from the 3D spatial world CS 414 - Spring 2009 W3 W1 W2 r s F r= function of (W1/W3); s=function of (W2/W3)
  • 5. Image Concepts  An image is a function of intensity values over a 2D plane I(r,s)  Sample function at discrete intervals to represent an image in digital form matrix of intensity values for each color plane intensity typically represented with 8 bits  Sample points are called pixels CS 414 - Spring 2009
  • 6. Digital Images  Samples = pixels  Quantization = number of bits per pixel  Example: if we would sample and quantize standard TV picture (525 lines) by using VGA (Video Graphics Array), video controller creates matrix 640x480pixels, and each pixel is represented by 8 bit integer (256 discrete gray levels) CS 414 - Spring 2009
  • 7. Image Representations  Black and white image  single color plane with 2 bits  Grey scale image  single color plane with 8 bits  Color image  three color planes each with 8 bits  RGB, CMY, YIQ, etc.  Indexed color image  single plane that indexes a color table  Compressed images  TIFF, JPEG, BMP, etc. 2gray levels 4 gray levels
  • 8. Digital Image Representation (3 Bit Quantization) CS 414 - Spring 2009
  • 9. Color Quantization Example of 24 bit RGB Image CS 414 - Spring 2009 24-bit Color Monitor
  • 10. Image Representation Example 128 135 166 138 190 132 129 255 105 189 167 190 229 213 134 111 138 187 135 190 255 167 213 138 128 138 129 189 229 111 166 132 105 190 134 187 24 bit RGB Representation (uncompressed) Color Planes
  • 12. Image Properties (Color) CS 414 - Spring 2009
  • 13. Color Histogram CS 414 - Spring 2009
  • 14. Image Properties (Texture)  Texture – small surface structure, either natural or artificial, regular or irregular  Texture Examples: wood barks, knitting patterns  Statistical texture analysis describes texture as a whole based on specific attributes: regularity, coarseness, orientation, contrast, … CS 414 - Spring 2009
  • 15. Texture Examples CS 414 - Spring 2009
  • 16. Spatial and Frequency Domains  Spatial domain  refers to planar region of intensity values at time t  Frequency domain  think of each color plane as a sinusoidal function of changing intensity values  refers to organizing pixels according to their changing intensity (frequency) CS 414 - Spring 2009
  • 17. Image Processing Function: 1. Filtering  Filter an image by replacing each pixel in the source with a weighted sum of its neighbors  Define the filter using a convolution mask, also referred to as a kernel  non-zero values in small neighborhood, typically centered around a central pixel  generally have odd number of rows/columns CS 414 - Spring 2009
  • 18. Convolution Filter CS 414 - Spring 2009 100 100 100 100 100 100 100 50 50 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 0 1 0 0 0 0 0 0 0 100 100 100 100 100 100 100 50 50 100 100 100 50 100 100 100 100 100 100 100 100 100 100 100 100 X =
  • 19. Mean Filter Convolution filter Subset of image 95 49 64 8 22 81 34 55 33 19 15 45 23 14 12 20           1 1 1 1 1 1 1 1 1 9 1 CS 414 - Spring 2009
  • 20. Mean Filter Convolution filter Subset of image 95 49 64 8 22 81 34 55 33 19 15 45 23 14 12 20           1 1 1 1 1 1 1 1 1 9 1 CS 414 - Spring 2009
  • 21. Common 3x3 Filters  Low/High pass filter  Blur operator  H/V Edge detector           1 2 1 2 1 2 1 2 1 13 1                   1 1 1 1 9 1 1 1 1              1 2 1 0 0 0 1 2 1              1 0 1 2 0 2 1 0 1           1 1 1 1 1 1 1 1 1 9 1
  • 22. Example CS 414 - Spring 2009
  • 23. Image Function: 2. Edge Detection  Identify areas of strong intensity contrast  filter useless data; preserve important properties  Fundamental technique  e.g., use gestures as input  identify shapes, match to templates, invoke commands
  • 24. Edge Detection CS 414 - Spring 2009
  • 25. Simple Edge Detection  Example: Let assume single line of pixels  Calculate 1st derivative (gradient) of the intensity of the original data  Using gradient, we can find peak pixels in image  I(x) represents intensity of pixel x and  I’(x) represents gradient (in 1D),  Then the gradient can be calculated by convolving the original data with a mask (-1/2 0 +1/2)  I’(x) = -1/2 *I(x-1) + 0*I(x) + ½*I(x+1) CS 414 - Spring 2008 5 7 6 4 152 148 149
  • 26. Basic Method of Edge Detection  Step 1: filter noise using mean filter  Step 2: compute spatial gradient  Step 3: mark points > threshold as edges CS 414 - Spring 2009
  • 27. Mark Edge Points  Given gradient at each pixel and threshold  mark pixels where gradient > threshold as edges CS 414 - Spring 2009
  • 28. Compute Edge Direction  Calculation of Rate of Change in Intensity Gradient  Use 2nd derivative  Example: (5 7 6 4 152 148 149)  Use convolution mask (+1 -2 +1)  I’’(x) = 1*I(x-1) -2*I(x) + 1*I(x+1)  Peak detection in 2nd derivate is a method for line detection. CS 414 - Spring 2009
  • 29. Summary  Other Important Image Processing Functions  Image segmentation  Image recognition  Formatting  Conditioning  Marking  Grouping  Extraction  Matching  Image synthesis CS 414 - Spring 2009