OpenLvVision_OpenCv.lvlib:Flip.vim

Flips a 2D array around vertical, horizontal, or both axes.

The function cv::flip flips the array in one of three different ways (row and column indices are 0-based):

$ \texttt{dst}_{ij} = \begin{cases} \texttt{src}_{\texttt{src.rows}-i-1, j} & \text{if } \texttt{flipCode} = 0 \\ \texttt{src}_{i, \texttt{src.cols}-j-1} & \text{if } \texttt{flipCode} > 0 \\ \texttt{src}_{\texttt{src.rows}-i-1, \texttt{src.cols}-j-1} & \text{if } \texttt{flipCode} < 0 \end{cases} $

The example scenarios of using the function are the following:

  • Vertical flipping (flipCode == 0): Used to switch between top-left and bottom-left image origin. This is a typical operation in video processing on Microsoft Windows OS.
  • Horizontal flipping (flipCode > 0): Used with a subsequent horizontal shift and absolute difference calculation to check for vertical-axis symmetry.
  • Simultaneous horizontal and vertical flipping (flipCode < 0): Used with a subsequent shift and absolute difference calculation to check for central symmetry.
  • Reversing point arrays: The function can also be used to reverse the order of 1D point arrays (using flipCode > 0 or flipCode == 0).

For detailed information, please refer to the OpenCV documentation

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

cOpenLvVision__OpenCv_lvlib_Anythinglvclass

Dst

output array of the same size and type as src.

ci32

FlipCode

a flag to specify how to flip the array; 0 means flipping around the x-axis and positive value (for example, 1) means flipping around y-axis. Negative value (for example, -1) means flipping around both axes.

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