How to Obtain Mathematically High Frequency and Low Frequency Component Separately Using Bilateral Filter?
One you have convolved your original image with the gaussian kernel (of appropriately chosen variance), then simply subtract the original image from the result of the convolution. This will give you the image with only the high frequency components of your original.