Exercise 04a. Implement a program exercise_04a_opening that performs a morphological opening of size i using a square of size (2*i +1)x(2*i +1):
exercise_04a_opening i exercise_04a_input_01.pgm exercise_04a_output_01.pgm Note: 8-connectivity is assumed.
Some test images: immed_gray_inv.pgm (input image)
immed_gray_inv_20051123_ope1.pgm (opening of size 1, 8-connectivity)
immed_gray_inv_20051123_ope2.pgm (opening of size 2, 8-connectivity)
Exercise 04b. Implement a program exercise_04b_closing that performs a morphological closing of size i using a square of size (2*i +1)x(2*i +1):
exercise_04b_closing i exercise_04b_input_01.pgm exercise_04b_output_01.pgm Note: 8-connectivity is assumed.
Some test images: immed_gray_inv.pgm (input image)
immed_gray_inv_20051123_clo1.pgm (closing of size 1, 8-connectivity)
immed_gray_inv_20051123_clo2.pgm (closing of size 2, 8-connectivity)

![[Solved] Imageprocessing Exercise4](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[Solved] Imageprocessing Exercise8](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.