select_shape_stdselect_shape_stdSelectShapeStdSelectShapeStd (Operator)

Name

select_shape_stdselect_shape_stdSelectShapeStdSelectShapeStd — Auswählen von Regionen einer vorgegebenen Form.

Signatur

select_shape_std(Regions : SelectedRegions : Shape, Percent : )

Herror select_shape_std(const Hobject Regions, Hobject* SelectedRegions, const char* Shape, double Percent)

Herror T_select_shape_std(const Hobject Regions, Hobject* SelectedRegions, const Htuple Shape, const Htuple Percent)

void SelectShapeStd(const HObject& Regions, HObject* SelectedRegions, const HTuple& Shape, const HTuple& Percent)

HRegion HRegion::SelectShapeStd(const HString& Shape, double Percent) const

HRegion HRegion::SelectShapeStd(const char* Shape, double Percent) const

HRegion HRegion::SelectShapeStd(const wchar_t* Shape, double Percent) const   (Nur Windows)

static void HOperatorSet.SelectShapeStd(HObject regions, out HObject selectedRegions, HTuple shape, HTuple percent)

HRegion HRegion.SelectShapeStd(string shape, double percent)

Beschreibung

select_shape_stdselect_shape_stdSelectShapeStdSelectShapeStdSelectShapeStd vergleicht die Form der übergebenen Regionen mit den vorgegebenen Formen. Wenn die Region eine ähnliche Gestalt hat, wird sie in die Ausgabe übernommen. Mögliche Werte für ShapeShapeShapeShapeshape sind:

'max_area'

Es wird die größte Region ausgewählt.

'rectangle1'

Es wird mit smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1SmallestRectangle1 das umschließende Rechteck parallel zu den Koordinatenachsen bestimmt. Wenn die Flächendifferenz in Prozent größer als PercentPercentPercentPercentpercent ist, wird die Region übernommen.

'rectangle2'

Es wird mit smallest_rectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2SmallestRectangle2 das kleinste umschließende Rechteck mit beliebiger Orientierung bestimmt. Wenn die Flächendifferenz in Prozent größer als PercentPercentPercentPercentpercent ist, wird die Region übernommen. Als robustere Alternative kann der Operator select_shapeselect_shapeSelectShapeSelectShapeSelectShape mit 'rectangularity'"rectangularity""rectangularity""rectangularity""rectangularity" für FeatureFeatureFeatureFeaturefeature verwendet werden.

Ausführungsinformationen

Parameter

RegionsRegionsRegionsRegionsregions (input_object)  region(-array) objectHRegionHRegionHobject

Eingaberegionen, die selektiert werden soll.

SelectedRegionsSelectedRegionsSelectedRegionsSelectedRegionsselectedRegions (output_object)  region(-array) objectHRegionHRegionHobject *

Regionen mit gewünschter Form.

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

Zu testende Formmerkmale.

Defaultwert: 'max_area' "max_area" "max_area" "max_area" "max_area"

Werteliste: 'max_area'"max_area""max_area""max_area""max_area", 'rectangle1'"rectangle1""rectangle1""rectangle1""rectangle1", 'rectangle2'"rectangle2""rectangle2""rectangle2""rectangle2"

PercentPercentPercentPercentpercent (input_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Ähnlichkeitsmaß.

Defaultwert: 70.0

Wertevorschläge: 10.0, 30.0, 50.0, 60.0, 70.0, 80.0, 90.0, 95.0, 100.0

Typischer Wertebereich: 0.0 ≤ Percent Percent Percent Percent percent ≤ 100.0 (lin)

Minimale Schrittweite: 0.1

Empfohlene Schrittweite: 10.0

Vorgänger

thresholdthresholdThresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing, connectionconnectionConnectionConnectionConnection, smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1SmallestRectangle1, smallest_rectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2SmallestRectangle2

Alternativen

intersectionintersectionIntersectionIntersectionIntersection, complementcomplementComplementComplementComplement, area_centerarea_centerAreaCenterAreaCenterAreaCenter, select_shapeselect_shapeSelectShapeSelectShapeSelectShape

Siehe auch

smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1SmallestRectangle1, smallest_rectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2SmallestRectangle2, rectangularityrectangularityRectangularityRectangularityRectangularity

Modul

Foundation