Introduction - If you have any usage issues, please Google them yourself
There are two main bilateral filtering template generation, the first one is the Gaussian template, and the second is the gray level as a function of the difference between the coefficient generation templates. Then both templates dot get the final bilateral filtering template. The first template is a global template, so only need to be generated once. The second template required for each pixel is calculated once, we need to put inside the loop to generate.