Image Processing and Computer Vision Systems Using MATLAB
Image Processing and Computer Vision Systems Using MATLAB
Block process
Use a large Quickly build
large images to
library of inbuilt custom IP
avoid memory
functions algorithms
issues
Process images
faster with
multiple cores
and clusters
3
AGENDA
DEMO
Working with Large Images
DEMO
Targeting DSP’s
4
AGENDA
DEMO
Working with Large Images
DEMO
Targeting DSP’s
5
Underexposure Photo
Improper
Camera
Settings??
6
White Balanced Photo
Much
Better!
7
Image Acquisition Toolbox
Synchronize
multimodal
devices
Configure
device
properties 8
Image Acquisition Toolbox Hardware Support
9
From Sensor Data to Image
(Converting raw data from image sensor to color adjusted RGB)
Image Sensor
Bayer pattern
Color Filter
Sensor Arrays
10
Digital Camera Pipeline
Noise
Reduction Demosaic
Denoise electrical , Tone
and physical noise. Interpolate raw
Mapping Color
image data to
Adjust
RGB Calibrate sensor
RGB values to •White balance
reference •Gamma
Correction
DEMO
Working with Large Images
DEMO
Targeting DSP’s
12
AGENDA
DEMO
Working with Large Images
DEMO
Targeting DSP’s
13
Examples of Computer Vision with MATLAB
14
Computer Vision System Toolbox
Face Detection
KLT Tracking
People Detection
16
Categorical Object Detection
17
Category Detection = Features + Machine
Learning
Typical Machine
Typical Features Machine Learning
learning classifiers
• Histogram of • Requires input • SVM
Gradients (HOG) data and known
responses • Adaboost
• Haar like
Features • Builds a model to • Cascade of
predict Adaboost
• Local binary responses to
patterns new data
• K-nearest
neighbour
18
Histogram of Oriented Gradients (HOG)
Descriptor to characterize
local object appearance
Compute gradients in image
using [-1, 0, 1] mask with no
smoothing, divide it into cells
Compute histogram of
gradient orientations on each
cell
Group cells into overlapping
blocks, normalize vector of
histogram values
Slide over all relevant
windows/regions
19
Support Vector Machines (SVMs)
20
Demo: People Detector
21
Demo: Viola-Jones Face Detection
Algorithm details
– Haar-like features
– Gentle Adaboost classifiers
for feature selection
– Cascading of classifiers to
quickly weed out negative
candidates
22
Cascade of Classifiers in
CascadeObjectDetector
23
Object Tracking Workflow
Detection
DEMO
Working with Large Images
DEMO
Targeting DSP’s
25
AGENDA
DEMO
Working with Large Images
DEMO
Targeting DSP’s
26
Parallel Computing Products
27
Parallel Computing enables you to …
11 26 41
12 27 42
13 28 43
14 29 44
15 30 45
16 31 46
17 32 47
17 33 48
19 34 49
20 35 50
21 36 51
22 37 52
28
GPU Support with Parallel Computing Toolbox
DEMO
Working with Large Images
DEMO
Targeting DSP’s
30
AGENDA
DEMO
Working with Large Images
DEMO
Targeting DSP’s
31
Targeting DSPs and FPGAs
33
Automatic Translation of MATLAB to C
MATLAB Coder
te
ra
ite
34
AGENDA
DEMO
Working with Large Images
DEMO
Targeting DSP’s
35
AGENDA
DEMO
Working with Large Images
DEMO
Targeting DSP’s
36
Simulink: The Simulation Platform
37
Simulink System Design Environment
Input from
Hardware IDE Connection
(Ex: Texas Instruments,
Analog Devices, Green
Hills, Altium, Eclipse)
EDA Connection
(Ex: Xilinx, Altera、Mentor
Graphics, Cadence)
Co-Simulation
with CPU/DSP
Co-Simulation
with FPGA
38
Run on Target Hardware
What is it?
39
BeagleBoard
An open-source single-board “laptop”
Compatible with USB devices like keyboard, mouse,
and web cam
Stereo audio in and out
40
Installing a Target Hardware Support Package
41
Target Hardware Support Packages
42
Workflow
How does it work?
3. Create a model
4. Prepare to Run
5. Run
43
AGENDA
DEMO
Working with Large Images
DEMO
Targeting DSP’s
44
What you saw today
45
Training Services
Exploit the full potential of MathWorks products
Why certification?
Validates proficiency with MATLAB
Can help accelerate professional growth
Can help increase productivity and project success and thereby
prove to be a strategic investment
© 2013 The MathWorks, Inc. MATLAB and Simulink are registered trademarks
of The MathWorks, Inc. See www.mathworks.com/trademarks for a list of
additional trademarks. Other product or brand names may be trademarks or
registered trademarks of their respective holders.
49