Some fun project I did for my Computer Vision and Image Processing class
Figure below shows a 570 × 570 image f of a circular stroke embedded in specular noise. The objective of the problem is to obtain the Freeman chain code, the first difference of the outer boundary of the largest object, and the integer of minimum magnitude of the code.
(d) (5 points) Subsample the boundary obtained in Part (c) onto a grid whose lines are separated by 50 pixels. Connect the subsampled boundary points with straight line segments. Display the resulting points as a binary image.
(b) (5 points) Generate a binary image gB by thresholding g obtained in Part (a).
(a) (5 points) Generate a smoothed image g using 9 × 9 averaging filter.
(c) (5 points) Extract the outer boundary of gB and display the results as a binary image.
Extract the boundary of the chromosome and display the result as a binary image.
Write a program to compute the inverse Fourier descriptors. The input z is a sequence of Fourier descriptors and nd is the number of descriptors used to compute the inverse. nd must be an even integer no greater than length(z). Reconstruct the boundary using 50% of the total possible descriptors and display the result as a binary image. Then, reconstruct the boundary using 1% of the total possible descriptors and display the result as a binary image.