select_shape_stdselect_shape_stdSelectShapeStdSelectShapeStdselect_shape_std (Operator)

Name

select_shape_stdselect_shape_stdSelectShapeStdSelectShapeStdselect_shape_std — 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)

def select_shape_std(regions: HObject, shape: str, percent: float) -> HObject

Beschreibung

select_shape_stdselect_shape_stdSelectShapeStdSelectShapeStdSelectShapeStdselect_shape_std 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 ShapeShapeShapeShapeshapeshape sind:

'max_area'

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

'rectangle1'

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

'rectangle2'

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

Ausführungsinformationen

Parameter

RegionsRegionsRegionsRegionsregionsregions (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Eingaberegionen, die selektiert werden soll.

SelectedRegionsSelectedRegionsSelectedRegionsSelectedRegionsselectedRegionsselected_regions (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Regionen mit gewünschter Form.

ShapeShapeShapeShapeshapeshape (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Zu testende Formmerkmale.

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

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

PercentPercentPercentPercentpercentpercent (input_control)  real HTuplefloatHTupleHtuple (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 percent ≤ 100.0 (lin)

Minimale Schrittweite: 0.1

Empfohlene Schrittweite: 10.0

Vorgänger

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, connectionconnectionConnectionConnectionConnectionconnection, smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1SmallestRectangle1smallest_rectangle1, smallest_rectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2SmallestRectangle2smallest_rectangle2

Alternativen

intersectionintersectionIntersectionIntersectionIntersectionintersection, complementcomplementComplementComplementComplementcomplement, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape

Siehe auch

smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1SmallestRectangle1smallest_rectangle1, smallest_rectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2SmallestRectangle2smallest_rectangle2, rectangularityrectangularityRectangularityRectangularityRectangularityrectangularity

Modul

Foundation