OpenLvVision_OpenCv.lvlib:BoxFilter.vim

Blurs an image using the box filter.

The function smooths an image using the kernel:

$ \texttt{K} = \alpha \begin{bmatrix} 1 & 1 & 1 & \cdots & 1 & 1 \\ 1 & 1 & 1 & \cdots & 1 & 1 \\ \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\ 1 & 1 & 1 & \cdots & 1 & 1 \end{bmatrix} $

where

$ \alpha = \begin{cases} \frac{1}{\texttt{ksize.width} \cdot \texttt{ksize.height}} & \text{when } \texttt{normalize=true} \\ 1 & \text{otherwise} \end{cases} $

Unnormalized box filter is useful for computing various integral characteristics over each pixel neighborhood, such as covariance matrices of image derivatives (used in dense optical flow algorithms, and so on). If you need to compute pixel sums over variable-size windows, use integral.

For detailed information, please refer to the OpenCV documentation

OpenLvVision_OpenCv.lvlib:BoxFilter.vim

cerrcodeclst

error in

error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    cbool

    status

    status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    ci32

    code

    cstr

    source

    source describes the origin of the error or warning.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Src

input image; it can have any number of channels, which are processed independently, but the depth should be CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Dst

output image of the same size and type as src.

ci32

BorderTypes

border mode used to extrapolate pixels outside of the image, see BorderTypes. BORDER_WRAP is not supported.

BORDER_CONSTANT = 0, !< `iiiiii|abcdefgh|iiiiiii` with some specified `i`

BORDER_REPLICATE = 1, `aaaaaa|abcdefgh|hhhhhhh`

BORDER_REFLECT = 2, `fedcba|abcdefgh|hgfedcb`

BORDER_WRAP = 3, `cdefgh|abcdefgh|abcdefg`

BORDER_REFLECT_101 = 4, `gfedcb|abcdefgh|gfedcba`

BORDER_TRANSPARENT = 5, `uvwxyz|abcdefgh|ijklmno` - Treats outliers as transparent.

BORDER_ISOLATED = 16 Interpolation restricted within the ROI boundaries.

cnclst

Size

blurring kernel size.

    ci32

    X

    ci32

    Y

cnclst

Anchor

anchor point; default value Point(-1,-1) means that the anchor is at the kernel center.

    ci32

    X

    ci32

    Y

cbool

normalize

flag, specifying whether the kernel is normalized by its area or not.

ierrcodeclst

error out

error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    ibool

    status

    status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

    ii32

    code

    istr

    source

    source describes the origin of the error or warning.

    Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

iOpenLvVision__OpenCv_lvlib_Anythinglvclass

Dst out

output image of the same size and type as src.