[SOLVED] MTRN4230  Assignment 2

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Assignment2-adfdnn.zip (4381.1 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

The following assessment aims are derived from course learning outcome 4:

  1. Knowledge of basic image processing techniques for robotics.
  2. Demonstrate the ability to combine basic image processing techniques to achieve a given outcome.

INSTRUCTIONS

  1. Download all images relevant to this assignment from course resources.
  2. Assignment submission should consist of two files:
    1. A report (in .pdf format) describing your step by step approach for each problem, answers, and corresponding image results,
    2. A single Matlab script which contains all necessary code used for the assignment.
  3. Develop your Matlab script in the same folder as the images and avoid using absolute paths (i.e.: Always use imread(‘image.jpg’) instead of imread(‘C:/absolute/path/image.jpg’)). This allows tutors to check your code efficiently.

ACTIVITIES

  1. Part 1: Complete the following tasks using ‘toysflash.png’:
    1. Use a Matlab function to find the height, width, and number of channels of the image.

(1 point)

  1. 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)
  2. 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)

  1. 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.

  1. Part-2: Complete the following tasks using ‘chess_knights_run.png’ and ‘knight.png’:
    1. Plot all SURF descriptors overlaid on ‘chess_knights_run.png’. (1 points)
    2. Match SURF descriptors from ‘knight.png’ to ‘chess_knights_run.png’. Visualise the matched pairs. (3 point)
    3. 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)

 

  1. Part 3: Complete the following tasks using ‘oranges.jpg’ image: (8 points)
    1. 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)
    2. 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)

 

 

Figure 2: Any result closer to the edge (in green) of the slice is considered correct. To be accepted as a correct boundary, at least 80% of the visible border should be identified.

 

Figure 3: A sample solution. Incorrect boundary lines are circled. Question marks show missing boundary lines.

 

  1. Create a binary mask for the seven slices on the top layer (The seven slices are marked in Figure 4). For full marks, masks for at least 5 slices should be displayed with no more than one incorrect mask. Masks should fully cover the slice. Describe your approach briefly along with corresponding images. (2 points)

 

 

Figure 4: The seven slices on the top layer.

  • Assignment2-adfdnn.zip