Skip to content

bit_notBitNotBitNotbit_notbit_not🔗

説明🔗

bit_notBitNotBitNotbit_notbit_not — 全ピクセルに対する補数「NOT」処理を行う。

書式🔗

bit_not( image Image, out image ImageNot )void BitNot( const HObject& Image, HObject* ImageNot )static void HOperatorSet.BitNot( HObject image, out HObject imageNot )def bit_not( image: HObject ) -> HObject

Herror bit_not( const Hobject Image, Hobject* ImageNot )

Herror T_bit_not( const Hobject Image, Hobject* ImageNot )

HImage HImage::BitNot( ) const

HImage HImage.BitNot( )

説明🔗

オペレーター bit_notBitNot は、入力画像のすべてのピクセルについて ビットごとの補数を計算します。 補数演算の意味は、C言語の各型(signed char, unsigned char, short, unsigned short, int/long)に対する補数(“~”) に対応します。 入力画像の定義領域内のピクセルのみが処理の対象となります。

* 一度の呼び出しで複数の画像を処理することができます。 出力画像はすべての入力画像に対して生成されます。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • tupleレベルで自動的に並列演算処理を実施

  • チャンネルレベルで自動的に並列演算処理を実施

  • ドメインレベルで自動的に並列演算処理を実施

パラメーター🔗

Imageimageimage (input_object) (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4)Hobject (byte / direction / cyclic / int1 / int2 / uint2 / int4)

入力画像

ImageNotimageNotimage_not (output_object) (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4)Hobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4)

補数「NOT」演算結果の画像

例🔗

(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)\;

結果🔗

画像が正しい型をもつならば、オペレーター bit_notBitNot は値 2 (H_MSG_TRUE) を返します。 空の入力(利用可能な入力画像がない)の場合、オペレーター set_system(::'no_object_result',<Result>:) を通して動作します。 必要であれば、例外処理が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

他の選択候補

bit_orBitOr, bit_andBitAnd, add_imageAddImage

関連項目

bit_sliceBitSlice, bit_maskBitMask

モジュール🔗

Foundation