SlideShare a Scribd company logo
Digital Image
Processing
Contents
Image Acquisition and Representation
A Simple Image Formation Model
Image Sampling and Quantization
Image Interpolation
Homework
Light and EM spectrum
Monochromatic light
Intensity is the only attribute, from black to white
Monochromatic images are referred to as gray-
scale images
Chromatic light bands: 0.43 to 0.79 um
The quality of a chromatic light source:
Radiance (W)
Luminance (lm)
Brightness
Acquisition
Acquisition
Acquisition
Acquisition
Acquisition using Sensor Arrays
CCD Array (Charge Couple Devices)
Use in digital cameras
Can be packaged in rugged arrays of 4000x4000
CCD
CCD
CCD: 3.2 million pixels !
12
A Simple Image Formation Model
0 < ( , ) <
( , ) ( , ) ( , )
where
0 < ( , ) <
and
0 < ( , ) < 1
f x y
f x y i x y r x y
i x y
r x y



( , ) : intensity at the point ( , )
( , ) : illumination at the point ( , )
(the amount of source illumination incident on the scene)
( , ) : reflectance/transmissivity at the point ( , )
(t
f x y x y
i x y x y
r x y x y
he amount of illumination reflected/transmitted by the object)
13
Some Typical Ranges of illumination
Illumination
Lumen — A unit of light flow or luminous flux
Lumen per square meter (lm/m2) — The metric unit of measure for
illuminance of a surface
On a clear day, the sun may produce in excess of 90,000 lm/m2 of illumination
on the surface of the Earth
On a cloudy day, the sun may produce less than 10,000 lm/m2 of illumination
on the surface of the Earth
On a clear evening, the moon yields about 0.1 lm/m2 of illumination
The typical illumination level in a commercial office is about 1000 lm/m2
14
Some Typical Ranges of Reflectance
Reflectance
0.01 for black velvet
0.65 for stainless steel
0.80 for flat-white wall paint
0.90 for silver-plated metal
0.93 for snow
Digital vs. Analog Images
Analog:
Function v = f(x,y): v,x,y are REAL
Digital:
Function v = f(x,y): v,x,y are INTEGER
Sampling means measuring the value of an
image at a finite number of points.
Quantization is the representation of the
measured value at the sampled point by an
integer.
Stepping down from REALity to INTEGER
coordinates x,y: Sampling
SamplingandQuantization
Image quantization(example)
256 gray levels (8bits/pixel) 32 gray levels (5 bits/pixel) 16 gray levels (4 bits/pixel)
8 gray levels (3 bits/pixel) 4 gray levels (2 bits/pixel) 2 gray levels (1 bit/pixel)
Image sampling (example)
original image sampled by a factor of 2
sampled by a factor of 4 sampled by a factor of 8
Image downsampling by factor of 2
Factor of 2 Up-Sampling
Color images can be represented by
3D Arrays (e.g. 320 x 240 x 3)
But for the time being we’ll handle 2D
grayvalue images
26
Image Interpolation
Interpolation — Process of using known data to
estimate unknown values
e.g., zooming, shrinking, rotating, and geometric correction
Interpolation (sometimes called resampling) — an
imaging method to increase (or decrease) the number of pixels
in a digital image.
Some digital cameras use interpolation to produce a larger image than the
sensor captured or to create digital zoom
28
Image Interpolation:
Nearest Neighbor Interpolation
f1(x2,y2) =
f(round(x2), round(y2))
=f(x1,y1)
f(x1,y1)
f1(x3,y3) =
f(round(x3), round(y3))
=f(x1,y1)
29
Image Interpolation:
Bilinear Interpolation
(x,y)
The output pixel value is a weighted average of pixels in the nearest 2-by-2
neighborhood
Considers the closest 2x2 neighborhood of known pixel values surrounding the
unknown pixel
It then takes a weighted average of these 4 pixels to arrive at its final interpolated
value
This results in much smoother looking images than nearest neighbor
30
Image Interpolation:
Bilinear Interpolation
f(x,y)=ax + by + cxy + d
31
Image Interpolation:
Bicubic Interpolation
3 3
3
0 0
( , ) i j
ij
i j
f x y a x y
 
 
The intensity value assigned to point (x,y) is obtained by the
following equation
The sixteen coefficients are determined by using the sixteen
nearest neighbors.
32
Examples: Interpolation
33
Examples: Interpolation
34
Examples: Interpolation
35
Examples: Interpolation
36
Examples: Interpolation
37
Examples: Interpolation
38
Examples: Interpolation
Weeks 1 & 2 39
Examples: Interpolation
Homework
Consider the following 4x4 image. Construct the 8x8 image using
nearest neighbor and bilinear interpolation techniques.
9 8 7 6
8 8 4 6
1 1 4 6
0 9 2 3
41
Basic Relationships Between Pixels
Neighborhood
Adjacency
Connectivity
Paths
Regions and boundaries
42
Basic Relationships Between Pixels
Neighbors of a pixel p at coordinates (x,y)
 4-neighbors of p, denoted by N4(p):
(x-1, y), (x+1, y), (x,y-1), and (x, y+1).
 4 diagonal neighbors of p, denoted by ND(p):
(x-1, y-1), (x+1, y+1), (x+1,y-1), and (x-1, y+1).
 8 neighbors of p, denoted N8(p)
N8(p) = N4(p) U ND(p)
Weeks 1 & 2 43
Basic Relationships Between Pixels
Adjacency
Let V be the set of intensity values
 4-adjacency: Two pixels p and q with values from V are 4-
adjacent if q is in the set N4(p).
 8-adjacency: Two pixels p and q with values from V are 8-
adjacent if q is in the set N8(p).
44
Basic Relationships Between Pixels
Adjacency
Let V be the set of intensity values
 m-adjacency: Two pixels p and q with values from V are m-
adjacent if
(i) q is in the set N4(p), or
(ii) q is in the set ND(p) and the set N4(p) ∩ N4(p) has no pixels whose values
are from V.
Weeks 1 & 2 45
Basic Relationships Between Pixels
Path
 A (digital) path (or curve) from pixel p with coordinates (x0, y0) to pixel q with
coordinates (xn, yn) is a sequence of distinct pixels with coordinates
(x0, y0), (x1, y1), …, (xn, yn)
Where (xi, yi) and (xi-1, yi-1) are adjacent for 1 ≤ i ≤ n.
 Here n is the length of the path.
 If (x0, y0) = (xn, yn), the path is closed path.
 We can define 4-, 8-, and m-paths based on the type of adjacency used.
Weeks 1 & 2 46
Examples: Adjacency and Path
0 1 1 0 1 1 0 1 1
0 2 0 0 2 0 0 2 0
0 0 1 0 0 1 0 0 1
V = {1, 2}
Weeks 1 & 2 47
Examples: Adjacency and Path
0 1 1 0 1 1 0 1 1
0 2 0 0 2 0 0 2 0
0 0 1 0 0 1 0 0 1
V = {1, 2}
8-adjacent
Weeks 1 & 2 48
Examples: Adjacency and Path
0 1 1 0 1 1 0 1 1
0 2 0 0 2 0 0 2 0
0 0 1 0 0 1 0 0 1
V = {1, 2}
8-adjacent m-adjacent
Weeks 1 & 2 49
Examples: Adjacency and Path
01,1 11,2 11,3 0 1 1 0 1 1
02,1 22,2 02,3 0 2 0 0 2 0
03,1 03,2 13,3 0 0 1 0 0 1
V = {1, 2}
8-adjacent m-adjacent
The 8-path from (1,3) to (3,3):
(i) (1,3), (1,2), (2,2), (3,3)
(ii) (1,3), (2,2), (3,3)
The m-path from (1,3) to (3,3):
(1,3), (1,2), (2,2), (3,3)
Weeks 1 & 2 50
Basic Relationships Between Pixels
Connected in S
Let S represent a subset of pixels in an image. Two pixels p with
coordinates (x0, y0) and q with coordinates (xn, yn) are said to be
connected in S if there exists a path
(x0, y0), (x1, y1), …, (xn, yn)
Where ,0 ,( , )i ii i n x y S   
Weeks 1 & 2 51
Basic Relationships Between Pixels
Let S represent a subset of pixels in an image
For every pixel p in S, the set of pixels in S that are connected to p is called a
connected component of S.
If S has only one connected component, then S is called Connected Set.
We call R a region of the image if R is a connected set
Two regions, Ri and Rj are said to be adjacent if their union forms a connected
set.
Regions that are not to be adjacent are said to be disjoint.
Weeks 1 & 2 52
Basic Relationships Between Pixels
Boundary (or border)
 The boundary of the region R is the set of pixels in the region that have one
or more neighbors that are not in R.
 If R happens to be an entire image, then its boundary is defined as the set of
pixels in the first and last rows and columns of the image.
Foreground and background
 An image contains K disjoint regions, Rk, k = 1, 2, …, K. Let Ru denote the
union of all the K regions, and let (Ru)c denote its complement.
All the points in Ru is called foreground;
All the points in (Ru)c is called background.
53
Question
In the following arrangement of pixels, are the two regions (of
1s) adjacent? (if 8-adjacency is used)
1 1 1
1 0 1
0 1 0
0 0 1
1 1 1
1 1 1
Region 1
Region 2
54
Question
In the following arrangement of pixels, are the two parts (of 1s)
adjacent? (if 4-adjacency is used)
1 1 1
1 0 1
0 1 0
0 0 1
1 1 1
1 1 1
Part 1
Part 2
Weeks 1 & 2 55
In the following arrangement of pixels, the two regions (of 1s)
are disjoint (if 4-adjacency is used)
1 1 1
1 0 1
0 1 0
0 0 1
1 1 1
1 1 1
Region 1
Region 2
Weeks 1 & 2 56
In the following arrangement of pixels, the two regions (of 1s)
are disjoint (if 4-adjacency is used)
1 1 1
1 0 1
0 1 0
0 0 1
1 1 1
1 1 1
foreground
background
57
Question
In the following arrangement of pixels, the circled point is part
of the boundary of the 1-valued pixels if 8-adjacency is used,
true or false?
0 0 0 0 0
0 1 1 0 0
0 1 1 0 0
0 1 1 1 0
0 1 1 1 0
0 0 0 0 0
58
Homework: Question 1
In the following arrangement of pixels, the circled point is part
of the boundary of the 1-valued pixels if 4-adjacency is used,
true or false?
0 0 0 0 0
0 1 1 0 0
0 1 1 0 0
0 1 1 1 0
0 1 1 1 0
0 0 0 0 0
59
Distance Measures
Given pixels p, q and z with coordinates (x, y), (s, t), (u, v)
respectively, the distance function D has following
properties:
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)
60
Distance Measures
The following are the different Distance measures:
a. Euclidean Distance :
De(p, q) = [(x-s)2 + (y-t)2]1/2
b. City Block Distance:
D4(p, q) = |x-s| + |y-t|
c. Chess Board Distance:
D8(p, q) = max(|x-s|, |y-t|)
61
Question
In the following arrangement of pixels, what’s the value of the
chessboard distance between the circled two points?
0 0 0 0 0
0 0 1 1 0
0 1 1 0 0
0 1 0 0 0
0 0 0 0 0
0 0 0 0 0
62
Homework: Question 2
In the following arrangement of pixels, what’s the value of the
city-block distance between the circled two points?
0 0 0 0 0
0 0 1 1 0
0 1 1 0 0
0 1 0 0 0
0 0 0 0 0
0 0 0 0 0
63
Homework: Question 3
In the following arrangement of pixels, what’s the value of the
length of the m-path between the circled two points?
0 0 0 0 0
0 0 1 1 0
0 1 1 0 0
0 1 0 0 0
0 0 0 0 0
0 0 0 0 0
64
Homework: Question 4
In the following arrangement of pixels, what’s the value of the
length of the m-path between the circled two points?
0 0 0 0 0
0 0 1 1 0
0 0 1 0 0
0 1 0 0 0
0 0 0 0 0
0 0 0 0 0

More Related Content

What's hot

Image Acquisition
Image AcquisitionImage Acquisition
Image Acquisition
shail288
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
Poonam Seth
 
Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
Amnaakhaan
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
University of Potsdam
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
A B Shinde
 
Introduction to image contrast and enhancement method
Introduction to image contrast and enhancement methodIntroduction to image contrast and enhancement method
Introduction to image contrast and enhancement method
Abhishekvb
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
Inamul Hossain Imran
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
ramya marichamy
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
kavitha muneeshwaran
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
Pallavi Agarwal
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
Anuj Arora
 
Mathematical operations in image processing
Mathematical operations in image processingMathematical operations in image processing
Mathematical operations in image processing
Asad Ali
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
BCET, Balasore
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
arulraj121
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
DEEPASHRI HK
 
image enhancement
 image enhancement image enhancement
image enhancement
Rajendra Prasad
 
Morphological operations
Morphological operationsMorphological operations

What's hot (20)

Image Acquisition
Image AcquisitionImage Acquisition
Image Acquisition
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Image restoration and reconstruction
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
SPATIAL FILTER
SPATIAL FILTERSPATIAL FILTER
SPATIAL FILTER
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Introduction to image contrast and enhancement method
Introduction to image contrast and enhancement methodIntroduction to image contrast and enhancement method
Introduction to image contrast and enhancement method
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Mathematical operations in image processing
Mathematical operations in image processingMathematical operations in image processing
Mathematical operations in image processing
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 

Similar to Image Acquisition and Representation

chap2.ppt is the presentation of image of eye.
chap2.ppt is the presentation of image of eye.chap2.ppt is the presentation of image of eye.
chap2.ppt is the presentation of image of eye.
YogeshRotela
 
03 digital image fundamentals DIP
03 digital image fundamentals DIP03 digital image fundamentals DIP
03 digital image fundamentals DIP
babak danyal
 
chap2.ppt
chap2.pptchap2.ppt
chap2.ppt
akshaya870130
 
Digital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.pptDigital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.ppt
MrsSDivyaBME
 
Digital image processing fundamental explanation
Digital image processing fundamental explanationDigital image processing fundamental explanation
Digital image processing fundamental explanation
Tirusew1
 
Dip mcq1
Dip mcq1Dip mcq1
Dip mcq1
Antony Vigil
 
Image_Processing-ch2surface r_part_2.ppt
Image_Processing-ch2surface r_part_2.pptImage_Processing-ch2surface r_part_2.ppt
Image_Processing-ch2surface r_part_2.ppt
Praveen Kumar
 
Image processing 1-lectures
Image processing  1-lecturesImage processing  1-lectures
Image processing 1-lectures
Taymoor Nazmy
 
quantization and sampling presentation ppt
quantization and sampling presentation pptquantization and sampling presentation ppt
quantization and sampling presentation ppt
KNaveenKumarECE
 
DIP7_Relationships_between_pixels.ppt
DIP7_Relationships_between_pixels.pptDIP7_Relationships_between_pixels.ppt
DIP7_Relationships_between_pixels.ppt
akshaya870130
 
3.ppt
3.ppt3.ppt
3.ppt
anshharjai
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
nagwaAboElenein
 
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
BHAGYAPRASADBUGGE
 
Module 1.pptx
Module 1.pptxModule 1.pptx
Module 1.pptx
Mattupallipardhu
 
Computer vision 3 4
Computer vision 3 4Computer vision 3 4
Computer vision 3 4
sachinmore76
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)
Varun Ojha
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
PreethiPreethi28
 
Optimal nonlocal means algorithm for denoising ultrasound image
Optimal nonlocal means algorithm for denoising ultrasound imageOptimal nonlocal means algorithm for denoising ultrasound image
Optimal nonlocal means algorithm for denoising ultrasound image
Alexander Decker
 
11.optimal nonlocal means algorithm for denoising ultrasound image
11.optimal nonlocal means algorithm for denoising ultrasound image11.optimal nonlocal means algorithm for denoising ultrasound image
11.optimal nonlocal means algorithm for denoising ultrasound imageAlexander Decker
 

Similar to Image Acquisition and Representation (20)

chap2.ppt is the presentation of image of eye.
chap2.ppt is the presentation of image of eye.chap2.ppt is the presentation of image of eye.
chap2.ppt is the presentation of image of eye.
 
03 digital image fundamentals DIP
03 digital image fundamentals DIP03 digital image fundamentals DIP
03 digital image fundamentals DIP
 
chap2.ppt
chap2.pptchap2.ppt
chap2.ppt
 
Digital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.pptDigital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.ppt
 
Digital image processing fundamental explanation
Digital image processing fundamental explanationDigital image processing fundamental explanation
Digital image processing fundamental explanation
 
Dip mcq1
Dip mcq1Dip mcq1
Dip mcq1
 
Image_Processing-ch2surface r_part_2.ppt
Image_Processing-ch2surface r_part_2.pptImage_Processing-ch2surface r_part_2.ppt
Image_Processing-ch2surface r_part_2.ppt
 
Image processing 1-lectures
Image processing  1-lecturesImage processing  1-lectures
Image processing 1-lectures
 
quantization and sampling presentation ppt
quantization and sampling presentation pptquantization and sampling presentation ppt
quantization and sampling presentation ppt
 
DIP7_Relationships_between_pixels.ppt
DIP7_Relationships_between_pixels.pptDIP7_Relationships_between_pixels.ppt
DIP7_Relationships_between_pixels.ppt
 
3.ppt
3.ppt3.ppt
3.ppt
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
Pixelrelationships
PixelrelationshipsPixelrelationships
Pixelrelationships
 
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
 
Module 1.pptx
Module 1.pptxModule 1.pptx
Module 1.pptx
 
Computer vision 3 4
Computer vision 3 4Computer vision 3 4
Computer vision 3 4
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Optimal nonlocal means algorithm for denoising ultrasound image
Optimal nonlocal means algorithm for denoising ultrasound imageOptimal nonlocal means algorithm for denoising ultrasound image
Optimal nonlocal means algorithm for denoising ultrasound image
 
11.optimal nonlocal means algorithm for denoising ultrasound image
11.optimal nonlocal means algorithm for denoising ultrasound image11.optimal nonlocal means algorithm for denoising ultrasound image
11.optimal nonlocal means algorithm for denoising ultrasound image
 

More from Amnaakhaan

Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
Amnaakhaan
 
Intensity Transformation
Intensity TransformationIntensity Transformation
Intensity Transformation
Amnaakhaan
 
Adaptive Median Filters
Adaptive Median FiltersAdaptive Median Filters
Adaptive Median Filters
Amnaakhaan
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
Amnaakhaan
 
Watershed
WatershedWatershed
Watershed
Amnaakhaan
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
Amnaakhaan
 

More from Amnaakhaan (6)

Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Intensity Transformation
Intensity TransformationIntensity Transformation
Intensity Transformation
 
Adaptive Median Filters
Adaptive Median FiltersAdaptive Median Filters
Adaptive Median Filters
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
 
Watershed
WatershedWatershed
Watershed
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 

Recently uploaded

一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.pptPROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
bhadouriyakaku
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
obonagu
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
Ethernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.pptEthernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.ppt
azkamurat
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 

Recently uploaded (20)

一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.pptPROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
Ethernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.pptEthernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.ppt
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 

Image Acquisition and Representation

  • 2. Contents Image Acquisition and Representation A Simple Image Formation Model Image Sampling and Quantization Image Interpolation Homework
  • 3. Light and EM spectrum Monochromatic light Intensity is the only attribute, from black to white Monochromatic images are referred to as gray- scale images Chromatic light bands: 0.43 to 0.79 um The quality of a chromatic light source: Radiance (W) Luminance (lm) Brightness
  • 8. Acquisition using Sensor Arrays CCD Array (Charge Couple Devices) Use in digital cameras Can be packaged in rugged arrays of 4000x4000
  • 9. CCD
  • 10. CCD
  • 11. CCD: 3.2 million pixels !
  • 12. 12 A Simple Image Formation Model 0 < ( , ) < ( , ) ( , ) ( , ) where 0 < ( , ) < and 0 < ( , ) < 1 f x y f x y i x y r x y i x y r x y    ( , ) : intensity at the point ( , ) ( , ) : illumination at the point ( , ) (the amount of source illumination incident on the scene) ( , ) : reflectance/transmissivity at the point ( , ) (t f x y x y i x y x y r x y x y he amount of illumination reflected/transmitted by the object)
  • 13. 13 Some Typical Ranges of illumination Illumination Lumen — A unit of light flow or luminous flux Lumen per square meter (lm/m2) — The metric unit of measure for illuminance of a surface On a clear day, the sun may produce in excess of 90,000 lm/m2 of illumination on the surface of the Earth On a cloudy day, the sun may produce less than 10,000 lm/m2 of illumination on the surface of the Earth On a clear evening, the moon yields about 0.1 lm/m2 of illumination The typical illumination level in a commercial office is about 1000 lm/m2
  • 14. 14 Some Typical Ranges of Reflectance Reflectance 0.01 for black velvet 0.65 for stainless steel 0.80 for flat-white wall paint 0.90 for silver-plated metal 0.93 for snow
  • 15. Digital vs. Analog Images Analog: Function v = f(x,y): v,x,y are REAL Digital: Function v = f(x,y): v,x,y are INTEGER
  • 16. Sampling means measuring the value of an image at a finite number of points. Quantization is the representation of the measured value at the sampled point by an integer.
  • 17.
  • 18. Stepping down from REALity to INTEGER coordinates x,y: Sampling
  • 20. Image quantization(example) 256 gray levels (8bits/pixel) 32 gray levels (5 bits/pixel) 16 gray levels (4 bits/pixel) 8 gray levels (3 bits/pixel) 4 gray levels (2 bits/pixel) 2 gray levels (1 bit/pixel)
  • 21. Image sampling (example) original image sampled by a factor of 2 sampled by a factor of 4 sampled by a factor of 8
  • 22. Image downsampling by factor of 2
  • 23. Factor of 2 Up-Sampling
  • 24. Color images can be represented by 3D Arrays (e.g. 320 x 240 x 3)
  • 25. But for the time being we’ll handle 2D grayvalue images
  • 26. 26 Image Interpolation Interpolation — Process of using known data to estimate unknown values e.g., zooming, shrinking, rotating, and geometric correction Interpolation (sometimes called resampling) — an imaging method to increase (or decrease) the number of pixels in a digital image. Some digital cameras use interpolation to produce a larger image than the sensor captured or to create digital zoom
  • 27.
  • 28. 28 Image Interpolation: Nearest Neighbor Interpolation f1(x2,y2) = f(round(x2), round(y2)) =f(x1,y1) f(x1,y1) f1(x3,y3) = f(round(x3), round(y3)) =f(x1,y1)
  • 29. 29 Image Interpolation: Bilinear Interpolation (x,y) The output pixel value is a weighted average of pixels in the nearest 2-by-2 neighborhood Considers the closest 2x2 neighborhood of known pixel values surrounding the unknown pixel It then takes a weighted average of these 4 pixels to arrive at its final interpolated value This results in much smoother looking images than nearest neighbor
  • 31. 31 Image Interpolation: Bicubic Interpolation 3 3 3 0 0 ( , ) i j ij i j f x y a x y     The intensity value assigned to point (x,y) is obtained by the following equation The sixteen coefficients are determined by using the sixteen nearest neighbors.
  • 39. Weeks 1 & 2 39 Examples: Interpolation
  • 40. Homework Consider the following 4x4 image. Construct the 8x8 image using nearest neighbor and bilinear interpolation techniques. 9 8 7 6 8 8 4 6 1 1 4 6 0 9 2 3
  • 41. 41 Basic Relationships Between Pixels Neighborhood Adjacency Connectivity Paths Regions and boundaries
  • 42. 42 Basic Relationships Between Pixels Neighbors of a pixel p at coordinates (x,y)  4-neighbors of p, denoted by N4(p): (x-1, y), (x+1, y), (x,y-1), and (x, y+1).  4 diagonal neighbors of p, denoted by ND(p): (x-1, y-1), (x+1, y+1), (x+1,y-1), and (x-1, y+1).  8 neighbors of p, denoted N8(p) N8(p) = N4(p) U ND(p)
  • 43. Weeks 1 & 2 43 Basic Relationships Between Pixels Adjacency Let V be the set of intensity values  4-adjacency: Two pixels p and q with values from V are 4- adjacent if q is in the set N4(p).  8-adjacency: Two pixels p and q with values from V are 8- adjacent if q is in the set N8(p).
  • 44. 44 Basic Relationships Between Pixels Adjacency Let V be the set of intensity values  m-adjacency: Two pixels p and q with values from V are m- adjacent if (i) q is in the set N4(p), or (ii) q is in the set ND(p) and the set N4(p) ∩ N4(p) has no pixels whose values are from V.
  • 45. Weeks 1 & 2 45 Basic Relationships Between Pixels Path  A (digital) path (or curve) from pixel p with coordinates (x0, y0) to pixel q with coordinates (xn, yn) is a sequence of distinct pixels with coordinates (x0, y0), (x1, y1), …, (xn, yn) Where (xi, yi) and (xi-1, yi-1) are adjacent for 1 ≤ i ≤ n.  Here n is the length of the path.  If (x0, y0) = (xn, yn), the path is closed path.  We can define 4-, 8-, and m-paths based on the type of adjacency used.
  • 46. Weeks 1 & 2 46 Examples: Adjacency and Path 0 1 1 0 1 1 0 1 1 0 2 0 0 2 0 0 2 0 0 0 1 0 0 1 0 0 1 V = {1, 2}
  • 47. Weeks 1 & 2 47 Examples: Adjacency and Path 0 1 1 0 1 1 0 1 1 0 2 0 0 2 0 0 2 0 0 0 1 0 0 1 0 0 1 V = {1, 2} 8-adjacent
  • 48. Weeks 1 & 2 48 Examples: Adjacency and Path 0 1 1 0 1 1 0 1 1 0 2 0 0 2 0 0 2 0 0 0 1 0 0 1 0 0 1 V = {1, 2} 8-adjacent m-adjacent
  • 49. Weeks 1 & 2 49 Examples: Adjacency and Path 01,1 11,2 11,3 0 1 1 0 1 1 02,1 22,2 02,3 0 2 0 0 2 0 03,1 03,2 13,3 0 0 1 0 0 1 V = {1, 2} 8-adjacent m-adjacent The 8-path from (1,3) to (3,3): (i) (1,3), (1,2), (2,2), (3,3) (ii) (1,3), (2,2), (3,3) The m-path from (1,3) to (3,3): (1,3), (1,2), (2,2), (3,3)
  • 50. Weeks 1 & 2 50 Basic Relationships Between Pixels Connected in S Let S represent a subset of pixels in an image. Two pixels p with coordinates (x0, y0) and q with coordinates (xn, yn) are said to be connected in S if there exists a path (x0, y0), (x1, y1), …, (xn, yn) Where ,0 ,( , )i ii i n x y S   
  • 51. Weeks 1 & 2 51 Basic Relationships Between Pixels Let S represent a subset of pixels in an image For every pixel p in S, the set of pixels in S that are connected to p is called a connected component of S. If S has only one connected component, then S is called Connected Set. We call R a region of the image if R is a connected set Two regions, Ri and Rj are said to be adjacent if their union forms a connected set. Regions that are not to be adjacent are said to be disjoint.
  • 52. Weeks 1 & 2 52 Basic Relationships Between Pixels Boundary (or border)  The boundary of the region R is the set of pixels in the region that have one or more neighbors that are not in R.  If R happens to be an entire image, then its boundary is defined as the set of pixels in the first and last rows and columns of the image. Foreground and background  An image contains K disjoint regions, Rk, k = 1, 2, …, K. Let Ru denote the union of all the K regions, and let (Ru)c denote its complement. All the points in Ru is called foreground; All the points in (Ru)c is called background.
  • 53. 53 Question In the following arrangement of pixels, are the two regions (of 1s) adjacent? (if 8-adjacency is used) 1 1 1 1 0 1 0 1 0 0 0 1 1 1 1 1 1 1 Region 1 Region 2
  • 54. 54 Question In the following arrangement of pixels, are the two parts (of 1s) adjacent? (if 4-adjacency is used) 1 1 1 1 0 1 0 1 0 0 0 1 1 1 1 1 1 1 Part 1 Part 2
  • 55. Weeks 1 & 2 55 In the following arrangement of pixels, the two regions (of 1s) are disjoint (if 4-adjacency is used) 1 1 1 1 0 1 0 1 0 0 0 1 1 1 1 1 1 1 Region 1 Region 2
  • 56. Weeks 1 & 2 56 In the following arrangement of pixels, the two regions (of 1s) are disjoint (if 4-adjacency is used) 1 1 1 1 0 1 0 1 0 0 0 1 1 1 1 1 1 1 foreground background
  • 57. 57 Question In the following arrangement of pixels, the circled point is part of the boundary of the 1-valued pixels if 8-adjacency is used, true or false? 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 1 0 0 0 0 0 0
  • 58. 58 Homework: Question 1 In the following arrangement of pixels, the circled point is part of the boundary of the 1-valued pixels if 4-adjacency is used, true or false? 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 1 0 0 0 0 0 0
  • 59. 59 Distance Measures Given pixels p, q and z with coordinates (x, y), (s, t), (u, v) respectively, the distance function D has following properties: 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)
  • 60. 60 Distance Measures The following are the different Distance measures: a. Euclidean Distance : De(p, q) = [(x-s)2 + (y-t)2]1/2 b. City Block Distance: D4(p, q) = |x-s| + |y-t| c. Chess Board Distance: D8(p, q) = max(|x-s|, |y-t|)
  • 61. 61 Question In the following arrangement of pixels, what’s the value of the chessboard distance between the circled two points? 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
  • 62. 62 Homework: Question 2 In the following arrangement of pixels, what’s the value of the city-block distance between the circled two points? 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
  • 63. 63 Homework: Question 3 In the following arrangement of pixels, what’s the value of the length of the m-path between the circled two points? 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
  • 64. 64 Homework: Question 4 In the following arrangement of pixels, what’s the value of the length of the m-path between the circled two points? 0 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0