SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Noise filtering
Noise filteringNoise filtering
Noise filtering
Alaa Ahmed
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
Rushin Shah
 
Dilation and erosion
Dilation and erosionDilation and erosion
Dilation and erosion
Aswin Pv
 

Was ist angesagt? (20)

Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Implements the histogram equalization algorithm
Implements the histogram equalization algorithmImplements the histogram equalization algorithm
Implements the histogram equalization algorithm
 
Noise filtering
Noise filteringNoise filtering
Noise filtering
 
Fundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image ComponentsFundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image Components
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
Digital Image Processing: Digital Image Fundamentals
Digital Image Processing: Digital Image FundamentalsDigital Image Processing: Digital Image Fundamentals
Digital Image Processing: Digital Image Fundamentals
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
NOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSINGNOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSING
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
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)
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Dilation and erosion
Dilation and erosionDilation and erosion
Dilation and erosion
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
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...
 
From Image Processing To Computer Vision
From Image Processing To Computer VisionFrom Image Processing To Computer Vision
From Image Processing To Computer Vision
 

Ähnlich wie Image processing

Image segmentation
Image segmentationImage segmentation
Image segmentation
Deepak Kumar
 

Ähnlich wie 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
 
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
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 

Mehr von abuamo

Electronic cooling
Electronic coolingElectronic cooling
Electronic cooling
abuamo
 
Hydraulic cushions
Hydraulic cushionsHydraulic cushions
Hydraulic cushions
abuamo
 
GENETIC ALGORITHM ( GA )
GENETIC ALGORITHM ( GA )GENETIC ALGORITHM ( GA )
GENETIC ALGORITHM ( GA )
abuamo
 
CONTINOUS VARIABLE TRANSMISSION
CONTINOUS  VARIABLE  TRANSMISSIONCONTINOUS  VARIABLE  TRANSMISSION
CONTINOUS VARIABLE TRANSMISSION
abuamo
 
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
abuamo
 
Semiconductors materials
Semiconductors materialsSemiconductors materials
Semiconductors materials
abuamo
 

Mehr von 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
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

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