bit_or — Bit-by-bit OR of all pixels of the input images.
The operator bit_or calculates the “or” of all pixels of the input images bit by bit. The semantics of the “or”operation corresponds to that of C for the respective types (signed char, unsigned char, short, unsigned short, int/long). The images must have the same size and pixel type. The pixels within the definition range of the image in the first parameter are processed.
Several images can be processed in one call. In this case both input parameters contain the same number of images which are then processed in pairs. An output image is generated for every pair.
Input image(s) 1.
Input image(s) 2.
Result image(s) by OR-operation.
read_image(Image1,'fabrik') dev_display (Image1) read_image(Image2,'monkey') dev_display (Image2) bit_or(Image1,Image2,ImageBitOr) dev_display (ImageBitOr)
If the images are correct (type and number) the operator bit_or returns the value 2 (H_MSG_TRUE). The behavior in case of empty input (no input images available) is set via the operator set_system(::'no_object_result',<Result>:) If necessary an exception is raised.