diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-09-20 13:47:45 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-09-28 22:57:33 +0200 |
commit | b2ec4edef798af1112ed7c3aadc3a2c91f7d3665 (patch) | |
tree | 6252561b58fa6c82824b770b304e077b079f1dfa /doc/filters.texi | |
parent | c20577806f0a161c6867e72f884d020a253de10a (diff) | |
download | ffmpeg-b2ec4edef798af1112ed7c3aadc3a2c91f7d3665.tar.gz |
avfilter: add morpho filter
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 0b7e21f7f8..568c2995bc 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -10257,6 +10257,7 @@ A number representing position of the first frame with respect to the telecine pattern. This is to be used if the stream is cut. The default value is @code{0}. @end table +@anchor{dilation} @section dilation Apply dilation effect to the video. @@ -11577,6 +11578,7 @@ value. @end table +@anchor{erosion} @section erosion Apply erosion effect to the video. @@ -15352,6 +15354,43 @@ Default value is 0. This filter supports the all above options as @ref{commands}. +@section morpho + +This filter allows to apply main morphological grayscale transforms, +erode and dilate with arbitrary structures set in second input stream. + +Unlike naive implementation and much slower performance in @ref{erosion} +and @ref{dilation} filters, when speed is critical @code{morpho} filter +should be used instead. + +A description of accepted options follows, + +@table @option +@item mode +Set morphological transform to apply, can be: + +@table @samp +@item erode +@item dilate +@item open +@item close +@end table +Default is @code{erode}. + +@item planes +Set planes to filter, by default all planes except alpha are filtered. + +@item structure +Set which structure video frames will be processed from second input stream, +can be @var{first} or @var{all}. Default is @var{all}. +@end table + +The @code{morpho} filter also supports the @ref{framesync} options. + +@subsection Commands + +This filter supports same @ref{commands} as options. + @section mpdecimate Drop frames that do not differ greatly from the previous frame in |