write code for applying the bilateral filter to the input image.
write code for applying the bilateral filter to the input image.