1
EECS1011Z Lab G
2
Introduction
3
Getting started
4
Getting the MATLAB code needed for the lab
5
Write some nested
for
loops
(a) Fill in the values of a matrix row by row
(b) Fill in the values of a matrix column by column
(c) Compute the average value of the elements in a matrix
(d) Computing the center of mass of an image mask
6
Important note regarding the pan-tilt platform
7
Connecting the pan-tilt platform to the computer
7.1
Setting up the Advanced Servo Controller
7.2
Setting up the pan-tilt platform
8
Capture some testing images of the target
8.1
Viewing the video feed from the camera
8.2
Capturing an image
8.3
Convert the captured images to grayscale
9
Masking the target
9.1
Write a function to convert a colour to a grayscale value
9.2
Test your function
9.2.1
Apply the mask to the image
10
Calculating the center of mass of the mask
10.1
Write a function to compute the center of mass of a mask
10.2
Test your function
11
Try tracking the target
12
Ask a TA to mark your lab
13
Submit your work
13.1
Re-submitting your work
13.2
Retrieving your submitted work
14
Clean up
1
EECS1011Z Lab G
Tuesday Mar 3