bit_xorbit_xorBitXorBitXorbit_xor (算子名称)
名称
bit_xorbit_xorBitXorBitXorbit_xor — Bit-by-bit XOR of all pixels of the input images.
参数签名
描述
该算子 bit_xorbit_xorBitXorBitXorBitXorbit_xor calculates the “xor”
of all pixels of the input images bit by bit.
The semantics of the “xor” 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.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 在元组级别自动并行化。
- 在图像通道级别自动并行化。
- Automatically parallelized on domain level.
参数表
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.
ImageXorImageXorImageXorImageXorimageXorimage_xor (output_object) (multichannel-)image(-array) → objectHImageHObjectHImageHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4)
Result image(s) by XOR-operation.
例程 (HDevelop)
read_image(Image1,'fabrik')
dev_display (Image1)
read_image(Image2,'monkey')
dev_display (Image2)
bit_xor(Image1,Image2,ImageBitXor)
dev_display (ImageBitXor)
例程 (C)
read_image(&Image0,"monkey");
disp_image(Image0,WindowHandle);
read_image(&Image1,"fabrik");
disp_image(Image1,WindowHandle);
bit_xor(Image0,Image1,&ImageBitX);
disp_image(ImageBitX,WindowHandle);
例程 (HDevelop)
read_image(Image1,'fabrik')
dev_display (Image1)
read_image(Image2,'monkey')
dev_display (Image2)
bit_xor(Image1,Image2,ImageBitXor)
dev_display (ImageBitXor)
例程 (HDevelop)
read_image(Image1,'fabrik')
dev_display (Image1)
read_image(Image2,'monkey')
dev_display (Image2)
bit_xor(Image1,Image2,ImageBitXor)
dev_display (ImageBitXor)
例程 (HDevelop)
read_image(Image1,'fabrik')
dev_display (Image1)
read_image(Image2,'monkey')
dev_display (Image2)
bit_xor(Image1,Image2,ImageBitXor)
dev_display (ImageBitXor)
结果
If the parameter values are correct 该算子 bit_xorbit_xorBitXorBitXorBitXorbit_xor
返回值 2 (
H_MSG_TRUE)
.
The behavior in case of empty input (no input images available) can be
determined by 该算子
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.
可替代算子
bit_orbit_orBitOrBitOrBitOrbit_or,
bit_andbit_andBitAndBitAndBitAndbit_and,
add_imageadd_imageAddImageAddImageAddImageadd_image
参考其它
bit_orbit_orBitOrBitOrBitOrbit_or,
bit_andbit_andBitAndBitAndBitAndbit_and
模块
Foundation