KlassenKlassenKlassenKlassen | | | | Operatoren

select_shape_xldselect_shape_xldSelectShapeXldselect_shape_xldSelectShapeXldSelectShapeXld (Operator)

Name

select_shape_xldselect_shape_xldSelectShapeXldselect_shape_xldSelectShapeXldSelectShapeXld — Auswahl von Konturen oder Polygonen mit Hilfe von Formmerkmalen.

Signatur

select_shape_xld(XLD : SelectedXLD : Features, Operation, Min, Max : )

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)

Herror select_shape_xld(Hobject XLD, Hobject* SelectedXLD, const HTuple& Features, const HTuple& Operation, const HTuple& Min, const HTuple& Max)

HXLDArray HXLDArray::SelectShapeXld(const HTuple& Features, const HTuple& Operation, const HTuple& Min, const HTuple& Max) const

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

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

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

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

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

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

void HOperatorSetX.SelectShapeXld(
[in] IHUntypedObjectX* XLD, [out] IHUntypedObjectX*SelectedXLD, [in] VARIANT Features, [in] VARIANT Operation, [in] VARIANT Min, [in] VARIANT Max)

IHXLDX* HXLDX.SelectShapeXld(
[in] VARIANT Features, [in] BSTR Operation, [in] VARIANT Min, [in] VARIANT Max)

IHXLDX* HXLDContX.SelectShapeXld(
[in] VARIANT Features, [in] BSTR Operation, [in] VARIANT Min, [in] VARIANT Max)

IHXLDX* HXLDPolyX.SelectShapeXld(
[in] VARIANT Features, [in] BSTR Operation, [in] VARIANT Min, [in] VARIANT Max)

IHXLDX* HXLDParaX.SelectShapeXld(
[in] VARIANT Features, [in] BSTR Operation, [in] VARIANT Min, [in] VARIANT Max)

IHXLDX* HXLDModParaX.SelectShapeXld(
[in] VARIANT Features, [in] BSTR Operation, [in] VARIANT Min, [in] VARIANT Max)

IHXLDX* HXLDExtParaX.SelectShapeXld(
[in] VARIANT Features, [in] BSTR Operation, [in] VARIANT Min, [in] VARIANT Max)

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)

Beschreibung

select_shape_xldselect_shape_xldSelectShapeXldselect_shape_xldSelectShapeXldSelectShapeXld wählt Konturen bzw. Polygone anhand ihrer Form aus. Für jede Eingabekontur bzw. jedes Eingabepolygon aus XLDXLDXLDXLDXLDXLD werden die angegebenen Merkmale (FeaturesFeaturesFeaturesFeaturesFeaturesfeatures) berechnet. Wenn jedes (OperationOperationOperationOperationOperationoperation = 'and') oder mindestens eines (OperationOperationOperationOperationOperationoperation = 'or') der so berechneten Merkmale in den vorgegebenen Grenzen (MinMinMinMinMinmin,MaxMaxMaxMaxMaxmax) 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""min" beziehungsweise 'max'"max""max""max""max""max" für MinMinMinMinMinmin und MaxMaxMaxMaxMaxmax gesetzt werden.

Bedingung: MinMinMinMinMinmin_i <= FeaturesFeaturesFeaturesFeaturesFeaturesfeatures_i(Object) <= MaxMaxMaxMaxMaxmax_i

Mögliche Werte für FeaturesFeaturesFeaturesFeaturesFeaturesfeatures:

(alle Features könnten auch für Polygone verwendet werden)

'area':

Fläche des Objektes (vgl. area_center_xldarea_center_xldAreaCenterXldarea_center_xldAreaCenterXldAreaCenterXld)

'area_points':

Fläche der Konturpunkte (vgl. area_center_points_xldarea_center_points_xldAreaCenterPointsXldarea_center_points_xldAreaCenterPointsXldAreaCenterPointsXld)

'row':

Zeilenindex des Schwerpunkts (vgl. area_center_xldarea_center_xldAreaCenterXldarea_center_xldAreaCenterXldAreaCenterXld)

'column':

Spaltenindex des Schwerpunkts (vgl. area_center_xldarea_center_xldAreaCenterXldarea_center_xldAreaCenterXldAreaCenterXld)

'column_points':

Spaltenindex des Schwerpunkts der Konturpunkte (vgl. area_center_points_xldarea_center_points_xldAreaCenterPointsXldarea_center_points_xldAreaCenterPointsXldAreaCenterPointsXld)

'row_points':

Zeilenindex des Schwerpunkts der Konturpunkte (vgl. area_center_points_xldarea_center_points_xldAreaCenterPointsXldarea_center_points_xldAreaCenterPointsXldAreaCenterPointsXld)

'width':

Breite der Kontur

'height':

Höhe der Kontur

'row1':

Zeilenindex der linken oberen Ecke (vgl. Operator smallest_rectangle1_xldsmallest_rectangle1_xldSmallestRectangle1Xldsmallest_rectangle1_xldSmallestRectangle1XldSmallestRectangle1Xld)

'column1':

Spaltenindex der linken oberen Ecke (vgl. Operator smallest_rectangle1_xldsmallest_rectangle1_xldSmallestRectangle1Xldsmallest_rectangle1_xldSmallestRectangle1XldSmallestRectangle1Xld)

'row2':

Zeilenindex der rechten unteren Ecke (vgl. Operator smallest_rectangle1_xldsmallest_rectangle1_xldSmallestRectangle1Xldsmallest_rectangle1_xldSmallestRectangle1XldSmallestRectangle1Xld)

'column2':

Spaltenindex der rechten unteren Ecke (vgl. Operator smallest_rectangle1_xldsmallest_rectangle1_xldSmallestRectangle1Xldsmallest_rectangle1_xldSmallestRectangle1XldSmallestRectangle1Xld)

'circularity':

Kreisförmigkeit (vgl. circularity_xldcircularity_xldCircularityXldcircularity_xldCircularityXldCircularityXld)

'compactness':

Kompaktheit (vgl. compactness_xldcompactness_xldCompactnessXldcompactness_xldCompactnessXldCompactnessXld)

'contlength':

Gesamtlänge der Kontur (vgl. length_xldlength_xldLengthXldlength_xldLengthXldLengthXld)

'convexity':

Konvexität (vgl. convexity_xldconvexity_xldConvexityXldconvexity_xldConvexityXldConvexityXld)

'ra':

Hauptradius der äquivalenten Ellipse (vgl. elliptic_axis_xldelliptic_axis_xldEllipticAxisXldelliptic_axis_xldEllipticAxisXldEllipticAxisXld)

'rb':

Nebenradius der äquivalenten Ellipse (vgl. elliptic_axis_xldelliptic_axis_xldEllipticAxisXldelliptic_axis_xldEllipticAxisXldEllipticAxisXld)

'phi':

Orientierung der äquivalenten Ellipse (vgl. elliptic_axis_xldelliptic_axis_xldEllipticAxisXldelliptic_axis_xldEllipticAxisXldEllipticAxisXld)

'ra_points':

Hauptradius der äquivalenten Ellipse der Konturpunkte (vgl. elliptic_axis_points_xldelliptic_axis_points_xldEllipticAxisPointsXldelliptic_axis_points_xldEllipticAxisPointsXldEllipticAxisPointsXld)

'rb_points':

Nebenradius der äquivalenten Ellipse Konturpunkte (vgl. elliptic_axis_points_xldelliptic_axis_points_xldEllipticAxisPointsXldelliptic_axis_points_xldEllipticAxisPointsXldEllipticAxisPointsXld)

'phi_points':

Orientierung der äquivalenten Ellipse Konturpunkte (vgl. elliptic_axis_points_xldelliptic_axis_points_xldEllipticAxisPointsXldelliptic_axis_points_xldEllipticAxisPointsXldEllipticAxisPointsXld)

'anisometry'

Anisometrie (vgl. eccentricity_xldeccentricity_xldEccentricityXldeccentricity_xldEccentricityXldEccentricityXld)

'anisometry_points'

Anisometrie der Konturpunkte (vgl. eccentricity_points_xldeccentricity_points_xldEccentricityPointsXldeccentricity_points_xldEccentricityPointsXldEccentricityPointsXld)

'bulkiness'

Bulkiness (vgl. eccentricity_xldeccentricity_xldEccentricityXldeccentricity_xldEccentricityXldEccentricityXld)

'struct_factor'

Strukturfaktor (vgl. eccentricity_xldeccentricity_xldEccentricityXldeccentricity_xldEccentricityXldEccentricityXld)

'outer_radius':

Radius des kleinsten umschließenden Kreises (vgl. smallest_circle_xldsmallest_circle_xldSmallestCircleXldsmallest_circle_xldSmallestCircleXldSmallestCircleXld)

'max_diameter':

Maximale Ausdehnung der Region (vgl. diameter_xlddiameter_xldDiameterXlddiameter_xldDiameterXldDiameterXld)

'orientation':

Orientierung der Region (vgl. orientation_xldorientation_xldOrientationXldorientation_xldOrientationXldOrientationXld)

'orientation_points':

Orientierung der Konturpunkte (vgl. orientation_points_xldorientation_points_xldOrientationPointsXldorientation_points_xldOrientationPointsXldOrientationPointsXld)

'rect2_phi':

Orientierung des kleinsten umschließenden Rechtecks (vgl. smallest_rectangle2_xldsmallest_rectangle2_xldSmallestRectangle2Xldsmallest_rectangle2_xldSmallestRectangle2XldSmallestRectangle2Xld)

'rect2_len1':

Halbe Länge des kleinsten umschließenden Rechtecks (vgl. smallest_rectangle2_xldsmallest_rectangle2_xldSmallestRectangle2Xldsmallest_rectangle2_xldSmallestRectangle2XldSmallestRectangle2Xld)

'rect2_len2':

Halbe Breite des kleinsten umschließenden Rechtecks (vgl. smallest_rectangle2_xldsmallest_rectangle2_xldSmallestRectangle2Xldsmallest_rectangle2_xldSmallestRectangle2XldSmallestRectangle2Xld)

'moments_m11','moments_m20','moments_m02':

Geometrische Konturenmomente (vgl. moments_xldmoments_xldMomentsXldmoments_xldMomentsXldMomentsXld)

'moments_m11_points','moments_m20_points','moments_m02_points':

Geometrische Momente der Konturpunkte (vgl. moments_points_xldmoments_points_xldMomentsPointsXldmoments_points_xldMomentsPointsXldMomentsPointsXld)

Wird nur ein Merkmal (FeaturesFeaturesFeaturesFeaturesFeaturesfeatures) verwendet, dann ist der Wert von OperationOperationOperationOperationOperationoperation 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_xldtest_self_intersection_xldTestSelfIntersectionXldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXld überprüfen).

Parallelisierung

Parameter

XLDXLDXLDXLDXLDXLD (input_object)  xld-array objectHXLDHXLDHXLDArrayHXLDXHobject

Konturen bzw. Polygone, die untersucht werden sollen.

SelectedXLDSelectedXLDSelectedXLDSelectedXLDSelectedXLDselectedXLD (output_object)  xld-array objectHXLDHXLDHXLDArrayHXLDXHobject *

Konturen bzw. Polygone, die die Bedingung(en) erfüllen.

FeaturesFeaturesFeaturesFeaturesFeaturesfeatures (input_control)  string(-array) HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Zu testende Formmerkmale.

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

Werteliste: 'anisometry'"anisometry""anisometry""anisometry""anisometry""anisometry", 'anisometry_points'"anisometry_points""anisometry_points""anisometry_points""anisometry_points""anisometry_points", 'area'"area""area""area""area""area", 'area_points'"area_points""area_points""area_points""area_points""area_points", 'bulkiness'"bulkiness""bulkiness""bulkiness""bulkiness""bulkiness", 'circularity'"circularity""circularity""circularity""circularity""circularity", 'column'"column""column""column""column""column", 'column1'"column1""column1""column1""column1""column1", 'column2'"column2""column2""column2""column2""column2", 'column_points'"column_points""column_points""column_points""column_points""column_points", 'compactness'"compactness""compactness""compactness""compactness""compactness", 'contlength'"contlength""contlength""contlength""contlength""contlength", 'convexity'"convexity""convexity""convexity""convexity""convexity", 'height'"height""height""height""height""height", 'max_diameter'"max_diameter""max_diameter""max_diameter""max_diameter""max_diameter", 'moments_m02'"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_m02_points", 'moments_m11'"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_m11_points", 'moments_m20'"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""moments_m20_points", 'orientation'"orientation""orientation""orientation""orientation""orientation", 'orientation_points'"orientation_points""orientation_points""orientation_points""orientation_points""orientation_points", 'outer_radius'"outer_radius""outer_radius""outer_radius""outer_radius""outer_radius", 'phi'"phi""phi""phi""phi""phi", 'phi_points'"phi_points""phi_points""phi_points""phi_points""phi_points", 'ra'"ra""ra""ra""ra""ra", 'ra_points'"ra_points""ra_points""ra_points""ra_points""ra_points", 'rb'"rb""rb""rb""rb""rb", 'rb_points'"rb_points""rb_points""rb_points""rb_points""rb_points", 'rect2_len1'"rect2_len1""rect2_len1""rect2_len1""rect2_len1""rect2_len1", 'rect2_len2'"rect2_len2""rect2_len2""rect2_len2""rect2_len2""rect2_len2", 'rect2_phi'"rect2_phi""rect2_phi""rect2_phi""rect2_phi""rect2_phi", 'row'"row""row""row""row""row", 'row1'"row1""row1""row1""row1""row1", 'row2'"row2""row2""row2""row2""row2", 'row_points'"row_points""row_points""row_points""row_points""row_points", 'struct_factor'"struct_factor""struct_factor""struct_factor""struct_factor""struct_factor", 'width'"width""width""width""width""width"

OperationOperationOperationOperationOperationoperation (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Verknüpfungsart der einzelnen Merkmale.

Defaultwert: 'and' "and" "and" "and" "and" "and"

Werteliste: 'and'"and""and""and""and""and", 'or'"or""or""or""or""or"

MinMinMinMinMinmin (input_control)  real(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

Untere Grenzen der Merkmale oder 'min'.

Defaultwert: 150.0

Typischer Wertebereich: 0.0 ≤ Min Min Min Min Min min ≤ 99999.0

Minimale Schrittweite: 0.001

Empfohlene Schrittweite: 1.0

MaxMaxMaxMaxMaxmax (input_control)  real(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

Obere Grenzen der Merkmale oder 'max'.

Defaultwert: 99999.0

Typischer Wertebereich: 0.0 ≤ Max Max Max Max Max max ≤ 99999.0

Minimale Schrittweite: 0.001

Empfohlene Schrittweite: 1.0

Restriktion: Max >= Min

Ergebnis

select_shape_xldselect_shape_xldSelectShapeXldselect_shape_xldSelectShapeXldSelectShapeXld 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>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>) festlegen. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXld, edges_sub_pixedges_sub_pixEdgesSubPixedges_sub_pixEdgesSubPixEdgesSubPix, threshold_sub_pixthreshold_sub_pixThresholdSubPixthreshold_sub_pixThresholdSubPixThresholdSubPix, gen_contour_polygon_xldgen_contour_polygon_xldGenContourPolygonXldgen_contour_polygon_xldGenContourPolygonXldGenContourPolygonXld, test_self_intersection_xldtest_self_intersection_xldTestSelfIntersectionXldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXld

Nachfolger

shape_trans_xldshape_trans_xldShapeTransXldshape_trans_xldShapeTransXldShapeTransXld, count_objcount_objCountObjcount_objCountObjCountObj

Siehe auch

area_center_xldarea_center_xldAreaCenterXldarea_center_xldAreaCenterXldAreaCenterXld, area_center_points_xldarea_center_points_xldAreaCenterPointsXldarea_center_points_xldAreaCenterPointsXldAreaCenterPointsXld, circularity_xldcircularity_xldCircularityXldcircularity_xldCircularityXldCircularityXld, compactness_xldcompactness_xldCompactnessXldcompactness_xldCompactnessXldCompactnessXld, convexity_xldconvexity_xldConvexityXldconvexity_xldConvexityXldConvexityXld, elliptic_axis_xldelliptic_axis_xldEllipticAxisXldelliptic_axis_xldEllipticAxisXldEllipticAxisXld, elliptic_axis_points_xldelliptic_axis_points_xldEllipticAxisPointsXldelliptic_axis_points_xldEllipticAxisPointsXldEllipticAxisPointsXld, eccentricity_xldeccentricity_xldEccentricityXldeccentricity_xldEccentricityXldEccentricityXld, eccentricity_points_xldeccentricity_points_xldEccentricityPointsXldeccentricity_points_xldEccentricityPointsXldEccentricityPointsXld, smallest_circle_xldsmallest_circle_xldSmallestCircleXldsmallest_circle_xldSmallestCircleXldSmallestCircleXld, smallest_rectangle1_xldsmallest_rectangle1_xldSmallestRectangle1Xldsmallest_rectangle1_xldSmallestRectangle1XldSmallestRectangle1Xld, smallest_rectangle2_xldsmallest_rectangle2_xldSmallestRectangle2Xldsmallest_rectangle2_xldSmallestRectangle2XldSmallestRectangle2Xld, diameter_xlddiameter_xldDiameterXlddiameter_xldDiameterXldDiameterXld, orientation_xldorientation_xldOrientationXldorientation_xldOrientationXldOrientationXld, orientation_points_xldorientation_points_xldOrientationPointsXldorientation_points_xldOrientationPointsXldOrientationPointsXld, moments_xldmoments_xldMomentsXldmoments_xldMomentsXldMomentsXld, moments_points_xldmoments_points_xldMomentsPointsXldmoments_points_xldMomentsPointsXldMomentsPointsXld, select_objselect_objSelectObjselect_objSelectObjSelectObj

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren