SlideShare a Scribd company logo
“IMAGE PROCESSING”
Bachelor of Technology in Electronic&Comm. Engineering
DEPARTMENT OF Electronic&Comm. ENGINEERING
APEX GROUP OF INSTITUTE
SITAPURA, JAIPUR
2014 - 2015
SUBMITTED BY:-
Mr. RAVI KHANDELWAL
ROLL NO. 11EAGEC020
www.techienest.hpage
.com
Jaipur
Training Center
CF/O - 3&4 Nehru Place
Tonk Road
Jaipur, RJ
Mat LabMat Lab
Image ProcessingImage Processing
UsingUsing
Content…Content…
1. Introduction
2. The Mat lab Environment
3. Why Matlab
4. What is an image
5. Types of images
6. Images in MatLab
7. Image operation
8. Image Acquisition
9. GUI
• MATLAB is a numerical computing environment and
programming language.
• Created by The MathWorks, MATLAB allows easy
• matrix manipulation,
• plotting of functions and data,
• implementation of algorithms,
• creation of user interfaces, and
• interfacing with programs in other languages.
• computation, visualization, and programming in an easy-to-
use environment
MATLAB
The MATLAB Environment
• MATLAB window
components:
Workspace
> Displays all the defined
variables
Command Window
> To execute commands
in the MATLAB
environment
Command History
> Displays record of the
commands used
File Editor Window
> Define your functions
WHY MATLAB
A good choice for vision program development because:
• Everything in MATLAB is a matrix !
• Easy to do very rapid prototyping
• A good library of image processing functions
• Widely used for teaching and research in universities and
industry
• MATLAB does not need any variable declarations, no
dimension statements, has no packaging, no storage
allocation, no pointers
What is an Image…
• An image is an array, or a matrix, of
pixels arranged in columns and rows.
• In a (8-bit) grayscale image
each picture element has an
assigned intensity that ranges
from 0 to 255.
Images and Matrices
Column 1 to 256
Row1to256
o
[0, 0]
o
[256, 256]
How to build a matrix
(or image)?
Intensity Image:
row = 256;
col = 256;
img = zeros(row, col);
img(100:105, :) = 0.5;
img(:, 100:105) = 1;
figure;
imshow(img);
1. Binary Images
2. Grayscale Image
3. RGB Image
Types of Images
Binary Image
A binary image is a digital
image that has only two
possible values for each
pixel. Typically the two
colors used for a binary
image are black and white
though any two colors can
be used
Grayscale Image
• An image with 8-bit color depth, with
grayscale intensities varying from 0 to
255.
RGB Image
• RGB: 24 bit per pixel, 3 eight bit
unsigned integers (0 to 255)
represent the intensities of red,
green and blue.
(0, 0, 0) is black
(255, 255, 255) is white
(255, 0, 0) is red
(0, 255, 0) is green
(0, 0, 255) is blue
(255, 255, 0) is yellow
(0, 255, 255) is cyan
(255, 0, 255) is magenta
Images in MATLAB
• MATLAB can import/export several image
formats:
• BMP (Microsoft Windows Bitmap)
• GIF (Graphics Interchange Files)
• HDF (Hierarchical Data Format)
• JPEG (Joint Photographic Experts Group)
• PCX (Paintbrush)
• PNG (Portable Network Graphics)
• TIFF (Tagged Image File Format)
• raw-data and other types of image data
Image Operations
• RGB image to gray image
• Image resize
• Image crop
• Image rotate
• Image blur
• Image histogram
• Convolution
Image Import and Export
• Read and write images in Matlab
img = imread('apple.jpg');
dim = size(img);
figure;
imshow(img);
imwrite(img, 'output.bmp', 'bmp');
• Alternatives to imshow
imagesc(I)
imtool(I)
image(I)
∗ RGB Image to Intensity Image (rgb2gray)
∗ RGB Image to Indexed Image (rgb2ind)
∗ RGB Image to Binary Image (im2bw)
∗ Indexed Image to RGB Image (ind2rgb)
∗ Indexed Image to Intensity Image (ind2gray)
∗ Indexed Image to Binary Image (im2bw)
∗ Intensity Image to Indexed Image (gray2ind)
∗ Intensity Image to Binary Image (im2bw)
∗ Intensity Image to RGB Image (gray2ind, ind2rgb)
Image Type Conversion
Image Display
• image - create and display image object
• imagesc - scale and display as image
• imshow - display image
• colorbar - display colorbar
• getimage - get image data from axes
• truesize - adjust display size of image
• zoom - zoom in and zoom out of 2D plot
Example: RGB IMAGE
i=imread('C:UsersSACHINDesktopDSC05563_1.jpg');
imshow(i);
To convert rgb into grayscale image
i=imread('C:UsersSACHINDesktopDSC05563_1.jpg');
j=rgb2gray(i);
imshow(j);
To convert rgb into Binary image
i=imread('C:UsersSACHINDesktopDSC05563_1.jpg');
k=im2bw(i);
imshow(k);
EXAMPLES
∗ Image compression
∗ Noise reduction
∗ Edge extraction
∗ Contrast enhancement
∗ Segmentation
∗ Image restoration
∗ Image compression
∗ Noise reduction
∗ Edge extraction
∗ Contrast enhancement
∗ Segmentation
∗ Image restoration
EXAMPLES
EXAMPLES
∗ Image compression
∗ Noise reduction
∗ Edge extraction
∗ Contrast enhancement
∗ Segmentation
∗ Image restoration
EXAMPLES
∗ Image compression
∗ Noise reduction
∗ Edge extraction
∗ Contrast enhancement
∗ Segmentation
∗ Image restoration
EXAMPLES
∗ Image compression
∗ Noise reduction
∗ Edge extraction
∗ Contrast enhancement
∗ Segmentation
∗ Image restoration
EXAMPLES
∗ Image compression
∗ Noise reduction
∗ Edge extraction
∗ Contrast enhancement
∗ Segmentation
∗ Image restoration
Image Acquisition
Acquiring image from camera
• First of all check whether Image Acquisition adapter is installed
and working To check it, please type the following command in
command window and press enter:
>>imaqhwinfo
This signifies ‘winvideo’ adapter installed
Real Time video streaming:
To capture the video stream, type the following
command in command window:
>> Var = videoinput(‘winvideo’,1,YUY2_640X480);
Previewing the real time video
where
Var is the variable in which real time video will be streamed.
type the following command in command
window:
Syntax: Preview(Var);
Capturing Image from real time video:
To capture an image from real time video stream,
we can use the command getsnapshot(X).
Syntax:
I=Getsnapshot(Var);
Viewing the captured Image:
To see the image captured and stored in variable
I, in STEP 5, we can use the following command:
Syntax:
imshow(i);
We will have one color marker in our hand, red in our case. Through that we will
change the position of that finger at four different corners of the 2-D image. Once it
is done, the microcontroller section will have the Relay attached to it. And the Relay
will control the four different devices as shown in figure.
Virtual Switch Board
Graphical User Interface
• GUIDE (graphical user interface development environment)
• GUIDE is command
• It is provides a set of tools for creating graphical user interfaces
(GUIs).
• You also can create menus and context menus for the GUI
Tool Box
 Using the GUIDE Layout Editor, you can populate a GUI by clicking and
dragging GUI components—such as axes, panels, buttons, text fields, sliders. .
Example
∗ Medicine
∗ Defense
∗ Meteorology
∗ Environmental science
∗ Manufacture
∗ Surveillance
∗ Crime investigation
Applications
THE ENDTHE END
FOR YOURFOR YOUR
ATTENTION!ATTENTION!
ANY QUESTIONANY QUESTION

More Related Content

PDF
Unit IV robotics-- Kinematics
PPTX
Industrial Automation
PPT
Robotics: Introduction to Kinematics
PPTX
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
PPTX
ROBOTICS- IMPLEMENTATION AND ROBOT ECONOMICS
PPT
Robotics: Forward and Inverse Kinematics
Unit IV robotics-- Kinematics
Industrial Automation
Robotics: Introduction to Kinematics
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
ROBOTICS- IMPLEMENTATION AND ROBOT ECONOMICS
Robotics: Forward and Inverse Kinematics

What's hot (20)

PPTX
Dh parameters robotics
PPTX
ROBOTICS-Me8099 -unit-1.ppT
PPT
Robotics and machine vision system
PPTX
ROBOT DRIVE SYSTEMS AND END EFFECTORS
PPTX
Chapter 8 - Robot Control System
PPTX
Unit 3 machine vision
PPTX
Microprocessor applications
PPT
Manipulator kinematics
PDF
Manipulator Jacobian
PDF
Denavit Hartenberg Algorithm
PPTX
Unit 5 cim
PPTX
Unit III-- senors in robotics
DOCX
Seminar Report Robotics
PPTX
Aerial Robotics
PPTX
Dc servo motor
PPTX
Velocity sensors in_robotics
PPTX
Robotics and automation _ power sources and sensors
PPTX
Real Time Kernels
PDF
Control systems and Robotics
Dh parameters robotics
ROBOTICS-Me8099 -unit-1.ppT
Robotics and machine vision system
ROBOT DRIVE SYSTEMS AND END EFFECTORS
Chapter 8 - Robot Control System
Unit 3 machine vision
Microprocessor applications
Manipulator kinematics
Manipulator Jacobian
Denavit Hartenberg Algorithm
Unit 5 cim
Unit III-- senors in robotics
Seminar Report Robotics
Aerial Robotics
Dc servo motor
Velocity sensors in_robotics
Robotics and automation _ power sources and sensors
Real Time Kernels
Control systems and Robotics
Ad

Viewers also liked (7)

PPTX
Slides suzaimah madinah(1)
PDF
Tutorial Matlab
PPTX
GUI in Matlab - 1
PPSX
Introduction to MATLAB
PDF
Pengolahan Citra Digital Dengan Menggunakan MATLAB
DOCX
Contoh program matlab
PPTX
Matlab for Electrical Engineers
Slides suzaimah madinah(1)
Tutorial Matlab
GUI in Matlab - 1
Introduction to MATLAB
Pengolahan Citra Digital Dengan Menggunakan MATLAB
Contoh program matlab
Matlab for Electrical Engineers
Ad

Similar to Image processing for robotics (20)

PPTX
Image processing in MATLAB
PPTX
Image Processing Using MATLAB
PPTX
Image processing tool box.pptx
PDF
Performance Anaysis for Imaging System
PPTX
Matlab Working With Images
PPTX
Matlab Working With Images
PPTX
PYTHON-OOOOOOOOOOPPPPPPEEEEEEEEN-CV.pptx
PPTX
OpenCV In Mobile Technology | Computer Vision on Mobile
PPTX
PYTHON-OPEEEEEEEEEEEEEEN-CV (1) kgjkg.pptx
PDF
Matlab intro
PDF
aip basic open cv example
PPTX
COLOUR DETECTION MODEL PPT.pptx.........
PPTX
image55.pptx it has a detailed explanation on image manipulation
PDF
Kinect v1+Processing workshot fabcafe_taipei
PPT
Image_Processing_LECTURE_c#_programming.ppt
PPTX
Computer vision labs for improving in the subject
DOCX
Computer graphics
PDF
CE344L-200365-Lab5.pdf
PPTX
Image processing
PPTX
Ec section
Image processing in MATLAB
Image Processing Using MATLAB
Image processing tool box.pptx
Performance Anaysis for Imaging System
Matlab Working With Images
Matlab Working With Images
PYTHON-OOOOOOOOOOPPPPPPEEEEEEEEN-CV.pptx
OpenCV In Mobile Technology | Computer Vision on Mobile
PYTHON-OPEEEEEEEEEEEEEEN-CV (1) kgjkg.pptx
Matlab intro
aip basic open cv example
COLOUR DETECTION MODEL PPT.pptx.........
image55.pptx it has a detailed explanation on image manipulation
Kinect v1+Processing workshot fabcafe_taipei
Image_Processing_LECTURE_c#_programming.ppt
Computer vision labs for improving in the subject
Computer graphics
CE344L-200365-Lab5.pdf
Image processing
Ec section

Recently uploaded (20)

PDF
oil_refinery_presentation_v1 sllfmfls.pdf
PPTX
lesson6-211001025531lesson plan ppt.pptx
PPTX
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
PPTX
The Effect of Human Resource Management Practice on Organizational Performanc...
PPTX
chapter8-180915055454bycuufucdghrwtrt.pptx
PPTX
Self management and self evaluation presentation
PPTX
nose tajweed for the arabic alphabets for the responsive
PPTX
MERISTEMATIC TISSUES (MERISTEMS) PPT PUBLIC
PPTX
Project and change Managment: short video sequences for IBA
PPT
First Aid Training Presentation Slides.ppt
PPTX
INTERNATIONAL LABOUR ORAGNISATION PPT ON SOCIAL SCIENCE
PDF
COLEAD A2F approach and Theory of Change
PDF
Nykaa-Strategy-Case-Fixing-Retention-UX-and-D2C-Engagement (1).pdf
PPTX
PHIL.-ASTRONOMY-AND-NAVIGATION of ..pptx
PDF
Presentation1 [Autosaved].pdf diagnosiss
PPTX
2025-08-10 Joseph 02 (shared slides).pptx
PPTX
worship songs, in any order, compilation
PDF
Instagram's Product Secrets Unveiled with this PPT
DOC
学位双硕士UTAS毕业证,墨尔本理工学院毕业证留学硕士毕业证
PPTX
water for all cao bang - a charity project
oil_refinery_presentation_v1 sllfmfls.pdf
lesson6-211001025531lesson plan ppt.pptx
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
The Effect of Human Resource Management Practice on Organizational Performanc...
chapter8-180915055454bycuufucdghrwtrt.pptx
Self management and self evaluation presentation
nose tajweed for the arabic alphabets for the responsive
MERISTEMATIC TISSUES (MERISTEMS) PPT PUBLIC
Project and change Managment: short video sequences for IBA
First Aid Training Presentation Slides.ppt
INTERNATIONAL LABOUR ORAGNISATION PPT ON SOCIAL SCIENCE
COLEAD A2F approach and Theory of Change
Nykaa-Strategy-Case-Fixing-Retention-UX-and-D2C-Engagement (1).pdf
PHIL.-ASTRONOMY-AND-NAVIGATION of ..pptx
Presentation1 [Autosaved].pdf diagnosiss
2025-08-10 Joseph 02 (shared slides).pptx
worship songs, in any order, compilation
Instagram's Product Secrets Unveiled with this PPT
学位双硕士UTAS毕业证,墨尔本理工学院毕业证留学硕士毕业证
water for all cao bang - a charity project

Image processing for robotics

  • 1. “IMAGE PROCESSING” Bachelor of Technology in Electronic&Comm. Engineering DEPARTMENT OF Electronic&Comm. ENGINEERING APEX GROUP OF INSTITUTE SITAPURA, JAIPUR 2014 - 2015 SUBMITTED BY:- Mr. RAVI KHANDELWAL ROLL NO. 11EAGEC020
  • 2. www.techienest.hpage .com Jaipur Training Center CF/O - 3&4 Nehru Place Tonk Road Jaipur, RJ
  • 3. Mat LabMat Lab Image ProcessingImage Processing UsingUsing Content…Content… 1. Introduction 2. The Mat lab Environment 3. Why Matlab 4. What is an image 5. Types of images 6. Images in MatLab 7. Image operation 8. Image Acquisition 9. GUI
  • 4. • MATLAB is a numerical computing environment and programming language. • Created by The MathWorks, MATLAB allows easy • matrix manipulation, • plotting of functions and data, • implementation of algorithms, • creation of user interfaces, and • interfacing with programs in other languages. • computation, visualization, and programming in an easy-to- use environment MATLAB
  • 5. The MATLAB Environment • MATLAB window components: Workspace > Displays all the defined variables Command Window > To execute commands in the MATLAB environment Command History > Displays record of the commands used File Editor Window > Define your functions
  • 6. WHY MATLAB A good choice for vision program development because: • Everything in MATLAB is a matrix ! • Easy to do very rapid prototyping • A good library of image processing functions • Widely used for teaching and research in universities and industry • MATLAB does not need any variable declarations, no dimension statements, has no packaging, no storage allocation, no pointers
  • 7. What is an Image… • An image is an array, or a matrix, of pixels arranged in columns and rows. • In a (8-bit) grayscale image each picture element has an assigned intensity that ranges from 0 to 255.
  • 8. Images and Matrices Column 1 to 256 Row1to256 o [0, 0] o [256, 256] How to build a matrix (or image)? Intensity Image: row = 256; col = 256; img = zeros(row, col); img(100:105, :) = 0.5; img(:, 100:105) = 1; figure; imshow(img);
  • 9. 1. Binary Images 2. Grayscale Image 3. RGB Image Types of Images
  • 10. Binary Image A binary image is a digital image that has only two possible values for each pixel. Typically the two colors used for a binary image are black and white though any two colors can be used
  • 11. Grayscale Image • An image with 8-bit color depth, with grayscale intensities varying from 0 to 255.
  • 12. RGB Image • RGB: 24 bit per pixel, 3 eight bit unsigned integers (0 to 255) represent the intensities of red, green and blue. (0, 0, 0) is black (255, 255, 255) is white (255, 0, 0) is red (0, 255, 0) is green (0, 0, 255) is blue (255, 255, 0) is yellow (0, 255, 255) is cyan (255, 0, 255) is magenta
  • 13. Images in MATLAB • MATLAB can import/export several image formats: • BMP (Microsoft Windows Bitmap) • GIF (Graphics Interchange Files) • HDF (Hierarchical Data Format) • JPEG (Joint Photographic Experts Group) • PCX (Paintbrush) • PNG (Portable Network Graphics) • TIFF (Tagged Image File Format) • raw-data and other types of image data
  • 14. Image Operations • RGB image to gray image • Image resize • Image crop • Image rotate • Image blur • Image histogram • Convolution
  • 15. Image Import and Export • Read and write images in Matlab img = imread('apple.jpg'); dim = size(img); figure; imshow(img); imwrite(img, 'output.bmp', 'bmp'); • Alternatives to imshow imagesc(I) imtool(I) image(I)
  • 16. ∗ RGB Image to Intensity Image (rgb2gray) ∗ RGB Image to Indexed Image (rgb2ind) ∗ RGB Image to Binary Image (im2bw) ∗ Indexed Image to RGB Image (ind2rgb) ∗ Indexed Image to Intensity Image (ind2gray) ∗ Indexed Image to Binary Image (im2bw) ∗ Intensity Image to Indexed Image (gray2ind) ∗ Intensity Image to Binary Image (im2bw) ∗ Intensity Image to RGB Image (gray2ind, ind2rgb) Image Type Conversion
  • 17. Image Display • image - create and display image object • imagesc - scale and display as image • imshow - display image • colorbar - display colorbar • getimage - get image data from axes • truesize - adjust display size of image • zoom - zoom in and zoom out of 2D plot
  • 19. To convert rgb into grayscale image i=imread('C:UsersSACHINDesktopDSC05563_1.jpg'); j=rgb2gray(i); imshow(j);
  • 20. To convert rgb into Binary image i=imread('C:UsersSACHINDesktopDSC05563_1.jpg'); k=im2bw(i); imshow(k);
  • 21. EXAMPLES ∗ Image compression ∗ Noise reduction ∗ Edge extraction ∗ Contrast enhancement ∗ Segmentation ∗ Image restoration
  • 22. ∗ Image compression ∗ Noise reduction ∗ Edge extraction ∗ Contrast enhancement ∗ Segmentation ∗ Image restoration EXAMPLES
  • 23. EXAMPLES ∗ Image compression ∗ Noise reduction ∗ Edge extraction ∗ Contrast enhancement ∗ Segmentation ∗ Image restoration
  • 24. EXAMPLES ∗ Image compression ∗ Noise reduction ∗ Edge extraction ∗ Contrast enhancement ∗ Segmentation ∗ Image restoration
  • 25. EXAMPLES ∗ Image compression ∗ Noise reduction ∗ Edge extraction ∗ Contrast enhancement ∗ Segmentation ∗ Image restoration
  • 26. EXAMPLES ∗ Image compression ∗ Noise reduction ∗ Edge extraction ∗ Contrast enhancement ∗ Segmentation ∗ Image restoration
  • 27. Image Acquisition Acquiring image from camera • First of all check whether Image Acquisition adapter is installed and working To check it, please type the following command in command window and press enter: >>imaqhwinfo
  • 28. This signifies ‘winvideo’ adapter installed
  • 29. Real Time video streaming: To capture the video stream, type the following command in command window: >> Var = videoinput(‘winvideo’,1,YUY2_640X480); Previewing the real time video where Var is the variable in which real time video will be streamed. type the following command in command window: Syntax: Preview(Var);
  • 30. Capturing Image from real time video: To capture an image from real time video stream, we can use the command getsnapshot(X). Syntax: I=Getsnapshot(Var); Viewing the captured Image: To see the image captured and stored in variable I, in STEP 5, we can use the following command: Syntax: imshow(i);
  • 31. We will have one color marker in our hand, red in our case. Through that we will change the position of that finger at four different corners of the 2-D image. Once it is done, the microcontroller section will have the Relay attached to it. And the Relay will control the four different devices as shown in figure. Virtual Switch Board
  • 32. Graphical User Interface • GUIDE (graphical user interface development environment) • GUIDE is command • It is provides a set of tools for creating graphical user interfaces (GUIs). • You also can create menus and context menus for the GUI
  • 33. Tool Box  Using the GUIDE Layout Editor, you can populate a GUI by clicking and dragging GUI components—such as axes, panels, buttons, text fields, sliders. .
  • 35. ∗ Medicine ∗ Defense ∗ Meteorology ∗ Environmental science ∗ Manufacture ∗ Surveillance ∗ Crime investigation Applications
  • 36. THE ENDTHE END FOR YOURFOR YOUR ATTENTION!ATTENTION!

Editor's Notes

  • #16: The imagesc function scales image data to the full range of the current colormap and displays the image. imtool opens a new Image Tool in an empty state. imtool(I) displays the grayscale image I. image(C) displays matrix C as an image.