summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorTomas Farago <sensej007@email.cz>2019-07-01 14:04:33 +0200
committerTomas Farago <sensej007@email.cz>2019-08-01 12:46:06 +0200
commit818125fa4da8fdfc8ce7e9e032fffb3717bdb5ec (patch)
treefeb56a5e2a78ca0a7bce5477acc5b7fbf193a45f /docs
parent0eb7aa76b06a2c71b492b6c5eade5b7de470da7e (diff)
downloadufo-filters-818125fa4da8fdfc8ce7e9e032fffb3717bdb5ec.tar.gz
ufo-filters-818125fa4da8fdfc8ce7e9e032fffb3717bdb5ec.tar.bz2
ufo-filters-818125fa4da8fdfc8ce7e9e032fffb3717bdb5ec.tar.xz
ufo-filters-818125fa4da8fdfc8ce7e9e032fffb3717bdb5ec.zip
Add HorizontalInterpolate task
which linearly interpolates rows of an image based on a specified mask.
Diffstat (limited to 'docs')
-rw-r--r--docs/filters.rst17
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
======================