SlideShare a Scribd company logo
1 of 28
HOW ARE IMAGES REPRESENTED
IN THE COMPUTER?
COLOR IMAGES
A SIMPLE MODEL OF IMAGE FORMATION
 The scene is illuminated by a single source.
 The scene reflects radiation towards the camera.
 The camera senses it via chemicals on film.
PINHOLE CAMERA
 This is the simplest device to form an image of a 3D
scene on a 2D surface.
 Straight rays of light pass through a “pinhole” and
form an inverted image of the object on the image
plane.
CAMERA OPTICS
 In practice, the aperture must be larger to admit more light.
 Lenses are placed to in the aperture to focus the bundle of
rays from each scene point onto the corresponding point in
the image plane
WHAT IS LIGHT?
 The visible portion of the electromagnetic (EM)
spectrum.
 It occurs between wavelengths of approximately
400 and 700 nanometers.
SHORT WAVELENGTHS
 Different wavelengths of radiation have different
properties.
 The x-ray region of the spectrum, it carries sufficient
energy to penetrate a significant volume or material.
LONG WAVELENGTHS
 Copious quantities of infrared (IR) radiation are
emitted from warm objects (e.g., locate people in total
darkness).
LONG WAVELENGTHS (CONT’D)
 “Synthetic aperture radar” (SAR) imaging
techniques use an artificially generated source of
microwaves to probe a scene.
 SAR is unaffected by weather conditions and clouds
(e.g., has provided us images of the surface of
Venus).
CCD (CHARGED-COUPLED DEVICE) CAMERAS
 Tiny solid state cells convert light energy into
electrical charge.
 The image plane acts as a digital memory that can be
read row by row by a computer.
FRAME GRABBER
 Usually, a CCD camera plugs into a computer board
(frame grabber).
 The frame grabber digitizes the signal and stores it in
its memory (frame buffer).
IMAGE DIGITIZATION
 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.
IMAGE DIGITIZATION (CONT’D)
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
SAMPLING AND QUANTIZATION
 To convert the image to digital form, we have to
sample the function in both coordinates and in
amplitude. Digitizing the coordinate values is called
sampling. Digitizing the amplitude values is called
quantization.
© 2002 R. C. Gonzalez & R. E. Woods
y (intensity values)
Generating a digital
image. (a) Continuous
image. (b) A scaling
line from A to B in the
continuous image,
used to illustrate the
concepts of sampling
and quantization. (c)
sampling and
quantization. (d) Digital
scan line.
a b
c d
© 2002 R. C. Gonzalez & R. E. Woods
(a) Continuous
image projected
onto a sensor array.
(b) Result of image
sampling and
quantization.
a b
 The one-dimensional function in Fig.2.16(b) is a plot of amplitude
(intensity level) values of the continuous image along the line
segment AB in Fig.2.16(a).
 The random variations are due to image noise.
 To sample this function,we take equally spaced samples along line
AB,as shown in Fig.2.16(c).
 The spatial location of each sample is indicated by a vertical tick
mark in the bottom part of the figure.
 The samples are shown as small white squares superimposed on
the function.
 The set of these discrete locations gives the sampled function.
 However,the values of the samples still span (vertically) a
continuous range of intensity values.
oIn order to form a digital function, the intensity values also must be converted
(quantized) into discrete quantities.
oThe right side of Fig. 2.16(c) shows the intensity scale divided into eight discrete
intervals, ranging from black to white.
oThe vertical tick marks indicate the specific value assigned to each of the eight
intensity intervals.
oThe continuous intensity levels are quantized by assigning one of the eight values
to each sample.
oThe assignment is made depending on the vertical proximity of a sample to a
vertical tick mark.
oThe digital samples resulting from both sampling and quantization are shown in
Fig.2.16(d).
oStarting at the top of the image and carrying out this procedure line by line
produces a two-dimensional digital image.
oIt is implied in Fig.2.16 that,in addition to the number of discrete levels used, the
accuracy achieved in quantization is highly dependent on the noise content of the
sampled signal.
0 0 0 75 75 75 128 128 128 128
0 75 75 75 128 128 128 255 255 255
75 75 75 200 200 200 255 255 255 200
128 128 128 200 200 255 255 200 200 200
128 128 128 255 255 200 200 200 75 75
175 175 175 225 225 225 75 75 75 100
175 175 100 100 100 225 225 75 75 100
75 75 75 35 35 35 0 0 0 35
35 35 35 0 0 0 35 35 35 75
75 75 75 100 100 100 200 200 200 200
Sampling
1024
512
256
128
64
32
Sampling
1024 512 256
128 64 32
imread() – reading an image with different
postfixes
imresize() – resizing an image to any given size
figure – opening a new graphical window
subplot(#of row, # of col, location) – showing
different plots/images in one graphical window
imshow() – displaying an image
im=imread('obelix.jpg');
im=rgb2gray(imread('obelix.jpg'));
im1=imresize(im, [1024 1024]);
im2=imresize(im1, [1024 1024]/2);
im3=imresize(im1, [1024 1024]/4);
im4=imresize(im1, [1024 1024]/8);
im5=imresize(im1, [1024 1024]/16);
im6=imresize(im1, [1024 1024]/32);
figure;imshow(im1)
figure;imshow(im2)
figure;imshow(im3)
figure;imshow(im4)
figure;imshow(im5)
figure;
subplot(2,3,1);imshow(im1);subplot(2,3,2);imshow(im2)
subplot(2,3,3);imshow(im3);subplot(2,3,4);imshow(im4)
subplot(2,3,5);imshow(im5);subplot(2,3,6);imshow(im6)
Quantization
8-bit 7-bit 6-bit 5-bit
4-bit 3-bit 2-bit 1-bit
figure;
subplot(2,4,1);imshow(im1,[]);subplot(2,4,2);imshow(im2,[])
subplot(2,4,3);imshow(im3,[]);subplot(2,4,4);imshow(im4,[])
subplot(2,4,5);imshow(im5,[]);subplot(2,4,6);imshow(im6,[])
subplot(2,4,7);imshow(im7,[]);subplot(2,4,8);imshow(im8,[])

More Related Content

Similar to How Digital Images Are Represented

Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfnagwaAboElenein
 
Depth estimation do we need to throw old things away
Depth estimation do we need to throw old things awayDepth estimation do we need to throw old things away
Depth estimation do we need to throw old things awayNAVER Engineering
 
Aiar. unit v. machine vision 1462642546237
Aiar. unit v. machine vision 1462642546237Aiar. unit v. machine vision 1462642546237
Aiar. unit v. machine vision 1462642546237Kunal mane
 
Introduction with graphics
Introduction with graphicsIntroduction with graphics
Introduction with graphicsmsouravmishra
 
Optical Watermarking Literature survey....
Optical Watermarking Literature survey....Optical Watermarking Literature survey....
Optical Watermarking Literature survey....Arif Ahmed
 
A concept of graphics
A concept of graphicsA concept of graphics
A concept of graphicsmsouravmishra
 
Digital image processing
Digital image processingDigital image processing
Digital image processingABIRAMI M
 
DIGITAL IMAGE PROCESSING - Day 5 Applications of DIP
DIGITAL IMAGE PROCESSING - Day 5 Applications of DIPDIGITAL IMAGE PROCESSING - Day 5 Applications of DIP
DIGITAL IMAGE PROCESSING - Day 5 Applications of DIPvijayanand Kandaswamy
 
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
 
Securable image compression using spiht algorithm
Securable image compression using spiht algorithmSecurable image compression using spiht algorithm
Securable image compression using spiht algorithmIAEME Publication
 
Computer Graphics 01.pptx
Computer Graphics 01.pptxComputer Graphics 01.pptx
Computer Graphics 01.pptxSMohiuddin1
 
Image Interpolation Techniques with Optical and Digital Zoom Concepts -semina...
Image Interpolation Techniques with Optical and Digital Zoom Concepts -semina...Image Interpolation Techniques with Optical and Digital Zoom Concepts -semina...
Image Interpolation Techniques with Optical and Digital Zoom Concepts -semina...mmjalbiaty
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics systemKamal Acharya
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Analysis of Image Compression Using Wavelet
Analysis of Image Compression Using WaveletAnalysis of Image Compression Using Wavelet
Analysis of Image Compression Using WaveletIOSR Journals
 

Similar to How Digital Images Are Represented (20)

Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
Unit 1
Unit 1Unit 1
Unit 1
 
Depth estimation do we need to throw old things away
Depth estimation do we need to throw old things awayDepth estimation do we need to throw old things away
Depth estimation do we need to throw old things away
 
Aiar. unit v. machine vision 1462642546237
Aiar. unit v. machine vision 1462642546237Aiar. unit v. machine vision 1462642546237
Aiar. unit v. machine vision 1462642546237
 
Introduction with graphics
Introduction with graphicsIntroduction with graphics
Introduction with graphics
 
Optical Watermarking Literature survey....
Optical Watermarking Literature survey....Optical Watermarking Literature survey....
Optical Watermarking Literature survey....
 
A concept of graphics
A concept of graphicsA concept of graphics
A concept of graphics
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
DIGITAL IMAGE PROCESSING - Day 5 Applications of DIP
DIGITAL IMAGE PROCESSING - Day 5 Applications of DIPDIGITAL IMAGE PROCESSING - Day 5 Applications of DIP
DIGITAL IMAGE PROCESSING - Day 5 Applications of DIP
 
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
 
Securable image compression using spiht algorithm
Securable image compression using spiht algorithmSecurable image compression using spiht algorithm
Securable image compression using spiht algorithm
 
FinalReport
FinalReportFinalReport
FinalReport
 
Chapter2 DIP
Chapter2 DIP Chapter2 DIP
Chapter2 DIP
 
Tele immersion
Tele immersionTele immersion
Tele immersion
 
Computer Graphics 01.pptx
Computer Graphics 01.pptxComputer Graphics 01.pptx
Computer Graphics 01.pptx
 
Image Interpolation Techniques with Optical and Digital Zoom Concepts -semina...
Image Interpolation Techniques with Optical and Digital Zoom Concepts -semina...Image Interpolation Techniques with Optical and Digital Zoom Concepts -semina...
Image Interpolation Techniques with Optical and Digital Zoom Concepts -semina...
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
M.sc. m hassan
M.sc. m hassanM.sc. m hassan
M.sc. m hassan
 
Analysis of Image Compression Using Wavelet
Analysis of Image Compression Using WaveletAnalysis of Image Compression Using Wavelet
Analysis of Image Compression Using Wavelet
 

Recently uploaded

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 

Recently uploaded (20)

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 

How Digital Images Are Represented

  • 1. HOW ARE IMAGES REPRESENTED IN THE COMPUTER?
  • 3. A SIMPLE MODEL OF IMAGE FORMATION  The scene is illuminated by a single source.  The scene reflects radiation towards the camera.  The camera senses it via chemicals on film.
  • 4. PINHOLE CAMERA  This is the simplest device to form an image of a 3D scene on a 2D surface.  Straight rays of light pass through a “pinhole” and form an inverted image of the object on the image plane.
  • 5. CAMERA OPTICS  In practice, the aperture must be larger to admit more light.  Lenses are placed to in the aperture to focus the bundle of rays from each scene point onto the corresponding point in the image plane
  • 6. WHAT IS LIGHT?  The visible portion of the electromagnetic (EM) spectrum.  It occurs between wavelengths of approximately 400 and 700 nanometers.
  • 7. SHORT WAVELENGTHS  Different wavelengths of radiation have different properties.  The x-ray region of the spectrum, it carries sufficient energy to penetrate a significant volume or material.
  • 8. LONG WAVELENGTHS  Copious quantities of infrared (IR) radiation are emitted from warm objects (e.g., locate people in total darkness).
  • 9. LONG WAVELENGTHS (CONT’D)  “Synthetic aperture radar” (SAR) imaging techniques use an artificially generated source of microwaves to probe a scene.  SAR is unaffected by weather conditions and clouds (e.g., has provided us images of the surface of Venus).
  • 10. CCD (CHARGED-COUPLED DEVICE) CAMERAS  Tiny solid state cells convert light energy into electrical charge.  The image plane acts as a digital memory that can be read row by row by a computer.
  • 11. FRAME GRABBER  Usually, a CCD camera plugs into a computer board (frame grabber).  The frame grabber digitizes the signal and stores it in its memory (frame buffer).
  • 12. IMAGE DIGITIZATION  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.
  • 14. 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)
  • 15. IMAGE SAMPLING (EXAMPLE) original image sampled by a factor of 2 sampled by a factor of 4 sampled by a factor of 8
  • 16. SAMPLING AND QUANTIZATION  To convert the image to digital form, we have to sample the function in both coordinates and in amplitude. Digitizing the coordinate values is called sampling. Digitizing the amplitude values is called quantization.
  • 17. © 2002 R. C. Gonzalez & R. E. Woods y (intensity values) Generating a digital image. (a) Continuous image. (b) A scaling line from A to B in the continuous image, used to illustrate the concepts of sampling and quantization. (c) sampling and quantization. (d) Digital scan line. a b c d
  • 18. © 2002 R. C. Gonzalez & R. E. Woods (a) Continuous image projected onto a sensor array. (b) Result of image sampling and quantization. a b
  • 19.  The one-dimensional function in Fig.2.16(b) is a plot of amplitude (intensity level) values of the continuous image along the line segment AB in Fig.2.16(a).  The random variations are due to image noise.  To sample this function,we take equally spaced samples along line AB,as shown in Fig.2.16(c).  The spatial location of each sample is indicated by a vertical tick mark in the bottom part of the figure.  The samples are shown as small white squares superimposed on the function.  The set of these discrete locations gives the sampled function.  However,the values of the samples still span (vertically) a continuous range of intensity values.
  • 20. oIn order to form a digital function, the intensity values also must be converted (quantized) into discrete quantities. oThe right side of Fig. 2.16(c) shows the intensity scale divided into eight discrete intervals, ranging from black to white. oThe vertical tick marks indicate the specific value assigned to each of the eight intensity intervals. oThe continuous intensity levels are quantized by assigning one of the eight values to each sample. oThe assignment is made depending on the vertical proximity of a sample to a vertical tick mark. oThe digital samples resulting from both sampling and quantization are shown in Fig.2.16(d). oStarting at the top of the image and carrying out this procedure line by line produces a two-dimensional digital image. oIt is implied in Fig.2.16 that,in addition to the number of discrete levels used, the accuracy achieved in quantization is highly dependent on the noise content of the sampled signal.
  • 21. 0 0 0 75 75 75 128 128 128 128 0 75 75 75 128 128 128 255 255 255 75 75 75 200 200 200 255 255 255 200 128 128 128 200 200 255 255 200 200 200 128 128 128 255 255 200 200 200 75 75 175 175 175 225 225 225 75 75 75 100 175 175 100 100 100 225 225 75 75 100 75 75 75 35 35 35 0 0 0 35 35 35 35 0 0 0 35 35 35 75 75 75 75 100 100 100 200 200 200 200
  • 24. imread() – reading an image with different postfixes imresize() – resizing an image to any given size figure – opening a new graphical window subplot(#of row, # of col, location) – showing different plots/images in one graphical window imshow() – displaying an image
  • 25. im=imread('obelix.jpg'); im=rgb2gray(imread('obelix.jpg')); im1=imresize(im, [1024 1024]); im2=imresize(im1, [1024 1024]/2); im3=imresize(im1, [1024 1024]/4); im4=imresize(im1, [1024 1024]/8); im5=imresize(im1, [1024 1024]/16); im6=imresize(im1, [1024 1024]/32); figure;imshow(im1) figure;imshow(im2) figure;imshow(im3) figure;imshow(im4) figure;imshow(im5)
  • 27. Quantization 8-bit 7-bit 6-bit 5-bit 4-bit 3-bit 2-bit 1-bit