Commit c6e01ebe authored by Paul B Mahol's avatar Paul B Mahol

avfilter: add bilateral filter

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent a174e5f8
...@@ -16,6 +16,7 @@ version <next>: ...@@ -16,6 +16,7 @@ version <next>:
- photosensitivity filter - photosensitivity filter
- anlms filter - anlms filter
- arnndn filter - arnndn filter
- bilateral filter
version 4.2: version 4.2:
......
...@@ -6336,6 +6336,23 @@ The filter accepts the following option: ...@@ -6336,6 +6336,23 @@ The filter accepts the following option:
Set the minimal luminance value. Default is @code{16}. Set the minimal luminance value. Default is @code{16}.
@end table @end table
@section bilateral
Apply bilateral filter, spatial smoothing while preserving edges.
The filter accepts the following options:
@table @option
@item sigmaS
Set sigma of gaussian function to calculate spatial weight.
Allowed range is 0 to 10. Default is 0.1.
@item sigmaR
Set sigma of gaussian function to calculate range weight.
Allowed range is 0 to 1. Default is 0.1.
@item planes
Set planes to filter. Default is first only.
@end table
@section bitplanenoise @section bitplanenoise
Show and measure bit plane noise. Show and measure bit plane noise.
......
...@@ -164,6 +164,7 @@ OBJS-$(CONFIG_AVGBLUR_OPENCL_FILTER) += vf_avgblur_opencl.o opencl.o \ ...@@ -164,6 +164,7 @@ OBJS-$(CONFIG_AVGBLUR_OPENCL_FILTER) += vf_avgblur_opencl.o opencl.o \
opencl/avgblur.o boxblur.o opencl/avgblur.o boxblur.o
OBJS-$(CONFIG_BBOX_FILTER) += bbox.o vf_bbox.o OBJS-$(CONFIG_BBOX_FILTER) += bbox.o vf_bbox.o
OBJS-$(CONFIG_BENCH_FILTER) += f_bench.o OBJS-$(CONFIG_BENCH_FILTER) += f_bench.o
OBJS-$(CONFIG_BILATERAL_FILTER) += vf_bilateral.o
OBJS-$(CONFIG_BITPLANENOISE_FILTER) += vf_bitplanenoise.o OBJS-$(CONFIG_BITPLANENOISE_FILTER) += vf_bitplanenoise.o
OBJS-$(CONFIG_BLACKDETECT_FILTER) += vf_blackdetect.o OBJS-$(CONFIG_BLACKDETECT_FILTER) += vf_blackdetect.o
OBJS-$(CONFIG_BLACKFRAME_FILTER) += vf_blackframe.o OBJS-$(CONFIG_BLACKFRAME_FILTER) += vf_blackframe.o
......
...@@ -155,6 +155,7 @@ extern AVFilter ff_vf_avgblur; ...@@ -155,6 +155,7 @@ extern AVFilter ff_vf_avgblur;
extern AVFilter ff_vf_avgblur_opencl; extern AVFilter ff_vf_avgblur_opencl;
extern AVFilter ff_vf_bbox; extern AVFilter ff_vf_bbox;
extern AVFilter ff_vf_bench; extern AVFilter ff_vf_bench;
extern AVFilter ff_vf_bilateral;
extern AVFilter ff_vf_bitplanenoise; extern AVFilter ff_vf_bitplanenoise;
extern AVFilter ff_vf_blackdetect; extern AVFilter ff_vf_blackdetect;
extern AVFilter ff_vf_blackframe; extern AVFilter ff_vf_blackframe;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "libavutil/version.h" #include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 7 #define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 63 #define LIBAVFILTER_VERSION_MINOR 64
#define LIBAVFILTER_VERSION_MICRO 100 #define LIBAVFILTER_VERSION_MICRO 100
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment