SlideShare a Scribd company logo
P R ES EN T ED BY
EM A N T A R EK
Digital Image
Processing
An Introduction to Digital Image Processing
with GNU Octave
2
1. Binary: Each pixel is just black or white. Since there are only two possible
values for each pixel (0,1), we only need one bit per pixel.
2. Grayscale: Each pixel is a shade of gray, normally from 0 (black) to 255
(white). This range means that each pixel can be represented by eight bits,
or exactly one byte. Other greyscale ranges are used, but generally they are
a power of 2.
3. True Color, or RGB: Each pixel has a particular color; that color is described
by the amount of red, green and blue in it. If each of these components has
a range 0–255, this gives a total of 2563 different possible colors. Such an
image is a “stack” of three matrices; representing the red, green and blue
values for each pixel. This means that for every pixel there correspond 3
values.
Types of digital image
3
1. Binary Image
• Binary: two possible values for each pixel, we only need one bit per
pixel.
• Each pixel is just black or white.
4
2. Grayscale Image
 Grayscale: Each pixel is a shade of grey, normally from .
 means that each pixel can be represented by eight bits, or exactly one
byte.
5
3. Color Image
 True color or RGB: here each pixel has a particular color, that color
being described by the amount of red, green and blue in it.
 Such an image may be considered as consisting of a stack of three
matrices; representing the red, green and blue values for each pixel.
 This means that for every pixel there correspond three values.
6
4. Indexed Image
 Indexed: Most color images only have a small subset of the more than
sixteen million possible colors.
 For convenience of storage and le handling, the image has an
associated color map.
7
Image Types
8
Example 4
Given the image ’’Lion.jpg’’, write a Matlab program to generate all
different image types and display all of them.
9
Example 5
Write a Matlab program that read an RGB image then separate it’s
three color channels.
10
Example 5 Cont.
Write a Matlab program that read an RGB image then separate it’s
three color channels.
11
Example 5 Cont.
Write a Matlab program that read an RGB image then separate it’s
three color channels.
12
Example 6
Convert intensity image to index image
gray2ind - intensity image to index image
A=Imread(‘ cameraman.tif’);
[indimg,map]=Gray2ind(A);
Indexed image
Grayscale image
13
Example 6 Cont.
Convert index image to intensity image
ind2gray - indexed image to intensity image
Code
Load trees
Imshow(X,map)
Grayimg=Ind2gray(X,map);
Imshow(Grayimg)
Indexed image
Grayscale image
14
Impixel(i,j) function
 A useful function for obtaining RGB values is impixel
returns the red, green, and blue values of the
pixel at column 200, row 100.
 This command also applies to grayscale images:
return three values, but since g is a single
two-dimensionalmatrix, all three values
will be the same.
15
Iminfo() function
16
Iminfo() function
we can see :
 the size of the image in pixels,
 the size of the file (in bytes),
 the number of bits per pixel (this is given by BitDepth),
 and the color type (in this case indexed).
17
Simultaneous Contrast
There are a number of things to bear in mind:
Observed intensities vary as to the background.
18
Example 7
19
 Spatial resolution is the density of pixels over the image:
 The greater the spatial resolution, the more pixels are used
to display the image.
 We can experiment with spatial resolution
with imresize function.
Suppose we have an 256*256 8-bit
grayscale image saved to the matrix x.
Then the command:
 will halve the size of the image….
Spatial Resolution
20
 B=imresize(A,scale)
 If scale is between 0 and 1 the return is less than the actual size.
 If scale is greater than 1the return is greater than the actual size.
Imresize() Function
21
 Greyscale images can be transformed into a sequence of
binary images by breaking them up into their bit-planes.
 We consider the grey value of each pixel of an 8-bit image
as an 8-bit binary word.
 The 0th bit plane consists of the last bit of each grey value.
 Since this bit has the least effect (least significant bit
plane).
 The 7th bit plane consists of the first bit in each value (most
significant bit plane).
Bit Planes
22
Bit plane Slicing
Instead of highlighting gray level images, highlight the contribution
made by specific bits s to total image appearance
23
Bit plane Slicing
plane 0  contains the lowest order bit of all the pixels in the image.
plane 7  contains the highest order bit of all the pixels in the image.
24
Bit plane Slicing
25
Bit plane Slicing
26
Example 8
Write a Matlab program that generate all bit planes of a gray scale
image
27
Example 8 Cont.
28
Bit plane Slicing
• Image reconstruction using n bit planes

More Related Content

What's hot

Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
Moe Moe Myint
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
Hemantha Kulathilake
 
Image compression .
Image compression .Image compression .
Image compression .
Payal Vishwakarma
 
Digital image processing ppt
Digital image processing pptDigital image processing ppt
Digital image processing ppt
khanam22
 
Super resolution from a single image
Super resolution from a single imageSuper resolution from a single image
Super resolution from a single image
Lakkhana Mallikarachchi
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
lavanya marichamy
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
A B Shinde
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image Processing
VARUN KUMAR
 
Edge detection-LOG
Edge detection-LOGEdge detection-LOG
Edge detection-LOG
Ankita Khadsare
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
AnupriyaDurai
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
Poonam Seth
 
Image super resolution
Image super resolutionImage super resolution
Image super resolution
Akshay Hazare
 
Content Based Image Retrieval
Content Based Image Retrieval Content Based Image Retrieval
Content Based Image Retrieval
Swati Chauhan
 
Deblurring of Digital Image PPT
Deblurring of Digital Image PPTDeblurring of Digital Image PPT
Deblurring of Digital Image PPT
Syed Atif Naseem
 
introduction to colors in images and videos
introduction to colors in images and videosintroduction to colors in images and videos
introduction to colors in images and videos
wasrse
 
Enhanced Deep Residual Networks for Single Image Super-Resolution
Enhanced Deep Residual Networks for Single Image Super-ResolutionEnhanced Deep Residual Networks for Single Image Super-Resolution
Enhanced Deep Residual Networks for Single Image Super-Resolution
NAVER Engineering
 
color image processing
color image processingcolor image processing
color image processing
HemanthvenkataSaiA
 
05 histogram processing DIP
05 histogram processing DIP05 histogram processing DIP
05 histogram processing DIP
babak danyal
 
Presentation of Lossy compression
Presentation of Lossy compressionPresentation of Lossy compression
Presentation of Lossy compression
Omar Ghazi
 
point operations in image processing
point operations in image processingpoint operations in image processing
point operations in image processing
Ramachendran Logarajah
 

What's hot (20)

Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
 
Image compression .
Image compression .Image compression .
Image compression .
 
Digital image processing ppt
Digital image processing pptDigital image processing ppt
Digital image processing ppt
 
Super resolution from a single image
Super resolution from a single imageSuper resolution from a single image
Super resolution from a single image
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image Processing
 
Edge detection-LOG
Edge detection-LOGEdge detection-LOG
Edge detection-LOG
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
Image super resolution
Image super resolutionImage super resolution
Image super resolution
 
Content Based Image Retrieval
Content Based Image Retrieval Content Based Image Retrieval
Content Based Image Retrieval
 
Deblurring of Digital Image PPT
Deblurring of Digital Image PPTDeblurring of Digital Image PPT
Deblurring of Digital Image PPT
 
introduction to colors in images and videos
introduction to colors in images and videosintroduction to colors in images and videos
introduction to colors in images and videos
 
Enhanced Deep Residual Networks for Single Image Super-Resolution
Enhanced Deep Residual Networks for Single Image Super-ResolutionEnhanced Deep Residual Networks for Single Image Super-Resolution
Enhanced Deep Residual Networks for Single Image Super-Resolution
 
color image processing
color image processingcolor image processing
color image processing
 
05 histogram processing DIP
05 histogram processing DIP05 histogram processing DIP
05 histogram processing DIP
 
Presentation of Lossy compression
Presentation of Lossy compressionPresentation of Lossy compression
Presentation of Lossy compression
 
point operations in image processing
point operations in image processingpoint operations in image processing
point operations in image processing
 

Similar to Sec 2.pdf

Sec 2.pptx
Sec 2.pptxSec 2.pptx
Sec 2.pptx
HebaSamy22
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representation
Mazin Alwaaly
 
Unit i mm_chap3_graphics and image data representation
Unit i mm_chap3_graphics and image data representationUnit i mm_chap3_graphics and image data representation
Unit i mm_chap3_graphics and image data representation
Eellekwameowusu
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
ssuserff72e4
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
ssuserff72e4
 
Spatial and tonal resolution
Spatial and tonal resolutionSpatial and tonal resolution
Spatial and tonal resolution
SIES GST
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
Ankur Nanda
 
RGB Color Model and Monitor Resolution
RGB Color Model and Monitor ResolutionRGB Color Model and Monitor Resolution
RGB Color Model and Monitor Resolution
Adya Tiwari
 
Multimedia digital images
 Multimedia  digital images Multimedia  digital images
Multimedia digital images
Mohammad Dwikat
 
Image processing report
Image processing reportImage processing report
Image processing report
Siddhesh Chavan
 
Programming in matlab lesson5
Programming in matlab lesson5Programming in matlab lesson5
Programming in matlab lesson5
najmah17
 
Matlab practical ---2.pdf
Matlab practical ---2.pdfMatlab practical ---2.pdf
Matlab practical ---2.pdf
Central university of Haryana
 
Chapter 3 data representations
Chapter 3 data representationsChapter 3 data representations
Chapter 3 data representations
ABDUmomo
 
Comprehensive Infrared Image Edge detection Algorithm
Comprehensive Infrared Image Edge detection AlgorithmComprehensive Infrared Image Edge detection Algorithm
Comprehensive Infrared Image Edge detection Algorithm
CSCJournals
 
Images in matlab
Images in matlabImages in matlab
Images in matlab
Ali Alvi
 
Color
ColorColor
Color
FNian
 
Color Image Processing,Digital Image processing
Color Image Processing,Digital Image processingColor Image Processing,Digital Image processing
Color Image Processing,Digital Image processing
AbdullahNadeem78
 
Bitmap vs vectors image
Bitmap vs vectors imageBitmap vs vectors image
Bitmap vs vectors image
31angel
 
WEB I - 08 - Digital Media
WEB I - 08 - Digital MediaWEB I - 08 - Digital Media
WEB I - 08 - Digital Media
Randy Connolly
 
06 cie552 image_manipulation
06 cie552 image_manipulation06 cie552 image_manipulation
06 cie552 image_manipulation
Elsayed Hemayed
 

Similar to Sec 2.pdf (20)

Sec 2.pptx
Sec 2.pptxSec 2.pptx
Sec 2.pptx
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representation
 
Unit i mm_chap3_graphics and image data representation
Unit i mm_chap3_graphics and image data representationUnit i mm_chap3_graphics and image data representation
Unit i mm_chap3_graphics and image data representation
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
 
Spatial and tonal resolution
Spatial and tonal resolutionSpatial and tonal resolution
Spatial and tonal resolution
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
RGB Color Model and Monitor Resolution
RGB Color Model and Monitor ResolutionRGB Color Model and Monitor Resolution
RGB Color Model and Monitor Resolution
 
Multimedia digital images
 Multimedia  digital images Multimedia  digital images
Multimedia digital images
 
Image processing report
Image processing reportImage processing report
Image processing report
 
Programming in matlab lesson5
Programming in matlab lesson5Programming in matlab lesson5
Programming in matlab lesson5
 
Matlab practical ---2.pdf
Matlab practical ---2.pdfMatlab practical ---2.pdf
Matlab practical ---2.pdf
 
Chapter 3 data representations
Chapter 3 data representationsChapter 3 data representations
Chapter 3 data representations
 
Comprehensive Infrared Image Edge detection Algorithm
Comprehensive Infrared Image Edge detection AlgorithmComprehensive Infrared Image Edge detection Algorithm
Comprehensive Infrared Image Edge detection Algorithm
 
Images in matlab
Images in matlabImages in matlab
Images in matlab
 
Color
ColorColor
Color
 
Color Image Processing,Digital Image processing
Color Image Processing,Digital Image processingColor Image Processing,Digital Image processing
Color Image Processing,Digital Image processing
 
Bitmap vs vectors image
Bitmap vs vectors imageBitmap vs vectors image
Bitmap vs vectors image
 
WEB I - 08 - Digital Media
WEB I - 08 - Digital MediaWEB I - 08 - Digital Media
WEB I - 08 - Digital Media
 
06 cie552 image_manipulation
06 cie552 image_manipulation06 cie552 image_manipulation
06 cie552 image_manipulation
 

Recently uploaded

Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 

Recently uploaded (20)

Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 

Sec 2.pdf

  • 1. P R ES EN T ED BY EM A N T A R EK Digital Image Processing An Introduction to Digital Image Processing with GNU Octave
  • 2. 2 1. Binary: Each pixel is just black or white. Since there are only two possible values for each pixel (0,1), we only need one bit per pixel. 2. Grayscale: Each pixel is a shade of gray, normally from 0 (black) to 255 (white). This range means that each pixel can be represented by eight bits, or exactly one byte. Other greyscale ranges are used, but generally they are a power of 2. 3. True Color, or RGB: Each pixel has a particular color; that color is described by the amount of red, green and blue in it. If each of these components has a range 0–255, this gives a total of 2563 different possible colors. Such an image is a “stack” of three matrices; representing the red, green and blue values for each pixel. This means that for every pixel there correspond 3 values. Types of digital image
  • 3. 3 1. Binary Image • Binary: two possible values for each pixel, we only need one bit per pixel. • Each pixel is just black or white.
  • 4. 4 2. Grayscale Image  Grayscale: Each pixel is a shade of grey, normally from .  means that each pixel can be represented by eight bits, or exactly one byte.
  • 5. 5 3. Color Image  True color or RGB: here each pixel has a particular color, that color being described by the amount of red, green and blue in it.  Such an image may be considered as consisting of a stack of three matrices; representing the red, green and blue values for each pixel.  This means that for every pixel there correspond three values.
  • 6. 6 4. Indexed Image  Indexed: Most color images only have a small subset of the more than sixteen million possible colors.  For convenience of storage and le handling, the image has an associated color map.
  • 8. 8 Example 4 Given the image ’’Lion.jpg’’, write a Matlab program to generate all different image types and display all of them.
  • 9. 9 Example 5 Write a Matlab program that read an RGB image then separate it’s three color channels.
  • 10. 10 Example 5 Cont. Write a Matlab program that read an RGB image then separate it’s three color channels.
  • 11. 11 Example 5 Cont. Write a Matlab program that read an RGB image then separate it’s three color channels.
  • 12. 12 Example 6 Convert intensity image to index image gray2ind - intensity image to index image A=Imread(‘ cameraman.tif’); [indimg,map]=Gray2ind(A); Indexed image Grayscale image
  • 13. 13 Example 6 Cont. Convert index image to intensity image ind2gray - indexed image to intensity image Code Load trees Imshow(X,map) Grayimg=Ind2gray(X,map); Imshow(Grayimg) Indexed image Grayscale image
  • 14. 14 Impixel(i,j) function  A useful function for obtaining RGB values is impixel returns the red, green, and blue values of the pixel at column 200, row 100.  This command also applies to grayscale images: return three values, but since g is a single two-dimensionalmatrix, all three values will be the same.
  • 16. 16 Iminfo() function we can see :  the size of the image in pixels,  the size of the file (in bytes),  the number of bits per pixel (this is given by BitDepth),  and the color type (in this case indexed).
  • 17. 17 Simultaneous Contrast There are a number of things to bear in mind: Observed intensities vary as to the background.
  • 19. 19  Spatial resolution is the density of pixels over the image:  The greater the spatial resolution, the more pixels are used to display the image.  We can experiment with spatial resolution with imresize function. Suppose we have an 256*256 8-bit grayscale image saved to the matrix x. Then the command:  will halve the size of the image…. Spatial Resolution
  • 20. 20  B=imresize(A,scale)  If scale is between 0 and 1 the return is less than the actual size.  If scale is greater than 1the return is greater than the actual size. Imresize() Function
  • 21. 21  Greyscale images can be transformed into a sequence of binary images by breaking them up into their bit-planes.  We consider the grey value of each pixel of an 8-bit image as an 8-bit binary word.  The 0th bit plane consists of the last bit of each grey value.  Since this bit has the least effect (least significant bit plane).  The 7th bit plane consists of the first bit in each value (most significant bit plane). Bit Planes
  • 22. 22 Bit plane Slicing Instead of highlighting gray level images, highlight the contribution made by specific bits s to total image appearance
  • 23. 23 Bit plane Slicing plane 0  contains the lowest order bit of all the pixels in the image. plane 7  contains the highest order bit of all the pixels in the image.
  • 26. 26 Example 8 Write a Matlab program that generate all bit planes of a gray scale image
  • 28. 28 Bit plane Slicing • Image reconstruction using n bit planes