SlideShare a Scribd company logo
1 of 25
Machine Vision
An Introduction

Presented to you by                         1
© roboVITics | Mayank Prasad, 2012   8/26/2012
• Image & Image Processing
• Image Acquisition, Sampling and Quantization
• Basic Concepts
    • Types of Images – Vector & Raster
    • Colour Space, Pixels, Resolution, Depth, Channels
    • Neighborhood, Connectivity




Outline                                                         2
© roboVITics | Mayank Prasad, 2012                        8/26/2012
• 2D representation of 3D real world at any instant
• Extract useful information from the image about the real
  world – Image Processing
• Two types of images
    • Vector Images
    • Raster Images

Raster Image – Stores images
              in matrix form




Image                                                        3
© roboVITics | Mayank Prasad, 2012                     8/26/2012
BASIC CONCEPTS
Basic Concepts related to Image Processing
                                                   4
© roboVITics | Mayank Prasad, 2012           8/26/2012
Digital Image – A multidimensional array of numbers
                                          Aspect Ratio – Width:Height
                                          Resolution – Width×Height




                                                                 Pixel – Smallest Visual Element




                                                                            10 10 16 28
Channel – No. of samples per point                                             65 70 56 43
                                                                             9 6 9926703756
Single Plane – Grayscale/B&W Images                                           32 54 96 67         78
                                                                            15 256013902296
Three Planes – Colour Images                                                   21 54 47 42        67
                                                                            32 158587853943       92
                                                                              54 65 65 39
                                                                                          5
     Concepts
                                                                                  32 65 87        99



     © roboVITics | Mayank Prasad, 2012                                               8/26/2012
• Pixels are tiny little dots that form the image. They are
  the smallest visual elements that can be seen.
• When an image is stored, the image file contains the
  following information:
    • Pixel Location
    • Pixel Intensity
• Resolution – total number of pixels in an image
• Greater resolution  Greater detail  Greater processing
  power required




Pixels & Resolution                                            6
© roboVITics | Mayank Prasad, 2012                       8/26/2012
• An image that is 2048 pixels in width and 1536 pixels in
  height has a total of 2048×1536 = 3,145,728 pixels or 3.1
  megapixels.
• One could refer to it as 2048-by-1536 or a 3.1-megapixel
  image.




A 3.1MP Image                                                 7
© roboVITics | Mayank Prasad, 2012                     8/26/2012
• Binary (Black & White) Image
    • Only two colours – black (0) & white (1)
                            0        1
• Grayscale Image
    • Several shades ranging in between black and white


                   0                       1
                   0                     255

• Colour Image
    • Different Colour Spaces


Image Representation                                            8
© roboVITics | Mayank Prasad, 2012                        8/26/2012
• RGB Colour Space – Red-Green-Blue
• HSV Colour Space – Hue-Saturation-Value
• Y’CrCb Colour Space




Colour Spaces                                     9
© roboVITics | Mayank Prasad, 2012          8/26/2012
Courtesy aishack.in




RGB                                      10
© roboVITics | Mayank Prasad, 2012   8/26/2012
Courtesy aishack.in




HSV                                       11
© roboVITics | Mayank Prasad, 2012   8/26/2012
RGB                                  HSV
• Advantages                         • Advantages
    • Intuitive                        • Illumination independent
    • Easier to use                    • Easier image processing
    • Widely used                    • Disadvantages
• Disadvantages                        • Not so intuitive
    • Image processing is tough        • Difficult to understand




RGB v/s HSV                                                             12
© roboVITics | Mayank Prasad, 2012                                 8/26/2012
•   Y = Luminescence or intensity
•   Cr = RED component minus reference value
•   Cb = BLUE component minus reference value
•   Used in video processing
•   Frame grabbers return images from a camera in this
    format




Y’CrCb                                                       13
© roboVITics | Mayank Prasad, 2012                       8/26/2012
• Depth represents the number of shades of a particular
  colour used in the formation of an image
• Applies to grayscale as well as colour images
    •   1-bit : 21 = 2 shades (black & white)
    •   8-bit : 28 = 256 shades
    •   24-bit : 224 = 16,777,216 shades
    •   64-bit : 264 = 18,446,744,073,709,551,616 shades

                         8-bit                    16-bit


         0                             1   0                   1
         0                           255   0               65535

Depth                                                            14
© roboVITics | Mayank Prasad, 2012                          8/26/2012
• Low level task
    • Image Acquisition (sensing)
    • Preprocessing (noise reduction & enhancement)
• Medium level task
    • Segmentation (separating regions)
    • Description (characteristic features)
    • Recognition (identify regions)
• High level task
    • Interpretation (assign meanings)




Image Processing                                          15
© roboVITics | Mayank Prasad, 2012                    8/26/2012
• Use Webcams, Video Cameras, Digital Cameras
• Traditionally, Vidicon Camera was used
• Nowadays, CCDs – Charge-Coupled Devices and CMOS
  Cameras are used




Image Acquisition                                 16
© roboVITics | Mayank Prasad, 2012            8/26/2012
17
© roboVITics | Mayank Prasad, 2012   8/26/2012
Image Acquisition System




                                                                    18
© roboVITics | Mayank Prasad, 2012                              8/26/2012
Sampling & Quantization                  19
© roboVITics | Mayank Prasad, 2012   8/26/2012
•




                                     D   4   D   8      8        8

                                     4   p   4   8      p        8

Neighborhood                         D   4   D   8      820 8
© roboVITics | Mayank Prasad, 2012                   8/26/2012
•




                                     V = (65,66,67,68,69)
                                                        q
                                          62   69             69
                                               p
                                         64        67         68

Connectivity                              65       70         7221

© roboVITics | Mayank Prasad, 2012                          8/26/2012
q               n


                                          p               m




                                     p and q are 8-connected
                                     m and n are m-connected




Connectivity                                                           22
© roboVITics | Mayank Prasad, 2012                                 8/26/2012
References                           Image Courtesy
• Lectures on Robotics by            • Digital Image Processing
  Prof. B. Seth, Mech.                 by Gonzalez and Woods,
  Engg, IIT-B (by C-DEEP)              Prentice Hall
• Digital Image Processing           • Learning OpenCV by
                                       Gary Bradski and Adrian
  by Gonzalez and Woods,               Kaehler, O’Reilly Media,
  Prentice Hall                        Inc.
• AI Shack –                         • AI Shack –
  www.aishack.in                       www.aishack.in




Acknowledgements                                               23
© roboVITics | Mayank Prasad, 2012                         8/26/2012
UP NEXT: MODULE 2
Introduction to OpenCV and MATLAB
                                         24
© roboVITics | Mayank Prasad, 2012   8/26/2012
• Mayank Prasad
            President, roboVITics
            mayank@robovitics.in
• Akshat Wahi
            Asst. Project Manager, roboVITics
            +91 909 250 3053
            akshat@core.robovitics.in
• Akash Kashyap
            President, TEC – The Electronics Club of VIT
            akash130791@gmail.com




Contacts                                                       25
© roboVITics | Mayank Prasad, 2012                         8/26/2012

More Related Content

Viewers also liked

Machine vision systems ppt
Machine vision systems pptMachine vision systems ppt
Machine vision systems ppt
Akash Maurya
 

Viewers also liked (9)

Vision system
Vision systemVision system
Vision system
 
APPLICATIONS OF MACHINE VISION
APPLICATIONS OF MACHINE VISIONAPPLICATIONS OF MACHINE VISION
APPLICATIONS OF MACHINE VISION
 
3d Machine Vision Systems Paper Presentation
3d  Machine Vision Systems Paper Presentation3d  Machine Vision Systems Paper Presentation
3d Machine Vision Systems Paper Presentation
 
fundamentals of machine vision system
fundamentals of machine vision systemfundamentals of machine vision system
fundamentals of machine vision system
 
Machine Vision In Electronic & Semiconductor Industry
Machine Vision In Electronic & Semiconductor IndustryMachine Vision In Electronic & Semiconductor Industry
Machine Vision In Electronic & Semiconductor Industry
 
Machine vision
Machine visionMachine vision
Machine vision
 
Machine vision systems ppt
Machine vision systems pptMachine vision systems ppt
Machine vision systems ppt
 
The Development of Mechatronic Machine Vision System for Inspection Of Cerami...
The Development of Mechatronic Machine Vision System for Inspection Of Cerami...The Development of Mechatronic Machine Vision System for Inspection Of Cerami...
The Development of Mechatronic Machine Vision System for Inspection Of Cerami...
 
The Development of Mechatronic Machine Vision System for Inspection of Cerami...
The Development of Mechatronic Machine Vision System for Inspection of Cerami...The Development of Mechatronic Machine Vision System for Inspection of Cerami...
The Development of Mechatronic Machine Vision System for Inspection of Cerami...
 

More from roboVITics club

More from roboVITics club (7)

How to make a Line Follower Robot
How to make a Line Follower RobotHow to make a Line Follower Robot
How to make a Line Follower Robot
 
RoboCV Module 5: Contours using OpenCV
RoboCV Module 5: Contours using OpenCVRoboCV Module 5: Contours using OpenCV
RoboCV Module 5: Contours using OpenCV
 
RoboCV Module 4: Image Processing Techniques using OpenCV
RoboCV Module 4: Image Processing Techniques using OpenCVRoboCV Module 4: Image Processing Techniques using OpenCV
RoboCV Module 4: Image Processing Techniques using OpenCV
 
RoboCV Module 3: Delving Deeper into OpenCV
RoboCV Module 3: Delving Deeper into OpenCVRoboCV Module 3: Delving Deeper into OpenCV
RoboCV Module 3: Delving Deeper into OpenCV
 
RoboCV Module 2: Introduction to OpenCV and MATLAB
RoboCV Module 2: Introduction to OpenCV and MATLABRoboCV Module 2: Introduction to OpenCV and MATLAB
RoboCV Module 2: Introduction to OpenCV and MATLAB
 
ROBO-SUMO Event Details v1.2
ROBO-SUMO Event Details v1.2ROBO-SUMO Event Details v1.2
ROBO-SUMO Event Details v1.2
 
VIT-EDC Problem Statement v1.2
VIT-EDC Problem Statement v1.2VIT-EDC Problem Statement v1.2
VIT-EDC Problem Statement v1.2
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
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
 
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
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

RoboCV Module 1: Introduction to Machine Vision

  • 1. Machine Vision An Introduction Presented to you by 1 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 2. • Image & Image Processing • Image Acquisition, Sampling and Quantization • Basic Concepts • Types of Images – Vector & Raster • Colour Space, Pixels, Resolution, Depth, Channels • Neighborhood, Connectivity Outline 2 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 3. • 2D representation of 3D real world at any instant • Extract useful information from the image about the real world – Image Processing • Two types of images • Vector Images • Raster Images Raster Image – Stores images in matrix form Image 3 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 4. BASIC CONCEPTS Basic Concepts related to Image Processing 4 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 5. Digital Image – A multidimensional array of numbers Aspect Ratio – Width:Height Resolution – Width×Height Pixel – Smallest Visual Element 10 10 16 28 Channel – No. of samples per point 65 70 56 43 9 6 9926703756 Single Plane – Grayscale/B&W Images 32 54 96 67 78 15 256013902296 Three Planes – Colour Images 21 54 47 42 67 32 158587853943 92 54 65 65 39 5 Concepts 32 65 87 99 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 6. • Pixels are tiny little dots that form the image. They are the smallest visual elements that can be seen. • When an image is stored, the image file contains the following information: • Pixel Location • Pixel Intensity • Resolution – total number of pixels in an image • Greater resolution  Greater detail  Greater processing power required Pixels & Resolution 6 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 7. • An image that is 2048 pixels in width and 1536 pixels in height has a total of 2048×1536 = 3,145,728 pixels or 3.1 megapixels. • One could refer to it as 2048-by-1536 or a 3.1-megapixel image. A 3.1MP Image 7 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 8. • Binary (Black & White) Image • Only two colours – black (0) & white (1) 0 1 • Grayscale Image • Several shades ranging in between black and white 0 1 0 255 • Colour Image • Different Colour Spaces Image Representation 8 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 9. • RGB Colour Space – Red-Green-Blue • HSV Colour Space – Hue-Saturation-Value • Y’CrCb Colour Space Colour Spaces 9 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 10. Courtesy aishack.in RGB 10 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 11. Courtesy aishack.in HSV 11 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 12. RGB HSV • Advantages • Advantages • Intuitive • Illumination independent • Easier to use • Easier image processing • Widely used • Disadvantages • Disadvantages • Not so intuitive • Image processing is tough • Difficult to understand RGB v/s HSV 12 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 13. Y = Luminescence or intensity • Cr = RED component minus reference value • Cb = BLUE component minus reference value • Used in video processing • Frame grabbers return images from a camera in this format Y’CrCb 13 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 14. • Depth represents the number of shades of a particular colour used in the formation of an image • Applies to grayscale as well as colour images • 1-bit : 21 = 2 shades (black & white) • 8-bit : 28 = 256 shades • 24-bit : 224 = 16,777,216 shades • 64-bit : 264 = 18,446,744,073,709,551,616 shades 8-bit 16-bit 0 1 0 1 0 255 0 65535 Depth 14 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 15. • Low level task • Image Acquisition (sensing) • Preprocessing (noise reduction & enhancement) • Medium level task • Segmentation (separating regions) • Description (characteristic features) • Recognition (identify regions) • High level task • Interpretation (assign meanings) Image Processing 15 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 16. • Use Webcams, Video Cameras, Digital Cameras • Traditionally, Vidicon Camera was used • Nowadays, CCDs – Charge-Coupled Devices and CMOS Cameras are used Image Acquisition 16 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 17. 17 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 18. Image Acquisition System 18 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 19. Sampling & Quantization 19 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 20. D 4 D 8 8 8 4 p 4 8 p 8 Neighborhood D 4 D 8 820 8 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 21. V = (65,66,67,68,69) q 62 69 69 p 64 67 68 Connectivity 65 70 7221 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 22. q n p m p and q are 8-connected m and n are m-connected Connectivity 22 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 23. References Image Courtesy • Lectures on Robotics by • Digital Image Processing Prof. B. Seth, Mech. by Gonzalez and Woods, Engg, IIT-B (by C-DEEP) Prentice Hall • Digital Image Processing • Learning OpenCV by Gary Bradski and Adrian by Gonzalez and Woods, Kaehler, O’Reilly Media, Prentice Hall Inc. • AI Shack – • AI Shack – www.aishack.in www.aishack.in Acknowledgements 23 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 24. UP NEXT: MODULE 2 Introduction to OpenCV and MATLAB 24 © roboVITics | Mayank Prasad, 2012 8/26/2012
  • 25. • Mayank Prasad President, roboVITics mayank@robovitics.in • Akshat Wahi Asst. Project Manager, roboVITics +91 909 250 3053 akshat@core.robovitics.in • Akash Kashyap President, TEC – The Electronics Club of VIT akash130791@gmail.com Contacts 25 © roboVITics | Mayank Prasad, 2012 8/26/2012