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

APPLICATIONS OF MACHINE VISION
APPLICATIONS OF MACHINE VISIONAPPLICATIONS OF MACHINE VISION
APPLICATIONS OF MACHINE VISIONanil badiger
 
3d Machine Vision Systems Paper Presentation
3d  Machine Vision Systems Paper Presentation3d  Machine Vision Systems Paper Presentation
3d Machine Vision Systems Paper Presentationguestac67362
 
Machine Vision In Electronic & Semiconductor Industry
Machine Vision In Electronic & Semiconductor IndustryMachine Vision In Electronic & Semiconductor Industry
Machine Vision In Electronic & Semiconductor IndustryFrancy Abraham
 
Machine vision
Machine visionMachine vision
Machine visiondjehlke
 
Machine vision systems ppt
Machine vision systems pptMachine vision systems ppt
Machine vision systems pptAkash Maurya
 
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...Waleed El-Badry
 
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...Waleed El-Badry
 

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

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 RobotroboVITics club
 
RoboCV Module 5: Contours using OpenCV
RoboCV Module 5: Contours using OpenCVRoboCV Module 5: Contours using OpenCV
RoboCV Module 5: Contours using OpenCVroboVITics club
 
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 OpenCVroboVITics club
 
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 OpenCVroboVITics club
 
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 MATLABroboVITics club
 
ROBO-SUMO Event Details v1.2
ROBO-SUMO Event Details v1.2ROBO-SUMO Event Details v1.2
ROBO-SUMO Event Details v1.2roboVITics club
 
VIT-EDC Problem Statement v1.2
VIT-EDC Problem Statement v1.2VIT-EDC Problem Statement v1.2
VIT-EDC Problem Statement v1.2roboVITics 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

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
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
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
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
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 

Recently uploaded (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
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
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
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
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 

Machine Vision Introduction

  • 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