Homework
Develop a Matlab GUI that allows the users to label a connected component in the binary image by clicking on one of its pixels.
Following are specific requirements:
1. Your GUI must provide a button that allows the user to browse and select a binary image, and then show the selected binary image on axes.
2. When the user clicks on a foreground pixel on GUI, you must use the position of mouse click as the starting point to implement the algorithm discussed in class to extract connected components.
3. When the user clicks on a background pixel on GUI, there should be no change.
4. You can use function ginput to read x and y coordinates of mouse click.
5. You can use function imdilate to implement the morphological dilation operation.
6. You must show the connected component output of the selected foreground object on a separate image next to the original image.
Format your homework according to the give formatting requirements:
1. The answer must be double spaced, typed, using Times New Roman font (size 12), with one-inch margins on all sides.
2. The response also includes a cover page containing the title of the homework, the course title, the student's name, and the date. The cover page is not included in the required page length.
3. Also include a reference page. The references and Citations should follow APA format. The reference page is not included in the required page length.