KlassenKlassenKlassenKlassen | | | | Operatoren

find_neighborsT_find_neighborsFindNeighborsfind_neighborsFindNeighborsFindNeighbors (Operator)

Name

find_neighborsT_find_neighborsFindNeighborsfind_neighborsFindNeighborsFindNeighbors — Suchen von direkten Nachbarn.

Signatur

find_neighbors(Regions1, Regions2 : : MaxDistance : RegionIndex1, RegionIndex2)

Herror T_find_neighbors(const Hobject Regions1, const Hobject Regions2, const Htuple MaxDistance, Htuple* RegionIndex1, Htuple* RegionIndex2)

Herror find_neighbors(Hobject Regions1, Hobject Regions2, const HTuple& MaxDistance, HTuple* RegionIndex1, HTuple* RegionIndex2)

HTuple HRegion::FindNeighbors(const HRegion& Regions2, const HTuple& MaxDistance, HTuple* RegionIndex2) const

HTuple HRegionArray::FindNeighbors(const HRegionArray& Regions2, const HTuple& MaxDistance, HTuple* RegionIndex2) const

void FindNeighbors(const HObject& Regions1, const HObject& Regions2, const HTuple& MaxDistance, HTuple* RegionIndex1, HTuple* RegionIndex2)

HTuple HRegion::FindNeighbors(const HRegion& Regions2, Hlong MaxDistance, HTuple* RegionIndex2) const

void HOperatorSetX.FindNeighbors(
[in] IHUntypedObjectX* Regions1, [in] IHUntypedObjectX* Regions2, [in] VARIANT MaxDistance, [out] VARIANT* RegionIndex1, [out] VARIANT* RegionIndex2)

VARIANT HRegionX.FindNeighbors(
[in] IHRegionX* Regions2, [in] Hlong MaxDistance, [out] VARIANT* RegionIndex2)

static void HOperatorSet.FindNeighbors(HObject regions1, HObject regions2, HTuple maxDistance, out HTuple regionIndex1, out HTuple regionIndex2)

HTuple HRegion.FindNeighbors(HRegion regions2, int maxDistance, out HTuple regionIndex2)

Beschreibung

find_neighborsfind_neighborsFindNeighborsfind_neighborsFindNeighborsFindNeighbors bestimmt benachbarte Regionen. Regions1Regions1Regions1Regions1Regions1regions1 und Regions2Regions2Regions2Regions2Regions2regions2 enthalten dabei die zu testenden Regionen. Regions1Regions1Regions1Regions1Regions1regions1 kann dabei auf drei verschiedene Arten besetzt werden:

find_neighborsfind_neighborsFindNeighborsfind_neighborsFindNeighborsFindNeighbors verwendet die Chessboard-Norm bei der Berechnung des Abstandes. Der maximale Abstand wird mit MaxDistanceMaxDistanceMaxDistanceMaxDistanceMaxDistancemaxDistance angegeben. Zueinander benachbarte Regionen stehen an n-ter Position in RegionIndex1RegionIndex1RegionIndex1RegionIndex1RegionIndex1regionIndex1 und RegionIndex2RegionIndex2RegionIndex2RegionIndex2RegionIndex2regionIndex2, d.h. Region mit Index RegionIndex1RegionIndex1RegionIndex1RegionIndex1RegionIndex1regionIndex1[n] aus Regions1Regions1Regions1Regions1Regions1regions1 ist benachbart zur Region mit Index RegionIndex2RegionIndex2RegionIndex2RegionIndex2RegionIndex2regionIndex2[n] aus Regions2Regions2Regions2Regions2Regions2regions2.

Achtung

Verdeckte Regionen werden nicht gefunden!

Parallelisierung

Parameter

Regions1Regions1Regions1Regions1Regions1regions1 (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Ausgangsregionen.

Regions2Regions2Regions2Regions2Regions2regions2 (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Vergleichsregionen.

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

Maximaler Abstand der Regionen.

Defaultwert: 1

Wertevorschläge: 1, 2, 3, 4, 5, 6, 7, 8, 10, 15, 20, 50

Typischer Wertebereich: 1 ≤ MaxDistance MaxDistance MaxDistance MaxDistance MaxDistance maxDistance ≤ 255

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

RegionIndex1RegionIndex1RegionIndex1RegionIndex1RegionIndex1regionIndex1 (output_control)  integer-array HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Indizes der gefundenen Regionen aus Regions1Regions1Regions1Regions1Regions1regions1.

RegionIndex2RegionIndex2RegionIndex2RegionIndex2RegionIndex2regionIndex2 (output_control)  integer-array HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Indizes der gefundenen Regionen aus Regions2Regions2Regions2Regions2Regions2regions2.

Ergebnis

find_neighborsfind_neighborsFindNeighborsfind_neighborsFindNeighborsFindNeighbors liefert den Wert 2 (H_MSG_TRUE), falls die Eingabe nicht leer ist. 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. Das Verhalten bei einer leeren Region (Region ist die leere Menge) wird mit set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>) bestimmt. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

thresholdthresholdThresholdthresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing, connectionconnectionConnectionconnectionConnectionConnection

Siehe auch

spatial_relationspatial_relationSpatialRelationspatial_relationSpatialRelationSpatialRelation, select_region_spatialselect_region_spatialSelectRegionSpatialselect_region_spatialSelectRegionSpatialSelectRegionSpatial, expand_regionexpand_regionExpandRegionexpand_regionExpandRegionExpandRegion, distance_transformdistance_transformDistanceTransformdistance_transformDistanceTransformDistanceTransform, interjacentinterjacentInterjacentinterjacentInterjacentInterjacent, boundaryboundaryBoundaryboundaryBoundaryBoundary

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren