bit_notbit_notBitNotBitNotbit_not (算子名称)

名称

bit_notbit_notBitNotBitNotbit_not — Complement all bits of the pixels.

参数签名

bit_not(Image : ImageNot : : )

Herror bit_not(const Hobject Image, Hobject* ImageNot)

Herror T_bit_not(const Hobject Image, Hobject* ImageNot)

void BitNot(const HObject& Image, HObject* ImageNot)

HImage HImage::BitNot() const

static void HOperatorSet.BitNot(HObject image, out HObject imageNot)

HImage HImage.BitNot()

def bit_not(image: HObject) -> HObject

描述

该算子 bit_notbit_notBitNotBitNotBitNotbit_not calculates the “complement” of all pixels of the input image bit by bit. The semantics of the “complement” operation corresponds to that of C (“~”) for the respective types (signed char, unsigned char, short, unsigned short, int/long). Only the pixels within the definition range of the image are processed.

Several images can be processed in one call. An output image is generated for every input image.

运行信息

参数表

ImageImageImageImageimageimage (input_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4)

Input image(s).

ImageNotImageNotImageNotImageNotimageNotimage_not (output_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4)

Result image(s) by complement operation.

例程 (HDevelop)

read_image(Image,'monkey')
dev_display(Image)
bit_not(Image,ImageBitNot)
dev_display(ImageBitNot)

例程 (C)

read_image(&Image,"monkey");
disp_image(Image,WindowHandle);
bit_not(Image,&ImageBitNot);
disp_image(ImageBitNot,WindowHandle);

例程 (HDevelop)

read_image(Image,'monkey')
dev_display(Image)
bit_not(Image,ImageBitNot)
dev_display(ImageBitNot)

例程 (HDevelop)

read_image(Image,'monkey')
dev_display(Image)
bit_not(Image,ImageBitNot)
dev_display(ImageBitNot)

例程 (HDevelop)

read_image(Image,'monkey')
dev_display(Image)
bit_not(Image,ImageBitNot)
dev_display(ImageBitNot)

结果

If the images are correct (type) 该算子 bit_notbit_notBitNotBitNotBitNotbit_not 返回值 2 ( H_MSG_TRUE) . The behavior in case of empty input (no input images available) is set via 该算子 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_slicebit_sliceBitSliceBitSliceBitSlicebit_slice, bit_maskbit_maskBitMaskBitMaskBitMaskbit_mask

模块

Foundation