fill_up_shapefill_up_shapeFillUpShapeFillUpShape (Operator)

Name

fill_up_shapefill_up_shapeFillUpShapeFillUpShape — Auffüllen von Hohlflächen mit vorgegebenen Formeigenschaften.

Signatur

fill_up_shape(Region : RegionFillUp : Feature, Min, Max : )

Herror fill_up_shape(const Hobject Region, Hobject* RegionFillUp, const char* Feature, double Min, double Max)

Herror T_fill_up_shape(const Hobject Region, Hobject* RegionFillUp, const Htuple Feature, const Htuple Min, const Htuple Max)

void FillUpShape(const HObject& Region, HObject* RegionFillUp, const HTuple& Feature, const HTuple& Min, const HTuple& Max)

HRegion HRegion::FillUpShape(const HString& Feature, const HTuple& Min, const HTuple& Max) const

HRegion HRegion::FillUpShape(const HString& Feature, double Min, double Max) const

HRegion HRegion::FillUpShape(const char* Feature, double Min, double Max) const

HRegion HRegion::FillUpShape(const wchar_t* Feature, double Min, double Max) const   (Nur Windows)

static void HOperatorSet.FillUpShape(HObject region, out HObject regionFillUp, HTuple feature, HTuple min, HTuple max)

HRegion HRegion.FillUpShape(string feature, HTuple min, HTuple max)

HRegion HRegion.FillUpShape(string feature, double min, double max)

Beschreibung

fill_up_shapefill_up_shapeFillUpShapeFillUpShapeFillUpShape füllt lediglich diejenigen Hohlflächen in RegionRegionRegionRegionregion auf, die vorgegebenen Formeigenschaften entsprechen. Dabei gibt der Parameter FeatureFeatureFeatureFeaturefeature den Namen des Formmerkmals vor. Mit MinMinMinMinmin und MaxMaxMaxMaxmax wird das Intervall festgelegt, in dem der Merkmalswert der Hohlfläche liegen muss, damit sie ausgefüllt wird.

Ausführungsinformationen

Parameter

RegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHobject

Eingaberegion(en).

RegionFillUpRegionFillUpRegionFillUpRegionFillUpregionFillUp (output_object)  region(-array) objectHRegionHRegionHobject *

Ausgaberegion(en) mit weniger Hohlflächen.

FeatureFeatureFeatureFeaturefeature (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Formmerkmal.

Defaultwert: 'area' "area" "area" "area" "area"

Werteliste: 'anisometry'"anisometry""anisometry""anisometry""anisometry", 'area'"area""area""area""area", 'compactness'"compactness""compactness""compactness""compactness", 'convexity'"convexity""convexity""convexity""convexity", 'inner_circle'"inner_circle""inner_circle""inner_circle""inner_circle", 'outer_circle'"outer_circle""outer_circle""outer_circle""outer_circle", 'phi'"phi""phi""phi""phi", 'ra'"ra""ra""ra""ra", 'rb'"rb""rb""rb""rb"

MinMinMinMinmin (input_control)  number HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Mindestwert für Merkmal Feature.

Defaultwert: 1.0

Wertevorschläge: 0.0, 1.0, 10.0, 50.0, 100.0, 500.0, 1000.0, 10000.0

Typischer Wertebereich: 0.0 ≤ Min Min Min Min min

MaxMaxMaxMaxmax (input_control)  number HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Maximalwert für Merkmal Feature.

Defaultwert: 100.0

Wertevorschläge: 10.0, 50.0, 100.0, 500.0, 1000.0, 10000.0, 100000.0

Typischer Wertebereich: 0.0 ≤ Max Max Max Max max

Beispiel (C)

read_image(&Image,"monkey");
threshold(Image,&Seg,120.0,255.0);
fill_up_shape(Seg,&Filled,"area",0.0,200.0);

Ergebnis

fill_up_shapefill_up_shapeFillUpShapeFillUpShapeFillUpShape 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

fill_upfill_upFillUpFillUpFillUp

Siehe auch

select_shapeselect_shapeSelectShapeSelectShapeSelectShape, connectionconnectionConnectionConnectionConnection, area_centerarea_centerAreaCenterAreaCenterAreaCenter

Modul

Foundation