info_smoothπ
Short descriptionπ
info_smooth β Information on smoothing filter smooth_image.
Signatureπ
info_smooth( string Filter, real Alpha, out integer Size, out integer Coeffs )
Descriptionπ
The operator info_smooth returns an estimation of the
width of the smoothing filters used in routine smooth_image.
For this purpose the underlying continuous impulse answers of
Filter are scanned until a filter coefficient is smaller
than five percent of the maximum coefficient (at the origin).
Alpha is the filter parameter (see smooth_image).
Currently four filters are supported (parameter Filter):
βderiche1β, βderiche2β, βshenβ and βgaussβ.
The gauss filter was conventionally implemented with filter masks
(the other three are recursive filters). In the case of the gauss
filter the filter coefficients (of the one-dimensional impulse
answer \(f(n)\) with \(n \ge 0\)) are returned
in Coeffs in addition to the filter size.
For an explanation of the concept of smoothing filters see the introduction of chapter Filters / Smoothing.
Attentionπ
Note that filter operators may return unexpected results if an image with a reduced domain is used as input. Please refer to the chapter Filters.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
Filter (input_control) string β (string)
Name of required filter.
Default: 'deriche2'
List of values: 'deriche1', 'deriche2', 'gauss', 'shen'
Alpha (input_control) real β (real)
Filter parameter: small values effect strong smoothing (reversed in case of βgaussβ).
Default: 0.5
Suggested values: 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 4.0, 5.0, 7.0, 10.0
Minimum increment: 0.01
Recommended increment: 0.1
Restriction: Alpha > 0.0
Size (output_control) integer β (integer)
Width of filter is approx. size x size pixels.
Coeffs (output_control) integer-array β (integer)
In case of gauss filter: coefficients of the βpositiveβ half of the 1D impulse answer.
Exampleπ
(HDevelop)
Resultπ
If the parameter values are correct the operator
info_smooth returns the value 2 (H_MSG_TRUE). Otherwise an
exception is raised.
Combinations with other operatorsπ
Combinations
Possible predecessors
Possible successors
See also
Moduleπ
Foundation