In order to make the weighted guided image filter (WGIF) more fully utilize the edge direction of the image, a steering kernel weighted guided image filter (SKWGIF) is proposed by employing the steering kernel to learn the edge direction and incorporating the learning results into the WGIF. However, SKWGIF does not provide a good compromise between the two possibly contradictory objectives of edge-preserving and smoothing, where the image edges are inevitably smoothed. To overcome the drawback, a SKWGIF with gradient constraint (GC-SKWGIF) is proposed by introducing the gradient constraints into the SKWGIF. The gradient constraints allow the filter to take into account the gradient variation of the edges in the filtering process, and therefore the image edges can be better preserved. To verify the effectiveness of the proposed filter, the GC-SKWGIF is applied to edge-aware smoothing, tone mapping of high range dynamic images, image denoising and haze removal. Both theoretical analysis and experimental results show that the proposed filter can produce good resultant images.
Read full abstract