Highlights
Task:
1 Aims
(i) To introduce components of the Mathworks Image Processing Toolbox.
(ii) To develop the principles of digital image representation in Matlab.
(iii) To review fundamental point and spatial image processing operation in Matlab.
(iv) To develop an understanding of nonlinear morphological image processing operations and their practical application in Matlab. This laboratory draws on material covered in the lectures and tutorials, including:
• Image representation (Week 1)
• Point and spatial operations (Week 2)
• Image filtering (Weeks 4–5)
• Morphological operations (Week 6) 2 Introduction You are expected to work individually. Each student must submit a technical laboratory report summarising their work and their results. The report should be submitted as a PDF document, accompanied by a single .zip archive containing your Matlab code and any images produced. This laboratory project will run for two weeks, with submission due at the end of week 8 (electronic submission via the subject Canvas website; 1 week after the second laboratory session). In this laboratory, you will explore several nonlinear morphological image processing operations and apply them to solve common image processing problems. All operations will be performed in Matlab [1]. Matlab and the Image Processing Toolbox [2] may be downloaded for installation on your home computer under the RMIT Total Academic Headcount (TAH) license (see [3]). The supplied EEET2169-Lab4.zip file contains a number of template .m files and several test images for use in this laboratory. Note: In this laboratory you will use several common image processing operations provided by the Image Processing Toolbox [2]. 3 Morphological image processing 3.1 Erosion and dilation The fundamental morphological operations of erosion and dilation can be combined to perform complex image processing and analysis tasks, and are often among the first steps in applications requiring automated image segmentation. In this section, you will use the morphological operations of erosion and dilation to prepare a binary image for automated segmentation. Using Matlab:
a) Load the test image pills1.png [4] (from the images/ subdirectory of the supplied .zip file) and display it on the screen.\
b) Convert this image to a binary image, with pixels corresponding to the pills being white and all other pixels (i.e., the background) being black. Save the binary image as a 1-bit grayscale PNG image (no alpha channel) with filename pills1_binary.png to include in your submission. Hint: see imbinarize() to apply a global threshold (computed automatically using Otsu’s method [5]).
c) Perform erosion on the binary image so that each pill becomes separated from all other pills. Hint: use imerode() to perform binary erosion. Hint: use strel() to construct suitable structuring elements.
d) Save the eroded image as a 1-bit grayscale PNG image (no alpha channel) with filename pills1_eroded.png to include in your submission.
e) Propose (and describe in your report) an automated procedure for counting the number of pills in an image, assuming each pill is separated from all other pills by pixels of the background intensity. Hint: consider the definitions of adjacency and connectivity from Week 2.
f) Consider how this procedure could be used to automate the erosion performed in c).
The above Engineering Assignment has been solved by our Engineering Assignment Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.