SlideShare a Scribd company logo
17
Most read
18
Most read
19
Most read
MODERN INSTITUTE OF
ENGINEERING AND TECHNOLOGY
NAME- ARKA SAHOO
ROLL NO- 26900321025
DEPT- ECE
7TH
SEMESTER, 4TH
YEAR
SUBJECT- DIGITAL IMAGE PROCESSING
PAPER CODE- PE-EC702B
What is a Digital Image?
 Real Images
 A real image can be
represented as a two-
dimensional continuous
light intensity function
g(x,y); where x and y
denote the spatial
coordinates and the
value
g(x,y)
y
of g is proportional to
the brightness (or gray
level)
of the image at that
point. x
What is a Digital Image?
 Digital Images
 A digital image is the
sampling and quantization
of a two-dimensional real
image both in spatial
coordinates and
brightness.
n
I(m,n)
Digital Image Acquisition
 A digital imaging system (digital camera).
Digital Image Acquisition
 What is the best quantization
level ?
 Digital images are typically quantized to
256 gray levels.
Digital Image Acquisition
 Sampling & Quantization
Digital Image Acquisition
 Effect of Quantization
256 128 16
4
8
2
Digital Image Representation
 A digital image can be
represented as a two-dimensional
matrix.
n
m
I(m,n)
. . . . . . .
i(1,1) i(1,2)
i(2,1) i(2,2)
.
. .
.
……. i(1, n-
1)
……. i(2, n-
1)
.
. . .
.
I(mn) =
i(m-1,1) i(m-1,2) … i(m-1, n-1)
•Each element is called a pixel (picture
element).
•A color (RGB) image is represented
by a 3-dimensional matrix I(mxnx3)
Digital Image Size
 The size of a digital image is determines by its
dimensions ( M x N ) multiplied by the number of
bits b required to store the intensity levels (L = 2b).
 image size = M x N x b (bits)
 Typical values of b are:
 b = 1
 b = 8
black and white (binary) images.
grayscale (256 gray levels), or
 b = 24
indexed color images
RGB color image.
Digital Image Resolution
 Digital image resolution is determined by
the number of pixels (samples) in the
image.
Digital Image Resolution
 Digital image with low resolution has
low quality.
1024x1024x8 512x512x8 256x256x8
128x128x8 64x64x8 32x32x8
Digital image Types
 RGB (Color) Images
Each pixel is a mixture of
three values of Red, Geen,
and Blue.
R,G,B = {0-255, 0-255, 0-
255}
0 = Black
255 = White
In normalized values:
R,G,B = {0-1, 0-1, 0-
1}
0 = Black
1 = White
Color Map
Indices
G B
Index R
1
2
3
4
5
6
7
8
.
.
Digital image Types
 Indexed (Color) Images
In order to reduce the color image
size,each pixel is given the index
of a color In a color table (color
map).
Digital image Types
 Grayscale (Intensity)
Images
Each pixel is given
a gray level value
between 0 – 255 or
between 0 – 1.
We need 8 bits to
store a
grayscale value.
Digital image Types
 Black and white (Binary) Images
• Each pixel has one of two gray levels either black (0) or white (1).
• We need 8 bits to store a grayscale value.
Types of Pixel Neighborhoods
•Image sampling:
• Rectangular sampling - In most cases, images are sampled by
laying a rectangular grid over an image.
•Hexagonal sampling - An alternative sampling scheme is shown.
•Pixel Neighborhoods:
•4-connected and 8-connected neighborhood (Rectangular
sampling)
•6-connected neighborhood (Hexagonal sampling)
Types of Pixel Neighborhoods
4-connected 8-connected 6-connected
 Basic Relationships Between Pixels
Distance Measures
 If pixels p and q have coordinates (x, y) and (s,
t), respectively.
 The Euclidean distance between p and q
 De(p, q) = [(x – s)2 + (y – t) 2] ½
 The D4 (City-block ) distance between p and
q
 D4(p, q) = |x – s| + |y – t|
 The D8 (Chessboard ) distance between p
and q
 D (p, q) = max( |x – s| , |y – t| )
Distance Measures
 Results of D4 and D8
distances
 The pixels with D4=1 are the 4-neighbors
 The pixels with D8=1 are the 8-neighbors
THANK YOU

More Related Content

PPTX
Color models
PPSX
Edge Detection and Segmentation
PPTX
Color Models Computer Graphics
PPTX
Chapter 3 image enhancement (spatial domain)
PDF
06 color image processing
PPTX
Chapter 6 color image processing
Color models
Edge Detection and Segmentation
Color Models Computer Graphics
Chapter 3 image enhancement (spatial domain)
06 color image processing
Chapter 6 color image processing

What's hot (20)

PPTX
Image filtering in Digital image processing
PPT
Chapter10 image segmentation
PPTX
Digital Image Processing Unit -2 Notes complete
PPSX
Color Image Processing: Basics
PPTX
Rgb colour model
PPT
Hidden lines & surfaces
PPTX
Chapter 8 image compression
PPTX
Image Sensing and Acquisition.pptx
PDF
Digital Image Processing: Image Enhancement in the Frequency Domain
PPTX
Digital Image restoration
PPTX
Color image processing Presentation
PDF
Digital Image Fundamentals
PPTX
Color Models.pptx
PPTX
Region filling
PPTX
Color fundamentals and color models - Digital Image Processing
PDF
color image processing
PPTX
digital image processing
PPTX
RGB and CMY based color model
PPTX
Image Restoration And Reconstruction
Image filtering in Digital image processing
Chapter10 image segmentation
Digital Image Processing Unit -2 Notes complete
Color Image Processing: Basics
Rgb colour model
Hidden lines & surfaces
Chapter 8 image compression
Image Sensing and Acquisition.pptx
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image restoration
Color image processing Presentation
Digital Image Fundamentals
Color Models.pptx
Region filling
Color fundamentals and color models - Digital Image Processing
color image processing
digital image processing
RGB and CMY based color model
Image Restoration And Reconstruction
Ad

Similar to Distance measures in Image in Digital Image Processing (20)

PPTX
Dip digital image 3
PPTX
Computer vision labs for improving in the subject
PPTX
Digital Image Processing Unit 1 NotesPPT
PPTX
Digital-Image-processing-fundamenntal.pptx
PPTX
quantization and sampling presentation ppt
PPTX
Lecture 5.pptx
PPTX
Lect 02 second portion
PPT
lecture3.ppt jrjdndjnrndkemneudbekksjeneiemen
PPT
PDF
Computer_Vision-Lecture 2- Revision on Image.pdf
PDF
Lec_2_Digital Image Fundamentals.pdf
PPT
03 digital image fundamentals DIP
PDF
Basics of image processing & analysis
PPT
Image Enhancement in the Spatial Domain1.ppt
PPT
Image enhancement in the spatial domain1
PPT
Color Image Processing,Digital Image processing
PPTX
Image Processing - Unit II - Image Enhancement discussed
PDF
Comprehensive Infrared Image Edge detection Algorithm
PDF
Image processinglab image processing image processing
PPTX
Image_processing_unit2_SPPU_Syllabus.pptx
Dip digital image 3
Computer vision labs for improving in the subject
Digital Image Processing Unit 1 NotesPPT
Digital-Image-processing-fundamenntal.pptx
quantization and sampling presentation ppt
Lecture 5.pptx
Lect 02 second portion
lecture3.ppt jrjdndjnrndkemneudbekksjeneiemen
Computer_Vision-Lecture 2- Revision on Image.pdf
Lec_2_Digital Image Fundamentals.pdf
03 digital image fundamentals DIP
Basics of image processing & analysis
Image Enhancement in the Spatial Domain1.ppt
Image enhancement in the spatial domain1
Color Image Processing,Digital Image processing
Image Processing - Unit II - Image Enhancement discussed
Comprehensive Infrared Image Edge detection Algorithm
Image processinglab image processing image processing
Image_processing_unit2_SPPU_Syllabus.pptx
Ad

More from sahooarka582 (6)

PPTX
SINGLE HOP AND MULTI HOP WIRELESS SENSOR NETWORK
PPTX
IOT based LPG gas level detection and fire sensor
PPT
ARTIFICIAL INTELLIGENCE- informed search strategies
PPTX
Internet Of things and its future, Innovations and predictions
PPTX
Management- Definition and Function presentation
PPTX
powerpoint presentation on Java characteristics
SINGLE HOP AND MULTI HOP WIRELESS SENSOR NETWORK
IOT based LPG gas level detection and fire sensor
ARTIFICIAL INTELLIGENCE- informed search strategies
Internet Of things and its future, Innovations and predictions
Management- Definition and Function presentation
powerpoint presentation on Java characteristics

Recently uploaded (20)

PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Geodesy 1.pptx...............................................
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Welding lecture in detail for understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Sustainable Sites - Green Building Construction
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Digital Logic Computer Design lecture notes
PPTX
Construction Project Organization Group 2.pptx
PPT
Project quality management in manufacturing
PDF
PPT on Performance Review to get promotions
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Geodesy 1.pptx...............................................
Embodied AI: Ushering in the Next Era of Intelligent Systems
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
additive manufacturing of ss316l using mig welding
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Welding lecture in detail for understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Sustainable Sites - Green Building Construction
Foundation to blockchain - A guide to Blockchain Tech
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Digital Logic Computer Design lecture notes
Construction Project Organization Group 2.pptx
Project quality management in manufacturing
PPT on Performance Review to get promotions
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
UNIT 4 Total Quality Management .pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS

Distance measures in Image in Digital Image Processing

  • 1. MODERN INSTITUTE OF ENGINEERING AND TECHNOLOGY NAME- ARKA SAHOO ROLL NO- 26900321025 DEPT- ECE 7TH SEMESTER, 4TH YEAR SUBJECT- DIGITAL IMAGE PROCESSING PAPER CODE- PE-EC702B
  • 2. What is a Digital Image?  Real Images  A real image can be represented as a two- dimensional continuous light intensity function g(x,y); where x and y denote the spatial coordinates and the value g(x,y) y of g is proportional to the brightness (or gray level) of the image at that point. x
  • 3. What is a Digital Image?  Digital Images  A digital image is the sampling and quantization of a two-dimensional real image both in spatial coordinates and brightness. n I(m,n)
  • 4. Digital Image Acquisition  A digital imaging system (digital camera).
  • 5. Digital Image Acquisition  What is the best quantization level ?  Digital images are typically quantized to 256 gray levels.
  • 6. Digital Image Acquisition  Sampling & Quantization
  • 7. Digital Image Acquisition  Effect of Quantization 256 128 16 4 8 2
  • 8. Digital Image Representation  A digital image can be represented as a two-dimensional matrix. n m I(m,n) . . . . . . . i(1,1) i(1,2) i(2,1) i(2,2) . . . . ……. i(1, n- 1) ……. i(2, n- 1) . . . . . I(mn) = i(m-1,1) i(m-1,2) … i(m-1, n-1) •Each element is called a pixel (picture element). •A color (RGB) image is represented by a 3-dimensional matrix I(mxnx3)
  • 9. Digital Image Size  The size of a digital image is determines by its dimensions ( M x N ) multiplied by the number of bits b required to store the intensity levels (L = 2b).  image size = M x N x b (bits)  Typical values of b are:  b = 1  b = 8 black and white (binary) images. grayscale (256 gray levels), or  b = 24 indexed color images RGB color image.
  • 10. Digital Image Resolution  Digital image resolution is determined by the number of pixels (samples) in the image.
  • 11. Digital Image Resolution  Digital image with low resolution has low quality. 1024x1024x8 512x512x8 256x256x8 128x128x8 64x64x8 32x32x8
  • 12. Digital image Types  RGB (Color) Images Each pixel is a mixture of three values of Red, Geen, and Blue. R,G,B = {0-255, 0-255, 0- 255} 0 = Black 255 = White In normalized values: R,G,B = {0-1, 0-1, 0- 1} 0 = Black 1 = White
  • 13. Color Map Indices G B Index R 1 2 3 4 5 6 7 8 . . Digital image Types  Indexed (Color) Images In order to reduce the color image size,each pixel is given the index of a color In a color table (color map).
  • 14. Digital image Types  Grayscale (Intensity) Images Each pixel is given a gray level value between 0 – 255 or between 0 – 1. We need 8 bits to store a grayscale value.
  • 15. Digital image Types  Black and white (Binary) Images • Each pixel has one of two gray levels either black (0) or white (1). • We need 8 bits to store a grayscale value.
  • 16. Types of Pixel Neighborhoods •Image sampling: • Rectangular sampling - In most cases, images are sampled by laying a rectangular grid over an image. •Hexagonal sampling - An alternative sampling scheme is shown. •Pixel Neighborhoods: •4-connected and 8-connected neighborhood (Rectangular sampling) •6-connected neighborhood (Hexagonal sampling)
  • 17. Types of Pixel Neighborhoods 4-connected 8-connected 6-connected  Basic Relationships Between Pixels
  • 18. Distance Measures  If pixels p and q have coordinates (x, y) and (s, t), respectively.  The Euclidean distance between p and q  De(p, q) = [(x – s)2 + (y – t) 2] ½  The D4 (City-block ) distance between p and q  D4(p, q) = |x – s| + |y – t|  The D8 (Chessboard ) distance between p and q  D (p, q) = max( |x – s| , |y – t| )
  • 19. Distance Measures  Results of D4 and D8 distances  The pixels with D4=1 are the 4-neighbors  The pixels with D8=1 are the 8-neighbors