Task 1

Figure 1 Original (left) and blurred (right), full padding mode.
Figure 2 Original (left) and blurred (right), valid padding mode.
Figure 3 Original (left) and blurred (right), same padding mode.

Task 2

Figure 4 Image 'coins.png' and its gray level distribution.

Task 3

Figure 5 Image 'coins.png' and a segmented image thresholded at 128.
Figure 6 Segmented image 'coins.png' thresholded with Otsu's algorithm, and the difference between it and the one from the manual thresholding. Otsu threshold is computed to be 125.

Task 4

Figure 7 Original image (left) and its gradient magnitude (right).
Figure 8 Horizontal gradient (left) and vertical gradient (right).
Figure 9 Thresholded gradient magnitude (left), seam outline (right).
Figure 10 Thresholded original image (left), seam (right).