Name
binomial_filter binomial_filter BinomialFilter binomial_filter BinomialFilter BinomialFilter — Smooth an image using the binomial filter.
binomial_filter binomial_filter BinomialFilter binomial_filter BinomialFilter BinomialFilter smooths the image Image Image Image Image Image image using a
binomial filter with a mask size of MaskWidth MaskWidth MaskWidth MaskWidth MaskWidth maskWidth * MaskHeight MaskHeight MaskHeight MaskHeight MaskHeight maskHeight
pixels and returns the smoothed image in ImageBinomial ImageBinomial ImageBinomial ImageBinomial ImageBinomial imageBinomial .
The binomial filter is a very good approximation of a Gaussian
filter that can be implemented extremely efficiently using only
integer operations. Hence, binomial_filter binomial_filter BinomialFilter binomial_filter BinomialFilter BinomialFilter is very fast.
Let m = MaskHeight MaskHeight MaskHeight MaskHeight MaskHeight maskHeight and n = MaskWidth MaskWidth MaskWidth MaskWidth MaskWidth maskWidth . Then,
the filter coefficients
are given by binomial
coefficients
as follows:
Here, i = 0, ..., m-1 and j = 0, ..., n-1. The binomial filter performs
approximately the same smoothing as a Gaussian filter with
, where for simplicity it is
assumed that m = n. In detail, the relationship between n and
is:
n
3
0.7523
5
1.0317
7
1.2505
9
1.4365
11
1.6010
13
1.7502
15
1.8876
17
2.0157
19
2.1361
21
2.2501
23
2.3586
25
2.4623
27
2.5618
29
2.6576
31
2.7500
33
2.8395
35
2.9262
37
3.0104
If different values are chosen for MaskHeight MaskHeight MaskHeight MaskHeight MaskHeight maskHeight and
MaskWidth MaskWidth MaskWidth MaskWidth MaskWidth maskWidth , the above relation between n and
still holds and refers to the amount of
smoothing in the row and column directions.
binomial_filter binomial_filter BinomialFilter binomial_filter BinomialFilter BinomialFilter can be executed on OpenCL devices for all supported
image types.
Supports OpenCL compute devices.
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on tuple level.
Automatically parallelized on channel level.
Automatically parallelized on domain level.
Filter width.
Default value: 5
List of values: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37
Filter height.
Default value: 5
List of values: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37
If the parameter values are correct the operator
binomial_filter binomial_filter BinomialFilter binomial_filter BinomialFilter BinomialFilter returns the value 2 (H_MSG_TRUE). The behavior in
case of empty input (no input images available) is set via the
operator set_system('no_object_result',<Result>) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) . If
necessary an exception is raised.
read_image read_image ReadImage read_image ReadImage ReadImage ,
grab_image grab_image GrabImage grab_image GrabImage GrabImage
regiongrowing regiongrowing Regiongrowing regiongrowing Regiongrowing Regiongrowing ,
threshold threshold Threshold threshold Threshold Threshold ,
sub_image sub_image SubImage sub_image SubImage SubImage ,
dyn_threshold dyn_threshold DynThreshold dyn_threshold DynThreshold DynThreshold ,
auto_threshold auto_threshold AutoThreshold auto_threshold AutoThreshold AutoThreshold
gauss_filter gauss_filter GaussFilter gauss_filter GaussFilter GaussFilter ,
smooth_image smooth_image SmoothImage smooth_image SmoothImage SmoothImage ,
derivate_gauss derivate_gauss DerivateGauss derivate_gauss DerivateGauss DerivateGauss ,
isotropic_diffusion isotropic_diffusion IsotropicDiffusion isotropic_diffusion IsotropicDiffusion IsotropicDiffusion
mean_image mean_image MeanImage mean_image MeanImage MeanImage ,
anisotropic_diffusion anisotropic_diffusion AnisotropicDiffusion anisotropic_diffusion AnisotropicDiffusion AnisotropicDiffusion ,
sigma_image sigma_image SigmaImage sigma_image SigmaImage SigmaImage ,
gen_lowpass gen_lowpass GenLowpass gen_lowpass GenLowpass GenLowpass
Foundation