select_shape_xld select_shape_xld SelectShapeXld SelectShapeXld select_shape_xld (Operator)
Name
select_shape_xld select_shape_xld SelectShapeXld SelectShapeXld select_shape_xld — Auswahl von Konturen oder Polygonen mit Hilfe von Formmerkmalen.
Signatur
Herror select_shape_xld (const Hobject XLD , Hobject* SelectedXLD , const char* Features , const char* Operation , double Min , double Max )
Herror T_select_shape_xld (const Hobject XLD , Hobject* SelectedXLD , const Htuple Features , const Htuple Operation , const Htuple Min , const Htuple Max )
void SelectShapeXld (const HObject& XLD , HObject* SelectedXLD , const HTuple& Features , const HTuple& Operation , const HTuple& Min , const HTuple& Max )
HXLD HXLD ::SelectShapeXld (const HTuple& Features , const HString& Operation , const HTuple& Min , const HTuple& Max ) const
HXLD HXLD ::SelectShapeXld (const HString& Features , const HString& Operation , double Min , double Max ) const
HXLD HXLD ::SelectShapeXld (const char* Features , const char* Operation , double Min , double Max ) const
HXLD HXLD ::SelectShapeXld (const wchar_t* Features , const wchar_t* Operation , double Min , double Max ) const
(
Nur Windows)
HXLDCont HXLDCont ::SelectShapeXld (const HTuple& Features , const HString& Operation , const HTuple& Min , const HTuple& Max ) const
HXLDCont HXLDCont ::SelectShapeXld (const HString& Features , const HString& Operation , double Min , double Max ) const
HXLDCont HXLDCont ::SelectShapeXld (const char* Features , const char* Operation , double Min , double Max ) const
HXLDCont HXLDCont ::SelectShapeXld (const wchar_t* Features , const wchar_t* Operation , double Min , double Max ) const
(
Nur Windows)
HXLDPoly HXLDPoly ::SelectShapeXld (const HTuple& Features , const HString& Operation , const HTuple& Min , const HTuple& Max ) const
HXLDPoly HXLDPoly ::SelectShapeXld (const HString& Features , const HString& Operation , double Min , double Max ) const
HXLDPoly HXLDPoly ::SelectShapeXld (const char* Features , const char* Operation , double Min , double Max ) const
HXLDPoly HXLDPoly ::SelectShapeXld (const wchar_t* Features , const wchar_t* Operation , double Min , double Max ) const
(
Nur Windows)
HXLDPara HXLDPara ::SelectShapeXld (const HTuple& Features , const HString& Operation , const HTuple& Min , const HTuple& Max ) const
HXLDPara HXLDPara ::SelectShapeXld (const HString& Features , const HString& Operation , double Min , double Max ) const
HXLDPara HXLDPara ::SelectShapeXld (const char* Features , const char* Operation , double Min , double Max ) const
HXLDPara HXLDPara ::SelectShapeXld (const wchar_t* Features , const wchar_t* Operation , double Min , double Max ) const
(
Nur Windows)
HXLDModPara HXLDModPara ::SelectShapeXld (const HTuple& Features , const HString& Operation , const HTuple& Min , const HTuple& Max ) const
HXLDModPara HXLDModPara ::SelectShapeXld (const HString& Features , const HString& Operation , double Min , double Max ) const
HXLDModPara HXLDModPara ::SelectShapeXld (const char* Features , const char* Operation , double Min , double Max ) const
HXLDModPara HXLDModPara ::SelectShapeXld (const wchar_t* Features , const wchar_t* Operation , double Min , double Max ) const
(
Nur Windows)
HXLDExtPara HXLDExtPara ::SelectShapeXld (const HTuple& Features , const HString& Operation , const HTuple& Min , const HTuple& Max ) const
HXLDExtPara HXLDExtPara ::SelectShapeXld (const HString& Features , const HString& Operation , double Min , double Max ) const
HXLDExtPara HXLDExtPara ::SelectShapeXld (const char* Features , const char* Operation , double Min , double Max ) const
HXLDExtPara HXLDExtPara ::SelectShapeXld (const wchar_t* Features , const wchar_t* Operation , double Min , double Max ) const
(
Nur Windows)
static void HOperatorSet .SelectShapeXld (HObject XLD , out HObject selectedXLD , HTuple features , HTuple operation , HTuple min , HTuple max )
HXLD HXLD .SelectShapeXld (HTuple features , string operation , HTuple min , HTuple max )
HXLD HXLD .SelectShapeXld (string features , string operation , double min , double max )
HXLDCont HXLDCont .SelectShapeXld (HTuple features , string operation , HTuple min , HTuple max )
HXLDCont HXLDCont .SelectShapeXld (string features , string operation , double min , double max )
HXLDPoly HXLDPoly .SelectShapeXld (HTuple features , string operation , HTuple min , HTuple max )
HXLDPoly HXLDPoly .SelectShapeXld (string features , string operation , double min , double max )
HXLDPara HXLDPara .SelectShapeXld (HTuple features , string operation , HTuple min , HTuple max )
HXLDPara HXLDPara .SelectShapeXld (string features , string operation , double min , double max )
HXLDModPara HXLDModPara .SelectShapeXld (HTuple features , string operation , HTuple min , HTuple max )
HXLDModPara HXLDModPara .SelectShapeXld (string features , string operation , double min , double max )
HXLDExtPara HXLDExtPara .SelectShapeXld (HTuple features , string operation , HTuple min , HTuple max )
HXLDExtPara HXLDExtPara .SelectShapeXld (string features , string operation , double min , double max )
def select_shape_xld (xld : HObject, features : MaybeSequence[str], operation : str, min : MaybeSequence[Union[int, float, str]], max : MaybeSequence[Union[int, float, str]]) -> HObject
Beschreibung
select_shape_xld select_shape_xld SelectShapeXld SelectShapeXld select_shape_xld wählt Konturen bzw. Polygone anhand ihrer
Form aus. Für jede Eingabekontur bzw. jedes Eingabepolygon aus
XLD XLD XLD XLD xld werden die angegebenen Merkmale (Features Features Features features features )
berechnet. Wenn jedes (Operation Operation Operation operation operation = 'and' "and" "and" "and" "and" ) oder mindestens
eines (Operation Operation Operation operation operation = 'or' "or" "or" "or" "or" ) der so berechneten Merkmale in den
vorgegebenen Grenzen (Min Min Min min min ,Max Max Max max max ) liegt, wird die
Kontur bzw. das Polygon in die Ausgabe übernommen (dupliziert).
Um diese Grenzen nach unten oder oben offen zu lassen, kann
statt eines Wertes auch 'min' "min" "min" "min" "min" beziehungsweise 'max' "max" "max" "max" "max"
für Min Min Min min min und Max Max Max max max gesetzt werden.
Bedingung:
Mögliche Werte für Features Features Features features features :
(alle Features könnten auch für Polygone verwendet werden)
'area':
Fläche des Objektes
(vgl. area_center_xld area_center_xld AreaCenterXld AreaCenterXld area_center_xld )
'area_points':
Fläche der Konturpunkte
(vgl. area_center_points_xld area_center_points_xld AreaCenterPointsXld AreaCenterPointsXld area_center_points_xld )
'row':
Zeilenindex des Schwerpunkts
(vgl. area_center_xld area_center_xld AreaCenterXld AreaCenterXld area_center_xld )
'column':
Spaltenindex des Schwerpunkts
(vgl. area_center_xld area_center_xld AreaCenterXld AreaCenterXld area_center_xld )
'column_points':
Spaltenindex des Schwerpunkts der Konturpunkte
(vgl. area_center_points_xld area_center_points_xld AreaCenterPointsXld AreaCenterPointsXld area_center_points_xld )
'row_points':
Zeilenindex des Schwerpunkts der Konturpunkte
(vgl. area_center_points_xld area_center_points_xld AreaCenterPointsXld AreaCenterPointsXld area_center_points_xld )
'width':
Breite der Kontur (siehe
height_width_ratio_xld height_width_ratio_xld HeightWidthRatioXld HeightWidthRatioXld height_width_ratio_xld )
'height':
Höhe der Kontur (siehe
height_width_ratio_xld height_width_ratio_xld HeightWidthRatioXld HeightWidthRatioXld height_width_ratio_xld )
'ratio':
Verhältnis der Höhe zur Breite der Kontur
(siehe height_width_ratio_xld height_width_ratio_xld HeightWidthRatioXld HeightWidthRatioXld height_width_ratio_xld )
'row1':
Zeilenindex der linken oberen Ecke
(vgl. Operator smallest_rectangle1_xld smallest_rectangle1_xld SmallestRectangle1Xld SmallestRectangle1Xld smallest_rectangle1_xld )
'column1':
Spaltenindex der linken oberen Ecke
(vgl. Operator smallest_rectangle1_xld smallest_rectangle1_xld SmallestRectangle1Xld SmallestRectangle1Xld smallest_rectangle1_xld )
'row2':
Zeilenindex der rechten unteren Ecke
(vgl. Operator smallest_rectangle1_xld smallest_rectangle1_xld SmallestRectangle1Xld SmallestRectangle1Xld smallest_rectangle1_xld )
'column2':
Spaltenindex der rechten unteren Ecke
(vgl. Operator smallest_rectangle1_xld smallest_rectangle1_xld SmallestRectangle1Xld SmallestRectangle1Xld smallest_rectangle1_xld )
'circularity':
Kreisförmigkeit
(vgl. circularity_xld circularity_xld CircularityXld CircularityXld circularity_xld )
'compactness':
Kompaktheit
(vgl. compactness_xld compactness_xld CompactnessXld CompactnessXld compactness_xld )
'rectangularity':
Rechteckigkeit
(vgl. rectangularity_xld rectangularity_xld RectangularityXld RectangularityXld rectangularity_xld )
'contlength':
Gesamtlänge der Kontur
(vgl. length_xld length_xld LengthXld LengthXld length_xld )
'convexity':
Konvexität
(vgl. convexity_xld convexity_xld ConvexityXld ConvexityXld convexity_xld )
'ra':
Hauptradius der äquivalenten Ellipse
(vgl. elliptic_axis_xld elliptic_axis_xld EllipticAxisXld EllipticAxisXld elliptic_axis_xld )
'rb':
Nebenradius der äquivalenten Ellipse
(vgl. elliptic_axis_xld elliptic_axis_xld EllipticAxisXld EllipticAxisXld elliptic_axis_xld )
'phi':
Orientierung der äquivalenten Ellipse
(vgl. elliptic_axis_xld elliptic_axis_xld EllipticAxisXld EllipticAxisXld elliptic_axis_xld )
'ra_points':
Hauptradius der äquivalenten Ellipse der
Konturpunkte
(vgl. elliptic_axis_points_xld elliptic_axis_points_xld EllipticAxisPointsXld EllipticAxisPointsXld elliptic_axis_points_xld )
'rb_points':
Nebenradius der äquivalenten Ellipse
Konturpunkte
(vgl. elliptic_axis_points_xld elliptic_axis_points_xld EllipticAxisPointsXld EllipticAxisPointsXld elliptic_axis_points_xld )
'phi_points':
Orientierung der äquivalenten Ellipse
Konturpunkte
(vgl. elliptic_axis_points_xld elliptic_axis_points_xld EllipticAxisPointsXld EllipticAxisPointsXld elliptic_axis_points_xld )
'anisometry'
Anisometrie
(vgl. eccentricity_xld eccentricity_xld EccentricityXld EccentricityXld eccentricity_xld )
'anisometry_points'
Anisometrie der Konturpunkte
(vgl. eccentricity_points_xld eccentricity_points_xld EccentricityPointsXld EccentricityPointsXld eccentricity_points_xld )
'bulkiness'
Bulkiness
(vgl. eccentricity_xld eccentricity_xld EccentricityXld EccentricityXld eccentricity_xld )
'struct_factor'
Strukturfaktor
(vgl. eccentricity_xld eccentricity_xld EccentricityXld EccentricityXld eccentricity_xld )
'outer_radius':
Radius des kleinsten umschließenden Kreises
(vgl. smallest_circle_xld smallest_circle_xld SmallestCircleXld SmallestCircleXld smallest_circle_xld )
'max_diameter':
Maximale Ausdehnung der Region
(vgl. diameter_xld diameter_xld DiameterXld DiameterXld diameter_xld )
'orientation':
Orientierung der Region
(vgl. orientation_xld orientation_xld OrientationXld OrientationXld orientation_xld )
'orientation_points':
Orientierung der Konturpunkte
(vgl. orientation_points_xld orientation_points_xld OrientationPointsXld OrientationPointsXld orientation_points_xld )
'rect2_phi':
Orientierung des kleinsten umschließenden Rechtecks
(vgl. smallest_rectangle2_xld smallest_rectangle2_xld SmallestRectangle2Xld SmallestRectangle2Xld smallest_rectangle2_xld )
'rect2_len1':
Halbe Länge des kleinsten umschließenden Rechtecks
(vgl. smallest_rectangle2_xld smallest_rectangle2_xld SmallestRectangle2Xld SmallestRectangle2Xld smallest_rectangle2_xld )
'rect2_len2':
Halbe Breite des kleinsten umschließenden Rechtecks
(vgl. smallest_rectangle2_xld smallest_rectangle2_xld SmallestRectangle2Xld SmallestRectangle2Xld smallest_rectangle2_xld )
'moments_m11','moments_m20','moments_m02':
Geometrische Konturenmomente
(vgl. moments_xld moments_xld MomentsXld MomentsXld moments_xld )
'moments_m11_points','moments_m20_points','moments_m02_points':
Geometrische Momente der Konturpunkte
(vgl. moments_points_xld moments_points_xld MomentsPointsXld MomentsPointsXld moments_points_xld )
Wird nur ein Merkmal (Features Features Features features features ) verwendet, dann ist der
Wert von Operation Operation Operation operation operation bedeutungslos. Mehrere Merkmale werden
in der Reihenfolge abgearbeitet, in der sie eingegeben werden. Bei
der Berechnung einiger Merkmale muss darauf geachtet werden, dass
sich die Eingabekonturen bzw. -polygone nicht selbst schneiden, da
ansonsten keine aussagekräftigen Ergebnisse zurückgeliefert werden
können (Ob sich die Eingabekonturen bzw. -polygone selbst schneiden
oder nicht, lässt sich mit test_self_intersection_xld test_self_intersection_xld TestSelfIntersectionXld TestSelfIntersectionXld test_self_intersection_xld
überprüfen).
Ausführungsinformationen
Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
Wird ohne Parallelisierung verarbeitet.
Parameter
XLD XLD XLD XLD xld (input_object) xld-array → object HXLD HObject HObject Hobject
Konturen bzw. Polygone, die untersucht werden sollen.
SelectedXLD SelectedXLD SelectedXLD selectedXLD selected_xld (output_object) xld-array → object HXLD HObject HObject Hobject *
Konturen bzw. Polygone, die die Bedingung(en)
erfüllen.
Features Features Features features features (input_control) string(-array) → HTuple MaybeSequence[str] HTuple Htuple (string) (string ) (HString ) (char* )
Zu testende Formmerkmale.
Default:
'area'
"area"
"area"
"area"
"area"
Werteliste:
'anisometry' "anisometry" "anisometry" "anisometry" "anisometry" , 'anisometry_points' "anisometry_points" "anisometry_points" "anisometry_points" "anisometry_points" , 'area' "area" "area" "area" "area" , 'area_points' "area_points" "area_points" "area_points" "area_points" , 'bulkiness' "bulkiness" "bulkiness" "bulkiness" "bulkiness" , 'circularity' "circularity" "circularity" "circularity" "circularity" , 'column' "column" "column" "column" "column" , 'column1' "column1" "column1" "column1" "column1" , 'column2' "column2" "column2" "column2" "column2" , 'column_points' "column_points" "column_points" "column_points" "column_points" , 'compactness' "compactness" "compactness" "compactness" "compactness" , 'contlength' "contlength" "contlength" "contlength" "contlength" , 'convexity' "convexity" "convexity" "convexity" "convexity" , 'height' "height" "height" "height" "height" , 'max_diameter' "max_diameter" "max_diameter" "max_diameter" "max_diameter" , 'moments_m02' "moments_m02" "moments_m02" "moments_m02" "moments_m02" , 'moments_m02_points' "moments_m02_points" "moments_m02_points" "moments_m02_points" "moments_m02_points" , 'moments_m11' "moments_m11" "moments_m11" "moments_m11" "moments_m11" , 'moments_m11_points' "moments_m11_points" "moments_m11_points" "moments_m11_points" "moments_m11_points" , 'moments_m20' "moments_m20" "moments_m20" "moments_m20" "moments_m20" , 'moments_m20_points' "moments_m20_points" "moments_m20_points" "moments_m20_points" "moments_m20_points" , 'orientation' "orientation" "orientation" "orientation" "orientation" , 'orientation_points' "orientation_points" "orientation_points" "orientation_points" "orientation_points" , 'outer_radius' "outer_radius" "outer_radius" "outer_radius" "outer_radius" , 'phi' "phi" "phi" "phi" "phi" , 'phi_points' "phi_points" "phi_points" "phi_points" "phi_points" , 'ra' "ra" "ra" "ra" "ra" , 'ra_points' "ra_points" "ra_points" "ra_points" "ra_points" , 'ratio' "ratio" "ratio" "ratio" "ratio" , 'rb' "rb" "rb" "rb" "rb" , 'rb_points' "rb_points" "rb_points" "rb_points" "rb_points" , 'rect2_len1' "rect2_len1" "rect2_len1" "rect2_len1" "rect2_len1" , 'rect2_len2' "rect2_len2" "rect2_len2" "rect2_len2" "rect2_len2" , 'rect2_phi' "rect2_phi" "rect2_phi" "rect2_phi" "rect2_phi" , 'rectangularity' "rectangularity" "rectangularity" "rectangularity" "rectangularity" , 'row' "row" "row" "row" "row" , 'row1' "row1" "row1" "row1" "row1" , 'row2' "row2" "row2" "row2" "row2" , 'row_points' "row_points" "row_points" "row_points" "row_points" , 'struct_factor' "struct_factor" "struct_factor" "struct_factor" "struct_factor" , 'width' "width" "width" "width" "width"
Operation Operation Operation operation operation (input_control) string → HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Verknüpfungsart der einzelnen Merkmale.
Default:
'and'
"and"
"and"
"and"
"and"
Werteliste:
'and' "and" "and" "and" "and" , 'or' "or" "or" "or" "or"
Min Min Min min min (input_control) real(-array) → HTuple MaybeSequence[Union[int, float, str]] HTuple Htuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Untere Grenzen der Merkmale oder 'min'.
Default:
150.0
Minimale Schrittweite:
0.001
Empfohlene Schrittweite:
1.0
Max Max Max max max (input_control) real(-array) → HTuple MaybeSequence[Union[int, float, str]] HTuple Htuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Obere Grenzen der Merkmale oder 'max'.
Default:
99999.0
Minimale Schrittweite:
0.001
Empfohlene Schrittweite:
1.0
Restriktion:
Max >= Min
Ergebnis
select_shape_xld select_shape_xld SelectShapeXld SelectShapeXld select_shape_xld liefert den Wert 2 (
H_MSG_TRUE )
, falls die Eingabe
nicht leer ist. Das Verhalten bei leerer Eingabe (keine
Eingabeobjekte 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>) set_system("no_object_result",<Result>)
festlegen. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.
Vorgänger
gen_contours_skeleton_xld gen_contours_skeleton_xld GenContoursSkeletonXld GenContoursSkeletonXld gen_contours_skeleton_xld ,
edges_sub_pix edges_sub_pix EdgesSubPix EdgesSubPix edges_sub_pix ,
threshold_sub_pix threshold_sub_pix ThresholdSubPix ThresholdSubPix threshold_sub_pix ,
gen_contour_polygon_xld gen_contour_polygon_xld GenContourPolygonXld GenContourPolygonXld gen_contour_polygon_xld ,
test_self_intersection_xld test_self_intersection_xld TestSelfIntersectionXld TestSelfIntersectionXld test_self_intersection_xld
Nachfolger
shape_trans_xld shape_trans_xld ShapeTransXld ShapeTransXld shape_trans_xld ,
count_obj count_obj CountObj CountObj count_obj
Siehe auch
area_center_xld area_center_xld AreaCenterXld AreaCenterXld area_center_xld ,
area_center_points_xld area_center_points_xld AreaCenterPointsXld AreaCenterPointsXld area_center_points_xld ,
circularity_xld circularity_xld CircularityXld CircularityXld circularity_xld ,
compactness_xld compactness_xld CompactnessXld CompactnessXld compactness_xld ,
convexity_xld convexity_xld ConvexityXld ConvexityXld convexity_xld ,
elliptic_axis_xld elliptic_axis_xld EllipticAxisXld EllipticAxisXld elliptic_axis_xld ,
elliptic_axis_points_xld elliptic_axis_points_xld EllipticAxisPointsXld EllipticAxisPointsXld elliptic_axis_points_xld ,
eccentricity_xld eccentricity_xld EccentricityXld EccentricityXld eccentricity_xld ,
eccentricity_points_xld eccentricity_points_xld EccentricityPointsXld EccentricityPointsXld eccentricity_points_xld ,
rectangularity_xld rectangularity_xld RectangularityXld RectangularityXld rectangularity_xld ,
smallest_circle_xld smallest_circle_xld SmallestCircleXld SmallestCircleXld smallest_circle_xld ,
smallest_rectangle1_xld smallest_rectangle1_xld SmallestRectangle1Xld SmallestRectangle1Xld smallest_rectangle1_xld ,
smallest_rectangle2_xld smallest_rectangle2_xld SmallestRectangle2Xld SmallestRectangle2Xld smallest_rectangle2_xld ,
diameter_xld diameter_xld DiameterXld DiameterXld diameter_xld ,
orientation_xld orientation_xld OrientationXld OrientationXld orientation_xld ,
orientation_points_xld orientation_points_xld OrientationPointsXld OrientationPointsXld orientation_points_xld ,
moments_xld moments_xld MomentsXld MomentsXld moments_xld ,
moments_points_xld moments_points_xld MomentsPointsXld MomentsPointsXld moments_points_xld ,
select_obj select_obj SelectObj SelectObj select_obj
Modul
Foundation