HALCON Reference Manual 10.0.2
Table of Contents / Filters / Smoothing ClassesClassesClasses | | | Operators

info_smoothT_info_smoothinfo_smoothInfoSmoothInfoSmooth (Operator)

Name

info_smoothT_info_smoothinfo_smoothInfoSmoothInfoSmooth — Information on smoothing filter smooth_imagesmooth_imagesmooth_imageSmoothImageSmoothImage.

Signature

info_smooth( : : Filter, Alpha : Size, Coeffs)

Herror T_info_smooth(const Htuple Filter, const Htuple Alpha, Htuple* Size, Htuple* Coeffs)

Herror info_smooth(const HTuple& Filter, const HTuple& Alpha, HTuple* Size, HTuple* Coeffs)

void HOperatorSetX.InfoSmooth(
[in] VARIANT Filter, [in] VARIANT Alpha, [out] VARIANT* Size, [out] VARIANT* Coeffs)

Hlong HMiscX.InfoSmooth(
[in] BSTR Filter, [in] double Alpha, [out] VARIANT* Coeffs)

static void HOperatorSet.InfoSmooth(HTuple filter, HTuple alpha, out HTuple size, out HTuple coeffs)

static int HMisc.InfoSmooth(string filter, double alpha, out HTuple coeffs)

Description

The operator info_smoothinfo_smoothinfo_smoothInfoSmoothInfoSmooth returns an estimation of the width of the smoothing filters used in routine smooth_imagesmooth_imagesmooth_imageSmoothImageSmoothImage. For this purpose the underlying continuous impulse answers of FilterFilterFilterFilterfilter are scanned until a filter coefficient is smaller than five percent of the maximum coefficient (at the origin). AlphaAlphaAlphaAlphaalpha is the filter parameter (see smooth_imagesmooth_imagesmooth_imageSmoothImageSmoothImage). Currently four filters are supported (parameter FilterFilterFilterFilterfilter):

            '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 >= 0) are returned in CoeffsCoeffsCoeffsCoeffscoeffs in addition to the filter size.

Parallelization

Parameters

FilterFilterFilterFilterfilter (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Name of required filter.

Default value: 'deriche2' "deriche2" "deriche2" "deriche2" "deriche2"

List of values: 'deriche1'"deriche1""deriche1""deriche1""deriche1", 'deriche2'"deriche2""deriche2""deriche2""deriche2", 'shen'"shen""shen""shen""shen", 'gauss'"gauss""gauss""gauss""gauss"

AlphaAlphaAlphaAlphaalpha (input_control)  real HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Filter parameter: small values effect strong smoothing (reversed in case of 'gauss').

Default value: 0.5

Suggested values: 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 4.0, 5.0, 7.0, 10.0

Typical range of values: 0.01 ≤ Alpha Alpha Alpha Alpha alpha ≤ 50.0

Minimum increment: 0.01

Recommended increment: 0.1

Restriction: Alpha > 0.0

SizeSizeSizeSizesize (output_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Width of filter is approx. size x size pixels.

CoeffsCoeffsCoeffsCoeffscoeffs (output_control)  integer-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

In case of gauss filter: coefficients of the “positive” half of the 1D impulse answer.

Example (HDevelop)

info_smooth('deriche2',0.5,Size,Coeffs)
smooth_image(Input,Smooth,'deriche2',7)

Example (C)

info_smooth('deriche2',0.5,Size,Coeffs);
smooth_image(Input,&Smooth,'deriche2',7);

Example (HDevelop)

info_smooth('deriche2',0.5,Size,Coeffs)
smooth_image(Input,Smooth,'deriche2',7)

Example (HDevelop)

info_smooth('deriche2',0.5,Size,Coeffs)
smooth_image(Input,Smooth,'deriche2',7)

Example (HDevelop)

info_smooth('deriche2',0.5,Size,Coeffs)
smooth_image(Input,Smooth,'deriche2',7)

Result

If the parameter values are correct the operator info_smoothinfo_smoothinfo_smoothInfoSmoothInfoSmooth returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.

Possible Predecessors

read_imageread_imageread_imageReadImageReadImage

Possible Successors

smooth_imagesmooth_imagesmooth_imageSmoothImageSmoothImage

See also

smooth_imagesmooth_imagesmooth_imageSmoothImageSmoothImage

Module

Foundation


Table of Contents / Filters / Smoothing ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH