Guided filter is a kind of edge-preserving smoothing filter. Same as bilateral filter, this image filter can also filter out noise or texture while retaining sharp edges.[1]
|
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
|
This article may be too technical for most readers to understand. (October 2020)
|
|
This article needs additional citations for verification. (October 2020)
|
|
This article appears to have insufficient references to demonstrate notability. However, an editor has performed a search and claims that there are sufficient sources to indicate that this is a notable topic. (October 2020)
|
|
Unlike the bilateral filter, the guided image filter has two advantages: first, Bilateral filters have very high computational complexity, but the guided image filter does not use too complicated mathematical calculations which has linear computational complexity. Furthermore, due to the mathematical model, bilateral filters sometimes have unwanted gradient reversal artifacts and cause image distortion. While the guided image filter, since the filter is mathematically based on linear combination, the output image must be consistent with the gradient direction of the guidance image, and the problem of gradient reversal does not occur.
One key assumption of the guided filter is that the relation between guidance
and the filtering output
is linear. Suppose that
is a linear transformation of
in a window
centered at the pixel
.
In order to determine the linear coefficient
, constraints from the filtering input
are required. Model the output
as the input
subtract some unwanted components
, such as noise/textures.
The following is the basic model of the guided image filter:
(1)

(2)

In the above formula:
-
is the
output pixel;
-
is the
input pixel;
-
is the
pixel of noise components;
-
is the
guidance image pixel;
-
are some linear coefficients assumed to be constant in
.
The reason to define as linear combination is that the boundary of an object is related to its gradient. The local linear model ensures that
has an edge only if
has an edge, since
.
Subtract (1) and (2) to get formula (3);At the same time, define a cost function (4):
(3)

(4)

In the above formula:
-
is a regularization parameter penalizing large
;
-
is a window centered at the pixel
.
And the cost function’s solution is given by:
(5)

(6)

In the above formula:
-
and
are the mean and variance of
in
;
-
is the number of pixels in
;
-
is the mean of
in
.
After obtaining the linear coefficients
, we can calculate the filtering output
by (1)
This article is issued from web site
Wikipedia. The original article may be a bit shortened or modified. Some links may have been modified. The text is licensed under “Creative Commons – Attribution – Sharealike” [1] and some of the text can also be licensed under the terms of the “GNU Free Documentation License” [2]. Additional terms may apply for the media files. By using this site, you agree to our Legal pages . Web links:
[1] [2]