I am trying to simulate the blurring process (defocus) of a sinusoidal. For this I have build my own Gaussian filter and performed the convolution in Fourier domain.
The result of the blurred signal is shown below.
The effect in the left and right most part of the blurred image is I assume due to the filter size. If I take sufficiently narrow sized filter the effect becomes less visible.
However, is there a way to get rid of this effect? For example if I take a real picture of a sinusoidal which is out of focus, then one wouldn't observe this effect in the real captured image. What is the correct way to get rid of this effect?