Question: l. [9 marks] Suppose a gray-level image of type uintB is stored in the le 'circlesl .png' in your current MATLAB working directory. The image
![l. [9 marks] Suppose a gray-level image of type uintB is](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/670743cfb6008_359670743cf97510.jpg)
l. [9 marks] Suppose a gray-level image of type uintB is stored in the le 'circlesl .png' in your current MATLAB working directory. The image contains small dark non-overlapping circles on a contrasting light uniform background as shown in Figure 1. Using only the functionality of the base MATLAB package and the Image Processing Toolbox, what would you type at the MATLAB prompt to do each the following: [Note: For each part, you are only allowed to specify one MATLAB command with the exception of part (g) where you may use up to two commands] (a) Read the image from the file into the variable im (b) Display the histogram of the image if it is already available in the variable im (c) Display the image if it is already stored in the variable im (d) Allow the user to interactively measure the number of pixels across the diameter of any circle if the image is already displayed (e) Find the gray-level value at location (i,j) = (100.7, 45.2) using bilinear interpolation if the image is stored in the variable im (1) Determine a threshold to binarize the image and store the threshold in the variable three if the image is already stored in the variable im (g) Assuming the image is available in the variable im, create a binary version of the image of type logical called bw so that pixels in im that have gray levels less than or equal to thres are white in the binary image bw (i.e., have a value of logical l) and pixels in im with a gray level higher than three are black in the binary image bw (i.e., have a value oflogical 0) (h) Automatically count the number of circles in the binary image low that was formed in part (g) and store the count in the MATLAB variable num
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
