KlassenKlassenKlassenKlassen | | | | Operatoren

bit_lshiftbit_lshiftBitLshiftbit_lshiftBitLshiftBitLshift (Operator)

Name

bit_lshiftbit_lshiftBitLshiftbit_lshiftBitLshiftBitLshift — Links-Shift aller Pixel des Bildes.

Signatur

bit_lshift(Image : ImageLShift : Shift : )

Herror bit_lshift(const Hobject Image, Hobject* ImageLShift, const Hlong Shift)

Herror T_bit_lshift(const Hobject Image, Hobject* ImageLShift, const Htuple Shift)

Herror bit_lshift(Hobject Image, Hobject* ImageLShift, const HTuple& Shift)

HImage HImage::BitLshift(const HTuple& Shift) const

HImageArray HImageArray::BitLshift(const HTuple& Shift) const

void BitLshift(const HObject& Image, HObject* ImageLShift, const HTuple& Shift)

HImage HImage::BitLshift(Hlong Shift) const

void HOperatorSetX.BitLshift(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImageLShift, [in] VARIANT Shift)

IHImageX* HImageX.BitLshift([in] Hlong Shift)

static void HOperatorSet.BitLshift(HObject image, out HObject imageLShift, HTuple shift)

HImage HImage.BitLshift(int shift)

Beschreibung

bit_lshiftbit_lshiftBitLshiftbit_lshiftBitLshiftBitLshift berechnet einen bitweisen „links-Shift“ aller Pixel des Eingabebildes. Die Semantik der „links-Shift“ Operation entspricht der von C („<<“) für die jeweiligen Typen (signed char, unsigned char, short, unsigned short, int/long). Tritt ein Überlauf auf, so wird das Ergebnis auf den maximalen Wert des jeweiligen Pixeltyps begrenzt. Es werden nur die Bildpunkte innerhalb des Definitionsbereiches des Bildes bearbeitet.

Es können mehrere Bilder pro Aufruf bearbeitet werden. Zu jedem Eingabebild wird ein Ausgabebild erzeugt.

Parallelisierung

Parameter

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

Eingabebild(er).

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

Ergebnis(se) der Shift-Operation.

ShiftShiftShiftShiftShiftshift (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Shift-Wert.

Defaultwert: 3

Wertevorschläge: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 20, 24, 30, 31

Typischer Wertebereich: 0 ≤ Shift Shift Shift Shift Shift shift ≤ 31

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

Restriktion: Shift >= 1 && Shift <= 31

Beispiel (C)

read_image(&ByteImage,"fabrik");
convert_image_type(ByteImage,&Int2Image,"int2");
bit_lshift(Int2Image,&FullInt2Image,8);

Ergebnis

Sind die Bilder korrekt (Typ) und hat ShiftShiftShiftShiftShiftshift eine gültigen Wert, dann liefert bit_lshiftbit_lshiftBitLshiftbit_lshiftBitLshiftBitLshift den Wert 2 (H_MSG_TRUE). Das Verhalten bei leerer Eingabe (keine Eingabebilder vorhanden) lässt sich mittels 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>) festlegen. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Alternativen

scale_imagescale_imageScaleImagescale_imageScaleImageScaleImage

Siehe auch

bit_rshiftbit_rshiftBitRshiftbit_rshiftBitRshiftBitRshift

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren