What does High frequency and low frequency component signify in an image. How to separate out the high frequency as well as low frequency component of an image using Bilateral filter.
$\begingroup$ Yes, but how do you change the frequency of an image? $\endgroup$– johnJun 25, 2020 at 6:06
Similar to one dimensional signals, low frequencies in images mean pixel values that are changing slowly over space, while high frequency content means pixel values that are rapidly changing in space.
For example, the following image has strong low frequency components: You can intuitively see how I simply have a sin-wave propagating at some low frequency.
In contrast, this image below is composed of a sin wave at double the above frequency. Notice how this manifests itself on the image:
Any image can have any number of low and high frequency components together as well. For example, and image like this has both low and high frequency components:
You can see how you have a low-frequency 'trend', but also a lot of high frequency detail across the image. (Roughly speaking, in images, sharp transients like edges correspond to high frequencies, while long unchanging spaces correspond to low frequencies).
So now, the point of an application of a bilateral filter (which is simply a convolution of your image with a gaussian kernel), is to remove high frequency components, and retain your lower frequency components. So in this case, what happens if we convolve the above image, with a gaussian (bilateral) filter that looks like this?
If we use this as our kernel, we will get the following result:
In other words, we have removed the high frequency components of the original image, but kept the low frequency components, since the variance of the gaussian kernel was chosen appropriately.
$\begingroup$ Thank you. Why Gaussian filter removes high frequency components please? Intuitively as I understand it should remove low frequency components b/c low frequency components have low probability, which means they will low output when mapped through Gaussian filter while high frequency components are more likely to appear in output image as they have high probability. $\endgroup$– AvvJul 28, 2022 at 4:54