Operator AND

Operator Library: Logic

The operator AND performs a bitwise logical AND operation. Each output bit is set to a logical "1" if the corresponding bits at all input links are "1", otherwise the output is "0". The number of input links has to be selected at the instantiation of the module.

Thus the output bit i of N inputs is

All IN links of the AND operator need to have the same link format as port I[000]. Therefore, you need to configure all IN links accordingly.

You find the link format of port I[000] in the link properties of any IN link connected to operator AND: They are displayed in column "Destination Port", fields "Bit Width" and "Parallelism".

To configure the link format of your IN links to operator AND correctly, you simply enter the values of bit width and parallelism you find in column "Destination Port" into the according fields of column "Value".

The coloring of the link informs you, as always in VisualApplets, about the correctness of your link configuration.

Incorrect configuration of IN link:

Correct configuration of IN link:

I/O Properties

Property Value
Operator Type O
Input Links I0, data input
I1..IN-1, data input
Output Link O, data output

Supported Link Format

Link Parameter Input Link I0 Input Link I1..IN-1 Output Link O
Bit Width [1, 64]1 as I as I
Arithmetic {unsigned, signed} as I as I
Parallelism any as I as I
Kernel Columns any as I as I
Kernel Rows any as I as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D, VALT_SIGNAL} as I as I
Color Format any as I as I
Color Flavor any as I as I
Max. Img Width any as I as I
Max. Img Height any as I as I

1

The range of the input bit width is [1, 64] for unsigned values. For signed inputs, the range is [2, 64]. For unsigned color inputs, the range is [3, 63] and for signed color, the range is [6, 63].

Parameters

None

Examples of Use

The use of operator AND is shown in the following examples:

  • 'Laser Triangulation'

    Examples - A high speed and robust laser line detection algorithm. The algorithm determines center of gravity coordinates to obtain sub-pixel resolution results.

  • 'Blob 1D'

    Examples - Shows the usage of operator Blob_Analysis_1D in line scan applications.

  • 'Blob 2D'

    Examples - Shows the usage of operator Blob_Analysis_2D. The applet binarizes the input data and determines the blob analysis results. The results as well as the original image are output using two DMA channels.

  • 'Blob2D ROI Selection'

    Examples - The blob analysis operator is applied to an input camera image. The applet shows the usage of the blob data in the applet. In this case, the object with the maximum are is localized and the coordinates are used to cut out the object from the original image.

  • 'HSL Color Classification'

    Examples - Color Classification is very simple on HSL images. The applet converts the RGB image into an HSL image and performs a color classification. The hue is filtered using a lookup table. Moreover, the saturation and lightness is thresholded using custom threshold values.

  • 'Rebuild of Operator TrgPortLine with VisualApplets Signal Processing Operators'

    A VisualApplets design example where all functions of operator TrgPortLine are rebuild using other signal processing operators. Allows custom trigger modules.