Description
MTRN4230 Robotics ASSIGNMENT 2
AIMS
The following assessment aims are derived from course learning outcome 4:
- Knowledge of basic image processing techniques for robotics.
- Demonstrate the ability to combine basic image processing techniques to achieve a given outcome.
ACTIVITIES
- Part 1: Complete the following tasks using ‘toysflash.png’:
- Use a Matlab function to find the height, width, and number of channels of the image.
(1 point)
- Write a code to generate a binary mask which covers the blue cup in the image. Display this binary mask in a separate image. You can use Matlab’s Color Thresholder tool ONLY for the purpose of identifying the suitable color threshold values. You must write your own code to generate the final image. (2 point)
- Similarly create a binary mask covering the plastic ball at the front of the image.
Display this binary mask in a separate image. (1 point)
- Generate a colour mask containing both objects in (b) and (c) as shown in Fig. 1. Briefly describe how you achieved this goal. (1 point)
Figure 1 Colour mask for the cup and the plastic ball.
- Part-2: Complete the following tasks using ‘chess_knights_run.png’ and ‘knight.png’:
- Plot all SURF descriptors overlaid on ‘chess_knights_run.png’. (1 points)
- Match SURF descriptors from ‘knight.png’ to ‘chess_knights_run.png’. Visualise the matched pairs. (3 point)
- Using these two images and the feature matching concept, write an algorithm to find the distance between the two white knights on the chess board. The algorithm should work on any image where both white knights are on dark squares. Any answer within +/- 30 pixels from the true distance is accepted. In the report, describe how you solved this problem with corresponding images results. (3 points)
- Part 3: Complete the following tasks using ‘oranges.jpg’ image: (8 points)
- Write a code to identify the centres of each orange slice. Display markers on the centre of each orange slice. For full marks, you should identify at least 12 centres with no more than 2 incorrect centres. In the report, briefly write down the steps you followed to achieve this task with corresponding image outputs. (3 point)
- Detect the boundaries of the orange slices. Display the boundaries overlaid on the original image. Figure 2 shows answers accepted as a correct boundary. A boundary is considered correct, if the boundary covers at least 80% of the visible boundary of a slice. For full marks, boundaries corresponding to at least 11 slices should be identified with no more than 7 incorrect boundary lines. See Figure 3 for an example solution. Briefly write down the steps you followed to achieve this task along with corresponding images. (3 points)




