Is the output of the box filter smaller than the original? What happened to the edge of the output image (apologize if this is already explained in the lecture and I did not catch it ><)
motoole2
When performing image filtering, one needs to be careful when working around the borders of images. This is because the filtering operation may end up sampling values outside of our source image's borders. There are two strategies: (1) shrink the size of the output image, as shown in this slide, or (2) extend the size of the input image. In the latter, this can be done in a number of ways (e.g., assume pixel values outside the border are some constant, or extrapolate from the pixel values within the borders).
(Btw, I mentioned this briefly in class, so it was easy to miss, and this'll come up again in assignment 1.)
Is the output of the box filter smaller than the original? What happened to the edge of the output image (apologize if this is already explained in the lecture and I did not catch it ><)
When performing image filtering, one needs to be careful when working around the borders of images. This is because the filtering operation may end up sampling values outside of our source image's borders. There are two strategies: (1) shrink the size of the output image, as shown in this slide, or (2) extend the size of the input image. In the latter, this can be done in a number of ways (e.g., assume pixel values outside the border are some constant, or extrapolate from the pixel values within the borders).
(Btw, I mentioned this briefly in class, so it was easy to miss, and this'll come up again in assignment 1.)