Deepak Malani, REC Calicut
Anant Malewar, IIT Bombay
Issued in public interest by Nex Robotics Pvt. Ltd.
(www.nex-robotics.com)
© Nex Robotics Pvt. Ltd. http://www.nex-robotics.com/workshop.html Foreword:
The wide area of vision based autonomous systems is broadly referred as machine vision. We have dealt with a beginner level module in this field, which we refer as vision-controlled motion (VCM).
Keywords:
Machine Vision, Image acquisition, MATLAB, Vision based robot control
1
© Nex Robotics Pvt. Ltd. http://www.nex-robotics.com/workshop.html Table of Contents
1 Introduction______________________________________________________3
1.1 System Description:_________________________________________________3
1.2 Tools for Image Processing___________________________________________4
2 Getting started with MATLAB______________________________________5
2.1 MATLAB Interface__________________________________________________5
2.2 Working with Images________________________________________________6
2.2.1 Reading an image________________________________________________________6
2.2.2 Displaying an image______________________________________________________7
2.2.3 Generating an image_____________________________________________________9
2.3 M-files____________________________________________________________10
2.4 Functions__________________________________________________________12
3 Image Acquisition________________________________________________13
3.1 Previewing video___________________________________________________14
3.2 Capturing and storing images_______________________________________15
3.3 Getting ahead with Image Acquisition________________________________16
3.4 Interfacing with PC ports___________________________________________18
3.4.1 Parallel Port____________________________________________________________18
3.4.2 Serial