Name
spatial_relationT_spatial_relationSpatialRelationspatial_relationSpatialRelationSpatialRelation — Ermitteln der Lagebeziehung von Regionen bzgl. der Koordinatenachsen.
Herror spatial_relation(Hobject Regions1, Hobject Regions2, const HTuple& Percent, HTuple* RegionIndex1, HTuple* RegionIndex2, HTuple* Relation1, HTuple* Relation2)
HTuple HRegion::SpatialRelation(const HRegion& Regions2, const HTuple& Percent, HTuple* RegionIndex2, HTuple* Relation1, HTuple* Relation2) const
HTuple HRegionArray::SpatialRelation(const HRegionArray& Regions2, const HTuple& Percent, HTuple* RegionIndex2, HTuple* Relation1, HTuple* Relation2) const
void SpatialRelation(const HObject& Regions1, const HObject& Regions2, const HTuple& Percent, HTuple* RegionIndex1, HTuple* RegionIndex2, HTuple* Relation1, HTuple* Relation2)
HTuple HRegion::SpatialRelation(const HRegion& Regions2, Hlong Percent, HTuple* RegionIndex2, HTuple* Relation1, HTuple* Relation2) const
void HOperatorSetX.SpatialRelation(
[in] IHUntypedObjectX* Regions1, [in] IHUntypedObjectX* Regions2, [in] VARIANT Percent, [out] VARIANT* RegionIndex1, [out] VARIANT* RegionIndex2, [out] VARIANT* Relation1, [out] VARIANT* Relation2)
VARIANT HRegionX.SpatialRelation(
[in] IHRegionX* Regions2, [in] Hlong Percent, [out] VARIANT* RegionIndex2, [out] VARIANT* Relation1, [out] VARIANT* Relation2)
static void HOperatorSet.SpatialRelation(HObject regions1, HObject regions2, HTuple percent, out HTuple regionIndex1, out HTuple regionIndex2, out HTuple relation1, out HTuple relation2)
HTuple HRegion.SpatialRelation(HRegion regions2, int percent, out HTuple regionIndex2, out HTuple relation1, out HTuple relation2)
spatial_relationspatial_relationSpatialRelationspatial_relationSpatialRelationSpatialRelation wählt Regionen aus, die um PercentPercentPercentPercentPercentpercent Prozent
„links“, „rechts“, „oberhalb“ oder „unterhalb“ von anderen Regionen
liegen.
Regions1Regions1Regions1Regions1Regions1regions1 und Regions2Regions2Regions2Regions2Regions2regions2 enthalten die zu vergleichenden
Regionen.
Regions1Regions1Regions1Regions1Regions1regions1 kann dabei auf drei verschiedene Arten besetzt werden:
Der Prozentsatz PercentPercentPercentPercentPercentpercent wird so interpretiert, dass die
Fläche der zweiten Region um mindestens PercentPercentPercentPercentPercentpercent Prozent
echt links/rechts bzw. oberhalb/unterhalb der Regionengrenzen der
ersten Region liegen muss.
Die Indizes der Regionen, die mindestens eine dieser Bedingungen
erfüllen, stehen dann an n-ter Position in den Ausgabeparametern
RegionIndex1RegionIndex1RegionIndex1RegionIndex1RegionIndex1regionIndex1 und RegionIndex2RegionIndex2RegionIndex2RegionIndex2RegionIndex2regionIndex2.
Zusätzlich enthalten die Ausgabeparameter Relation1Relation1Relation1Relation1Relation1relation1 und
Relation2Relation2Relation2Relation2Relation2relation2 an n-ter Position die Art der Relation, in der das
Regionenpaar (RegionIndex1RegionIndex1RegionIndex1RegionIndex1RegionIndex1regionIndex1[n], RegionIndex2RegionIndex2RegionIndex2RegionIndex2RegionIndex2regionIndex2[n]) steht,
d.h. Region mit Index RegionIndex2RegionIndex2RegionIndex2RegionIndex2RegionIndex2regionIndex2[n] steht mit Region mit
Index RegionIndex1RegionIndex1RegionIndex1RegionIndex1RegionIndex1regionIndex1[n] in der Relation1Relation1Relation1Relation1Relation1relation1[n] und
Relation2Relation2Relation2Relation2Relation2relation2[n].
Mögliche Werte für Relation1Relation1Relation1Relation1Relation1relation1 und Relation2Relation2Relation2Relation2Relation2relation2 sind:
- Relation1:
'left', 'right' oder “
- Relation2:
'above', 'below' oder “
In RegionIndex1RegionIndex1RegionIndex1RegionIndex1RegionIndex1regionIndex1 und RegionIndex2RegionIndex2RegionIndex2RegionIndex2RegionIndex2regionIndex2 werden die Indizes der
Regionen in den Tupeln der Eingaberegionen (Regions1Regions1Regions1Regions1Regions1regions1 bzw.
Regions2Regions2Regions2Regions2Regions2regions2) als Bildidentifikatoren eingetragen.
Der Zugriff auf ausgewählte Regionen über den Index kann mit
copy_objcopy_objCopyObjcopy_objCopyObjCopyObj erfolgen.
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Prozentzahl der Fläche der Vergleichsregion,
die links/rechts bzw. oberhalb/unterhalb
der Regionengrenzen der Ausgangsregion liegen muss.
Defaultwert: 50
Wertevorschläge: 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
Typischer Wertebereich: 0
≤
Percent
Percent
Percent
Percent
Percent
percent
≤
100 (lin)
Minimale Schrittweite: 1
Empfohlene Schrittweite: 10
Restriktion: 0 <= Percent && Percent <= 100
Indizes der Regionen im Tupel der Eingaberegionen,
die die Lagerelation erfüllen.
Indizes der Regionen im Tupel der Eingaberegionen,
die die Lagerelation erfüllen.
spatial_relationspatial_relationSpatialRelationspatial_relationSpatialRelationSpatialRelation liefert den Wert 2 (H_MSG_TRUE), falls Regions2Regions2Regions2Regions2Regions2regions2 nicht
leer und PercentPercentPercentPercentPercentpercent korrekt besetzt ist. Das Verhalten bei leerem
Parameter Regions2Regions2Regions2Regions2Regions2regions2 (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.
thresholdthresholdThresholdthresholdThresholdThreshold,
regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing,
connectionconnectionConnectionconnectionConnectionConnection
area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter,
intersectionintersectionIntersectionintersectionIntersectionIntersection
select_region_spatialselect_region_spatialSelectRegionSpatialselect_region_spatialSelectRegionSpatialSelectRegionSpatial,
find_neighborsfind_neighborsFindNeighborsfind_neighborsFindNeighborsFindNeighbors,
copy_objcopy_objCopyObjcopy_objCopyObjCopyObj,
obj_to_integerobj_to_integerObjToIntegerobj_to_integerObjToIntegerObjToInteger
Foundation