diff options
author | Tomas Farago <sensej007@email.cz> | 2021-09-09 14:41:01 +0200 |
---|---|---|
committer | Tomas Farago <sensej007@email.cz> | 2021-09-09 14:48:14 +0200 |
commit | 84c5572c5f81bba8cfd73e8b64cadbd401d489c8 (patch) | |
tree | 03446a36a582e82e7037e80db2197b0dde1d13ab /docs | |
parent | d1abb276665ed3b6f59de2b6b0301b08f133115a (diff) | |
download | ufo-filters-84c5572c5f81bba8cfd73e8b64cadbd401d489c8.tar.gz ufo-filters-84c5572c5f81bba8cfd73e8b64cadbd401d489c8.tar.bz2 ufo-filters-84c5572c5f81bba8cfd73e8b64cadbd401d489c8.tar.xz ufo-filters-84c5572c5f81bba8cfd73e8b64cadbd401d489c8.zip |
stripe-filter: add vertical sigma parameter
Which allows filtering of rings which are not perfectly straight or
which are broader. vertical-sigma parameter roughly specifies the
inclination from "perfectly vertical" stripes.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/filters.rst | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/docs/filters.rst b/docs/filters.rst index 2906401..5227f3b 100644 --- a/docs/filters.rst +++ b/docs/filters.rst @@ -930,17 +930,27 @@ Stripe filtering Filter vertical stripes. The input and output are in 2D frequency domain. The filter multiplies horizontal frequencies (for frequency ky=0) with a - Gaussian profile centered at 0 frequency. + Gaussian profile centered at 0 frequency if ``vertical-sigma`` is 0. + Otherwise it applies also a vertical Gaussian profile (1 - Gaussian), which + enables filtering of not perfectly vertical stripes, which is useful for + broader stripes and stripes which are not perfectly straight. Example usage:: $ ufo-launch read path=sino.tif ! fft dimensions=2 ! filter-stripes sigma=1 ! ifft dimensions=2 ! write filename=sino-filtered.tif - .. gobj:prop:: sigma:float + .. gobj:prop:: horizontal-sigma:float + + Horizontal filter strength, which is the sigma of the Gaussian. Small + values, e.g. 1e-7 cause only the zero frequency to remain in the + signal, i.e. stronger filtering. Values around 1 are a good starting + point. + + .. gobj:prop:: vertical-sigma:float - Filter strength, which is the sigma of the gaussian. Small values, e.g. - 1e-7 cause only the zero frequency to remain in the signal, i.e. - stronger filtering. + Vertical filter strength, which is the sigma of the Gaussian. The larger + the value, the more non-vertical frequencies are removed. Value around 4 + is a good starting point. 1D stripe filtering |