diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/filters.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/filters.rst b/docs/filters.rst index d962b31..bd7044d 100644 --- a/docs/filters.rst +++ b/docs/filters.rst @@ -543,6 +543,23 @@ Non-local-means denoising Sigma influencing the Gaussian weighting. +Horizontal interpolation +------------------------ + +.. gobj:class:: horizontal-interpolate + + Interpolate masked values in rows of an image. For all pixels equal to one + in the mask, find the closest pixel where mask is zero to the left and right + and linearly interpolate the value in the current pixel based on the found + left and right values. If the mask goes to the left or right border of the + image and on the other side there are at least two non-masked pixels + :math:`x_1` and :math:`x_2`, compute the value in the current pixel + :math:`x` by (in case the mask goes to the right border, left is analogous) + :math:`f(x) = f(x_2) + (x - x_2) * (f(x_2) - f(x_1))`. In case there is only + one valid pixel on one of the borders and all the others are masked, use + that pixel's value in all the remaining ones. + + Stream transformations ====================== |