ClassesClassesClassesClasses | | | | Operators

bit_notbit_notBitNotbit_notBitNotBitNot (Operator)

Name

bit_notbit_notBitNotbit_notBitNotBitNot — Complement all bits of the pixels.

Signature

bit_not(Image : ImageNot : : )

Herror bit_not(const Hobject Image, Hobject* ImageNot)

Herror T_bit_not(const Hobject Image, Hobject* ImageNot)

Herror bit_not(Hobject Image, Hobject* ImageNot)

HImage HImage::BitNot() const

HImageArray HImageArray::BitNot() const

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

HImage HImage::BitNot() const

void HOperatorSetX.BitNot(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImageNot)

IHImageX* HImageX.BitNot()

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

HImage HImage.BitNot()

Description

The operator bit_notbit_notBitNotbit_notBitNotBitNot 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.

Parallelization

Parameters

ImageImageImageImageImageimage (input_object)  (multichannel-)image(-array) objectHImageHImageHImageHImageXHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4)

Input image(s).

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

Result image(s) by complement operation.

Example (HDevelop)

read_image(Image0,'monkey')
disp_image(Image0,WindowHandle)
bit_not(Image0,ImageBitN)
disp_image(ImageBitN,WindowHandle)

Example (C)

read_image(&Image0,"monkey");
disp_image(Image0,WindowHandle);
bit_not(Image0,&ImageBitN);
disp_image(ImageBitN,WindowHandle);

Example (HDevelop)

read_image(Image0,'monkey')
disp_image(Image0,WindowHandle)
bit_not(Image0,ImageBitN)
disp_image(ImageBitN,WindowHandle)

Example (HDevelop)

read_image(Image0,'monkey')
disp_image(Image0,WindowHandle)
bit_not(Image0,ImageBitN)
disp_image(ImageBitN,WindowHandle)

Example (HDevelop)

read_image(Image0,'monkey')
disp_image(Image0,WindowHandle)
bit_not(Image0,ImageBitN)
disp_image(ImageBitN,WindowHandle)

Example (HDevelop)

read_image(Image0,'monkey')
disp_image(Image0,WindowHandle)
bit_not(Image0,ImageBitN)
disp_image(ImageBitN,WindowHandle)

Result

If the images are correct (type) the operator bit_notbit_notBitNotbit_notBitNotBitNot 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>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>) If necessary an exception is raised.

Alternatives

bit_orbit_orBitOrbit_orBitOrBitOr, bit_andbit_andBitAndbit_andBitAndBitAnd, add_imageadd_imageAddImageadd_imageAddImageAddImage

See also

bit_slicebit_sliceBitSlicebit_sliceBitSliceBitSlice, bit_maskbit_maskBitMaskbit_maskBitMaskBitMask

Module

Foundation


ClassesClassesClassesClasses | | | | Operators