SlideShare une entreprise Scribd logo
1  sur  32
Vision system
   (image processing)
By: karim ahmed abuamu
Image Representation



A digital image is a representation of a two-dimensional image as
 a finite set of digital values, called picture elements or pixels

The image is stored in computer memory as 2D array of integers

Digital images can be created by a variety of input devices and
 techniques:

   digital cameras,
   scanners,
   coordinate measuring machines etc.
Representation of Digital Images
Types of Images


Digital images can be classified according to number and nature
 of those samples
  Binary
  Grayscale
  Color
Binary Images


A binary image is a digital image that has only two possible
 values for each pixel

Binary images are also called bi-level or two-level


Binary images often arise in digital image processing as masks or
 as the result of certain operations such as segmentation,
 thresholding.
Grayscale Image   Binary Image
Grayscale Images


A grayscale digital image is an image in which the value of each
 pixel is a single sample.

Displayed images of this sort are typically composed of shades of
 gray, varying from black at the weakest intensity to white at the
 strongest.

The values of intensity image ranges from 0 to 255.
Grayscale Image
True color images


A true color image is stored as an m-by-n-by-3 data array that
 defines red, green, and blue color components for each individual
 pixel.

The RGB color space is commonly used in computer displays
True color Image
Image segmentation

In computer vision, image segmentation is the process of partitioning a
digital image into multiple segments (sets of pixels, also known as superpixels).

The goal of segmentation is to simplify and/or change the representation of an image
into something that is more meaningful and easier to analyze.

Image segmentation is typically used to locate objects and boundaries (lines, curves,
etc.) in images. More precisely, image segmentation is the process of assigning a
label to every pixel in an image such that pixels with the same label share certain
visual characteristics.
Histograms

 o A tool that is used often in image analysis .
o The (intensity or brightness) histogram shows how many
     times a particular grey level appears in an image.
 o For example, 0 - black, 255 – white.
                            7

    0   1   1   2   4       6
                            5

    2   1   0   0   2       4
                            3
    5   2   0   0   4       2
                            1
    1   1   2   4   1       0
                                0   1      2   3    4   5   6


        image                           histogram
Histogram Features


An image has low contrast when the complete range of possible
values is not used. Inspection of the histogram shows this
lack of contrast.
Histogram Equalization
Thresholding (image processing)


Threshold converts each pixel into black, white or unchanged depending on
whether the original color value is within the threshold range.

Thresholding is usually the first step in any segmentation




Single value thresholding can be given mathematically as follows:


                     1 if f ( x, y ) > T
        g ( x, y ) = 
                     0 if f ( x, y ) ≤ T
Imagine a poker playing robot that needs to visually interpret the cards in
its hand




             Original Image                            Thresholded Image
If you get the threshold wrong the results can be disastrous




           Threshold Too Low                          Threshold Too High
Basic Global Thresholding

 Based on the histogram of an image Partition the image histogram using a
 single global threshold


 The success of this technique very strongly depends on how well the histogram
 can be partitioned

The basic global threshold, T, is calculated as follows:

       1.   Select an initial estimate for T (typically the average grey level in the
            image)
       2.   Segment the image using T to produce two groups of pixels: G1
            consisting of pixels with grey levels >T and G2 consisting pixels with grey
            levels ≤ T
       3.   Compute the average grey levels of pixels in G1 to give μ1 and G2 to give
            μ2
4.   Compute a new threshold value:

                      µ1 + µ 2
                   T=
                         2
       5.   Repeat steps 2 – 4 until the difference in T in successive iterations is
            less than a predefined limit T∞




This algorithm works very well for finding thresholds when the histogram is suitable
Thresholding Example 1
Thresholding Example 2
Problems With Single Value Thresholding


Single value thresholding only works for bimodal histograms
Images with other kinds of histograms need more than a single threshold
Single value thresholding only works for bimodal histograms
Images with other kinds of histograms need more than a single threshold
Thank You

Contenu connexe

Tendances

Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
Image segmentation based on color
Image segmentation based on colorImage segmentation based on color
Image segmentation based on coloreSAT Journals
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image CompressionKalyan Acharjya
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing PresentationRevanth Chimmani
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram ProcessingAmnaakhaan
 
Dilation and erosion
Dilation and erosionDilation and erosion
Dilation and erosionAswin Pv
 
Point processing
Point processingPoint processing
Point processingpanupriyaa7
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: BasicsA B Shinde
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation pptGichelle Amon
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processingVinayak Narayanan
 

Tendances (20)

Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Image segmentation based on color
Image segmentation based on colorImage segmentation based on color
Image segmentation based on color
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Dilation and erosion
Dilation and erosionDilation and erosion
Dilation and erosion
 
Point processing
Point processingPoint processing
Point processing
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Halftoning in Computer Graphics
Halftoning  in Computer GraphicsHalftoning  in Computer Graphics
Halftoning in Computer Graphics
 
digital image processing
digital image processingdigital image processing
digital image processing
 
3 d display-methods
3 d display-methods3 d display-methods
3 d display-methods
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Image Segmentation
 Image Segmentation Image Segmentation
Image Segmentation
 

Similaire à Image processing

ModuleII.ppt
ModuleII.pptModuleII.ppt
ModuleII.pptSKILL2021
 
Histogram based Enhancement
Histogram based Enhancement Histogram based Enhancement
Histogram based Enhancement Vivek V
 
Histogram based enhancement
Histogram based enhancementHistogram based enhancement
Histogram based enhancementliba manopriya.J
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1shabanam tamboli
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptShabanamTamboli1
 
Image Segmentation.ppt
Image Segmentation.pptImage Segmentation.ppt
Image Segmentation.pptakshaya870130
 
project presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxproject presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxNiladriBhattacharjee10
 
Multimedia digital images
 Multimedia  digital images Multimedia  digital images
Multimedia digital imagesMohammad Dwikat
 
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...IJMER
 
Spatial and tonal resolution
Spatial and tonal resolutionSpatial and tonal resolution
Spatial and tonal resolutionSIES GST
 
Dip digital image 3
Dip digital image 3Dip digital image 3
Dip digital image 3Shajun Nisha
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...Hemantha Kulathilake
 
Icdecs 2011
Icdecs 2011Icdecs 2011
Icdecs 2011garudht
 

Similaire à Image processing (20)

h.pdf
h.pdfh.pdf
h.pdf
 
ModuleII.ppt
ModuleII.pptModuleII.ppt
ModuleII.ppt
 
ModuleII.ppt
ModuleII.pptModuleII.ppt
ModuleII.ppt
 
ModuleII.ppt
ModuleII.pptModuleII.ppt
ModuleII.ppt
 
Histogram based Enhancement
Histogram based Enhancement Histogram based Enhancement
Histogram based Enhancement
 
Histogram based enhancement
Histogram based enhancementHistogram based enhancement
Histogram based enhancement
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.ppt
 
Image Segmentation.ppt
Image Segmentation.pptImage Segmentation.ppt
Image Segmentation.ppt
 
IR.pptx
IR.pptxIR.pptx
IR.pptx
 
DIP.ppt
DIP.pptDIP.ppt
DIP.ppt
 
project presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxproject presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptx
 
Multimedia digital images
 Multimedia  digital images Multimedia  digital images
Multimedia digital images
 
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
 
Spatial and tonal resolution
Spatial and tonal resolutionSpatial and tonal resolution
Spatial and tonal resolution
 
Dip digital image 3
Dip digital image 3Dip digital image 3
Dip digital image 3
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Icdecs 2011
Icdecs 2011Icdecs 2011
Icdecs 2011
 
CLASS 1.1.pptx
CLASS 1.1.pptxCLASS 1.1.pptx
CLASS 1.1.pptx
 

Plus de abuamo

Electronic cooling
Electronic coolingElectronic cooling
Electronic coolingabuamo
 
Hydraulic cushions
Hydraulic cushionsHydraulic cushions
Hydraulic cushionsabuamo
 
GENETIC ALGORITHM ( GA )
GENETIC ALGORITHM ( GA )GENETIC ALGORITHM ( GA )
GENETIC ALGORITHM ( GA )abuamo
 
CONTINOUS VARIABLE TRANSMISSION
CONTINOUS  VARIABLE  TRANSMISSIONCONTINOUS  VARIABLE  TRANSMISSION
CONTINOUS VARIABLE TRANSMISSIONabuamo
 
Quarter model of passive suspension system with simscape
Quarter model of passive suspension system with simscapeQuarter model of passive suspension system with simscape
Quarter model of passive suspension system with simscapeabuamo
 
Semiconductors materials
Semiconductors materialsSemiconductors materials
Semiconductors materialsabuamo
 

Plus de abuamo (6)

Electronic cooling
Electronic coolingElectronic cooling
Electronic cooling
 
Hydraulic cushions
Hydraulic cushionsHydraulic cushions
Hydraulic cushions
 
GENETIC ALGORITHM ( GA )
GENETIC ALGORITHM ( GA )GENETIC ALGORITHM ( GA )
GENETIC ALGORITHM ( GA )
 
CONTINOUS VARIABLE TRANSMISSION
CONTINOUS  VARIABLE  TRANSMISSIONCONTINOUS  VARIABLE  TRANSMISSION
CONTINOUS VARIABLE TRANSMISSION
 
Quarter model of passive suspension system with simscape
Quarter model of passive suspension system with simscapeQuarter model of passive suspension system with simscape
Quarter model of passive suspension system with simscape
 
Semiconductors materials
Semiconductors materialsSemiconductors materials
Semiconductors materials
 

Dernier

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Dernier (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

Image processing

  • 1. Vision system (image processing) By: karim ahmed abuamu
  • 2. Image Representation A digital image is a representation of a two-dimensional image as a finite set of digital values, called picture elements or pixels The image is stored in computer memory as 2D array of integers Digital images can be created by a variety of input devices and techniques:  digital cameras,  scanners,  coordinate measuring machines etc.
  • 4. Types of Images Digital images can be classified according to number and nature of those samples  Binary  Grayscale  Color
  • 5. Binary Images A binary image is a digital image that has only two possible values for each pixel Binary images are also called bi-level or two-level Binary images often arise in digital image processing as masks or as the result of certain operations such as segmentation, thresholding.
  • 6. Grayscale Image Binary Image
  • 7. Grayscale Images A grayscale digital image is an image in which the value of each pixel is a single sample. Displayed images of this sort are typically composed of shades of gray, varying from black at the weakest intensity to white at the strongest. The values of intensity image ranges from 0 to 255.
  • 9. True color images A true color image is stored as an m-by-n-by-3 data array that defines red, green, and blue color components for each individual pixel. The RGB color space is commonly used in computer displays
  • 11. Image segmentation In computer vision, image segmentation is the process of partitioning a digital image into multiple segments (sets of pixels, also known as superpixels). The goal of segmentation is to simplify and/or change the representation of an image into something that is more meaningful and easier to analyze. Image segmentation is typically used to locate objects and boundaries (lines, curves, etc.) in images. More precisely, image segmentation is the process of assigning a label to every pixel in an image such that pixels with the same label share certain visual characteristics.
  • 12. Histograms o A tool that is used often in image analysis . o The (intensity or brightness) histogram shows how many times a particular grey level appears in an image. o For example, 0 - black, 255 – white. 7 0 1 1 2 4 6 5 2 1 0 0 2 4 3 5 2 0 0 4 2 1 1 1 2 4 1 0 0 1 2 3 4 5 6 image histogram
  • 13. Histogram Features An image has low contrast when the complete range of possible values is not used. Inspection of the histogram shows this lack of contrast.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 22.
  • 23. Thresholding (image processing) Threshold converts each pixel into black, white or unchanged depending on whether the original color value is within the threshold range. Thresholding is usually the first step in any segmentation Single value thresholding can be given mathematically as follows: 1 if f ( x, y ) > T g ( x, y ) =  0 if f ( x, y ) ≤ T
  • 24. Imagine a poker playing robot that needs to visually interpret the cards in its hand Original Image Thresholded Image
  • 25. If you get the threshold wrong the results can be disastrous Threshold Too Low Threshold Too High
  • 26. Basic Global Thresholding Based on the histogram of an image Partition the image histogram using a single global threshold The success of this technique very strongly depends on how well the histogram can be partitioned The basic global threshold, T, is calculated as follows: 1. Select an initial estimate for T (typically the average grey level in the image) 2. Segment the image using T to produce two groups of pixels: G1 consisting of pixels with grey levels >T and G2 consisting pixels with grey levels ≤ T 3. Compute the average grey levels of pixels in G1 to give μ1 and G2 to give μ2
  • 27. 4. Compute a new threshold value: µ1 + µ 2 T= 2 5. Repeat steps 2 – 4 until the difference in T in successive iterations is less than a predefined limit T∞ This algorithm works very well for finding thresholds when the histogram is suitable
  • 30. Problems With Single Value Thresholding Single value thresholding only works for bimodal histograms Images with other kinds of histograms need more than a single threshold
  • 31. Single value thresholding only works for bimodal histograms Images with other kinds of histograms need more than a single threshold