KlassenKlassenKlassenKlassen | | | | Operatoren

hamming_change_regionhamming_change_regionHammingChangeRegionhamming_change_regionHammingChangeRegionHammingChangeRegion (Operator)

Name

hamming_change_regionhamming_change_regionHammingChangeRegionhamming_change_regionHammingChangeRegionHammingChangeRegion — Erzeugen einer Region mit vorgegebenem Hamming-Abstand.

Warnung

hamming_change_regionhamming_change_regionHammingChangeRegionhamming_change_regionHammingChangeRegionHammingChangeRegion ist veraltet und wird nur aus Gründen der Rückwärtskompatibilität zur Verfügung gestellt.

Signatur

hamming_change_region(InputRegion : OutputRegion : Width, Height, Distance : )

Herror hamming_change_region(const Hobject InputRegion, Hobject* OutputRegion, const Hlong Width, const Hlong Height, const Hlong Distance)

Herror T_hamming_change_region(const Hobject InputRegion, Hobject* OutputRegion, const Htuple Width, const Htuple Height, const Htuple Distance)

Herror hamming_change_region(Hobject InputRegion, Hobject* OutputRegion, const HTuple& Width, const HTuple& Height, const HTuple& Distance)

HRegion HRegion::HammingChangeRegion(const HTuple& Width, const HTuple& Height, const HTuple& Distance) const

HRegionArray HRegionArray::HammingChangeRegion(const HTuple& Width, const HTuple& Height, const HTuple& Distance) const

void HammingChangeRegion(const HObject& InputRegion, HObject* OutputRegion, const HTuple& Width, const HTuple& Height, const HTuple& Distance)

HRegion HRegion::HammingChangeRegion(Hlong Width, Hlong Height, Hlong Distance) const

void HOperatorSetX.HammingChangeRegion(
[in] IHUntypedObjectX* InputRegion, [out] IHUntypedObjectX*OutputRegion, [in] VARIANT Width, [in] VARIANT Height, [in] VARIANT Distance)

IHRegionX* HRegionX.HammingChangeRegion(
[in] Hlong Width, [in] Hlong Height, [in] Hlong Distance)

static void HOperatorSet.HammingChangeRegion(HObject inputRegion, out HObject outputRegion, HTuple width, HTuple height, HTuple distance)

HRegion HRegion.HammingChangeRegion(int width, int height, int distance)

Beschreibung

hamming_change_regionhamming_change_regionHammingChangeRegionhamming_change_regionHammingChangeRegionHammingChangeRegion verändert die Regionen in dem linken oberen Bildausschnitt (der Größe WidthWidthWidthWidthWidthwidth x HeightHeightHeightHeightHeightheight) so, dass die entstehenden Regionen zu den Eingabedaten den Hamming-Abstand DistanceDistanceDistanceDistanceDistancedistance haben. Dazu werden DistanceDistanceDistanceDistanceDistancedistance Punkte zur jeweiligen Eingaberegion hinzugefügt bzw. aus ihr entfernt.

Achtung

Wenn WidthWidthWidthWidthWidthwidth und HeightHeightHeightHeightHeightheight zu groß gewählt werden, benötigt die erzeugte Region viel Speicherplatz.

Parallelisierung

Parameter

InputRegionInputRegionInputRegionInputRegionInputRegioninputRegion (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Zu modifizierenden Regionen.

OutputRegionOutputRegionOutputRegionOutputRegionOutputRegionoutputRegion (output_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject *

Regionen, die den angegebenen Hamming-Abstand haben.

WidthWidthWidthWidthWidthwidth (input_control)  extent.x HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Horizontale Ausdehnung des zu ändernden Bereichs.

Defaultwert: 100

Wertevorschläge: 64, 128, 256, 512

Typischer Wertebereich: 1 ≤ Width Width Width Width Width width ≤ 512 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Restriktion: Width > 0

HeightHeightHeightHeightHeightheight (input_control)  extent.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Vertikale Ausdehnung des zu ändernden Bereichs.

Defaultwert: 100

Wertevorschläge: 64, 128, 256, 512

Typischer Wertebereich: 1 ≤ Height Height Height Height Height height ≤ 512 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Restriktion: Height > 0

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

Hamming-Abstand zwischen den alten und den neuen Regionen.

Defaultwert: 1000

Wertevorschläge: 100, 500, 1000, 5000, 10000

Typischer Wertebereich: 0 ≤ Distance Distance Distance Distance Distance distance ≤ 10000 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Restriktion: Distance >= 0 && Distance < Width * Height

Komplexität

Speicherplatzkomplexität der erzeugten Region in Byte (worst case): O(2 * WidthWidthWidthWidthWidthwidth * HeightHeightHeightHeightHeightheight).

Ergebnis

hamming_change_regionhamming_change_regionHammingChangeRegionhamming_change_regionHammingChangeRegionHammingChangeRegion liefert den Wert 2 (H_MSG_TRUE), falls die Parameterwerte korrekt sind. Das Verhalten bei leerer Eingabe (keine Eingaberegionen 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.

Vorgänger

connectionconnectionConnectionconnectionConnectionConnection, regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing, pouringpouringPouringpouringPouringPouring, class_ndim_normclass_ndim_normClassNdimNormclass_ndim_normClassNdimNormClassNdimNorm

Nachfolger

select_shapeselect_shapeSelectShapeselect_shapeSelectShapeSelectShape

Siehe auch

hamming_distancehamming_distanceHammingDistancehamming_distanceHammingDistanceHammingDistance

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren