The Guide Graph filter (Guide graph filter, guided filter) is an image filtering technique, which can generate different weights according to the guide graph, and the weighted average of the original images to realize the filtering effect. In the image to fog, stereoscopic vision and many other aspects have a wide range of applications.
The C language implementation is placed on my code cloud, linked here: Https://git.oschina.net/rxdj/guidedFilter.git.
Input: Boot image I, to filter the image P, filter radius r, the threshold value EPS; output: Filter result graph.
The guide map can be a single channel or three channels, the three channels must be RGB format, the image to be filtered must be a single channel image, the data type is double, the output is a single channel image.
C Language Implementation of guide graph filtering algorithm