union1union1Union1Union1 (Operator)

Name

union1union1Union1Union1 — Vereinigen von Regionen.

Signatur

union1(Region : RegionUnion : : )

Herror union1(const Hobject Region, Hobject* RegionUnion)

Herror T_union1(const Hobject Region, Hobject* RegionUnion)

void Union1(const HObject& Region, HObject* RegionUnion)

HRegion HRegion::Union1() const

static void HOperatorSet.Union1(HObject region, out HObject regionUnion)

HRegion HRegion.Union1()

Beschreibung

union1union1Union1Union1Union1 bestimmt die Vereinigung der Eingaberegionen und erzeugt daraus eine Ausgaberegion, die alle Punkte der Eingaberegionen umfasst.

Ausführungsinformationen

Parameter

RegionRegionRegionRegionregion (input_object)  region-array objectHRegionHRegionHobject

Regionen, die vereinigt werden sollen.

RegionUnionRegionUnionRegionUnionRegionUnionregionUnion (output_object)  region objectHRegionHRegionHobject *

Ergebnisregion, die die Vereinigung aller Eingaberegionen ist.

Parameteranzahl: RegionUnion <= Region

Beispiel (HDevelop)

* Union of segmentation results:
threshold(Image,Region1,128,255)
dyn_threshold(Image,Mean,Region2,5,'light')
concat_obj(Region1,Region2,Regions)
union1(Regions,RegionUnion)

Beispiel (C)

/* Union of segmentation results: */
threshold(Image,&Region1,128.0,255.0);
dyn_threshold(Image,Mean,&Region2,5.0,"light");
concat_obj(Region1,Region2,&Regions);
union1(Regions,&RegionUnion);

Beispiel (HDevelop)

* Union of segmentation results:
threshold(Image,Region1,128,255)
dyn_threshold(Image,Mean,Region2,5,'light')
concat_obj(Region1,Region2,Regions)
union1(Regions,RegionUnion)

Beispiel (HDevelop)

* Union of segmentation results:
threshold(Image,Region1,128,255)
dyn_threshold(Image,Mean,Region2,5,'light')
concat_obj(Region1,Region2,Regions)
union1(Regions,RegionUnion)

Beispiel (HDevelop)

* Union of segmentation results:
threshold(Image,Region1,128,255)
dyn_threshold(Image,Mean,Region2,5,'light')
concat_obj(Region1,Region2,Regions)
union1(Regions,RegionUnion)

Komplexität

Sei F die Summe aller Flächen der Eingaberegionen, dann ist die Laufzeitkomplexität: O(log(sqrt(F)) * sqrt(F)).

Ergebnis

union1union1Union1Union1Union1 liefert normalerweise den Wert 2 (H_MSG_TRUE). 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>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>), das bei leerer Region mit set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>) festlegen. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

thresholdthresholdThresholdThresholdThreshold, connectionconnectionConnectionConnectionConnection, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing, pouringpouringPouringPouringPouring

Nachfolger

select_shapeselect_shapeSelectShapeSelectShapeSelectShape, disp_regiondisp_regionDispRegionDispRegionDispRegion

Alternativen

union2union2Union2Union2Union2

Siehe auch

intersectionintersectionIntersectionIntersectionIntersection, complementcomplementComplementComplementComplement

Modul

Foundation