bit_orbit_orBitOrBitOrbit_or (Operator)
Name
bit_orbit_orBitOrBitOrbit_or
— Bit-by-bit OR of all pixels of the input images.
Signature
Description
The operator bit_orbit_orBitOrBitOrBitOrbit_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.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
- Automatically parallelized on channel level.
- Automatically parallelized on domain level.
Parameters
Image1Image1Image1Image1image1image_1
(input_object) (multichannel-)image(-array) →
objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4)
Input image(s) 1.
Image2Image2Image2Image2image2image_2
(input_object) (multichannel-)image(-array) →
objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4)
Input image(s) 2.
ImageOrImageOrImageOrImageOrimageOrimage_or
(output_object) (multichannel-)image(-array) →
objectHImageHObjectHImageHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4)
Result image(s) by OR-operation.
Example (HDevelop)
read_image(Image1,'fabrik')
dev_display (Image1)
read_image(Image2,'monkey')
dev_display (Image2)
bit_or(Image1,Image2,ImageBitOr)
dev_display (ImageBitOr)
Example (C)
read_image(&Image1,"monkey");
disp_image(Image1,WindowHandle);
read_image(&Image2,"fabrik");
disp_image(Image2,WindowHandle);
bit_or(Image1,Image2,&ImageBitOr);
disp_image(ImageBitOr,WindowHandle);
Example (HDevelop)
read_image(Image1,'fabrik')
dev_display (Image1)
read_image(Image2,'monkey')
dev_display (Image2)
bit_or(Image1,Image2,ImageBitOr)
dev_display (ImageBitOr)
Example (HDevelop)
read_image(Image1,'fabrik')
dev_display (Image1)
read_image(Image2,'monkey')
dev_display (Image2)
bit_or(Image1,Image2,ImageBitOr)
dev_display (ImageBitOr)
Example (HDevelop)
read_image(Image1,'fabrik')
dev_display (Image1)
read_image(Image2,'monkey')
dev_display (Image2)
bit_or(Image1,Image2,ImageBitOr)
dev_display (ImageBitOr)
Result
If the images are correct (type and number) the operator bit_orbit_orBitOrBitOrBitOrbit_or
returns the value TRUE.
The behavior in case of empty input (no input images available) is
set via the operator
set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)
If necessary an exception is raised.
Alternatives
bit_andbit_andBitAndBitAndBitAndbit_and
,
add_imageadd_imageAddImageAddImageAddImageadd_image
See also
bit_xorbit_xorBitXorBitXorBitXorbit_xor
,
bit_andbit_andBitAndBitAndBitAndbit_and
Module
Foundation