Answered step by step
Verified Expert Solution
Question
1 Approved Answer
WRITE IN MATBLAB. ADD comments in code for explanation. Task 1 [5 Marks] Given the following image of coins (imCoins) (a) Read the image. (b)
WRITE IN MATBLAB.
ADD comments in code for explanation.
Task 1 [5 Marks] Given the following image of coins (imCoins) (a) Read the image. (b) Convert the image imCoins into a binary image im2 using thresholding. Display the images im1 and im2 side by side. (c) Using the hole-filling algorithm, fill the holes in the segmented binary image im2. Display the image before and after hole filling. (d) Using the connected component algorithm, count the number of coins in the image, and show the number of coins. Task 2 [5 Marks] Given the following binary image (im): (a) Read the image im. (b) Using morphological operations, remove all thin lines and keep only the four thick rectangular objects. (c) Display the image before and after each operation. Given the following noisy image (imNoisy): (a) Read the image imNoisy. (b) Using morphological operations, remove the noise from this image. (c) Show the image before and after each operation
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started