OpenLvVision_OpenCv.lvlib:Filter2D.vim

Convolves an image with the kernel.

The function applies an arbitrary linear filter to an image. In-place operation is supported. When the aperture is partially outside the image, the function interpolates outlier pixel values according to the specified border mode.

The function does actually compute correlation, not the convolution:

$ \texttt{dst}(x,y) = \sum_{\substack{0 \leq x' < \texttt{kernel.cols} \\ 0 \leq y' < \texttt{kernel.rows}}} \texttt{kernel}(x',y') \cdot \texttt{src}(x + x' - \texttt{anchor.x}, y + y' - \texttt{anchor.y}) $

That is, the kernel is not mirrored around the anchor point. If you need a real convolution, flip the kernel using flip and set the new anchor to (kernel.cols - anchor.x - 1, kernel.rows - anchor.y - 1).

The function uses the DFT-based algorithm in case of sufficiently large kernels ($\sim 11 \times 11$ or larger) and the direct algorithm for small kernels.

For detailed information, please refer to the OpenCV documentation

OpenLvVision_OpenCv.lvlib:Filter2D.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.

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Dst

output image of the same size and the same number of channels as src.

cnclst

Anchor

anchor of the kernel that indicates the relative position of a filtered point within the kernel; the anchor should lie within the kernel; default value (-1,-1) means that the anchor is at the kernel center.

    ci32

    X

    ci32

    Y

cdbl

Delta

number of times dilation is applied.

ci32

BorderTypes

pixel extrapolation method, see BorderTypes. BORDER_WRAP is not suported.

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.

c2du8

Kernel

convolution kernel (or rather a correlation kernel), a single-channel floating point matrix; if you want to apply different kernels to different channels, split the image into separate color planes using split and process them individually.

    cu8

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 the same number of channels as src.