a code to realize simply Guide_Image_Filter use python3 and opencv please use jupyter notebook open the 'guide_filter.ipynb' if you want yourself image to test the algorithm, please ensure the location of your images is correct
reference: He K,Sun J,Tang X.Guided Image Filtering[J].IEEE Transactions on Software Engineering,2013,35(6):1397-1409.