select_linesT_select_linesSelectLinesSelectLinesselect_lines (Operator)

Name

select_linesT_select_linesSelectLinesSelectLinesselect_lines — Auswahl von Linien gemäß verschiedener Kriterien.

Warnung

select_linesselect_linesSelectLinesSelectLinesSelectLinesselect_lines ist veraltet und wird nur aus Gründen der Rückwärtskompatibilität zur Verfügung gestellt.

Signatur

select_lines( : : RowBeginIn, ColBeginIn, RowEndIn, ColEndIn, Feature, Operation, Min, Max : RowBeginOut, ColBeginOut, RowEndOut, ColEndOut)

Herror T_select_lines(const Htuple RowBeginIn, const Htuple ColBeginIn, const Htuple RowEndIn, const Htuple ColEndIn, const Htuple Feature, const Htuple Operation, const Htuple Min, const Htuple Max, Htuple* RowBeginOut, Htuple* ColBeginOut, Htuple* RowEndOut, Htuple* ColEndOut)

void SelectLines(const HTuple& RowBeginIn, const HTuple& ColBeginIn, const HTuple& RowEndIn, const HTuple& ColEndIn, const HTuple& Feature, const HTuple& Operation, const HTuple& Min, const HTuple& Max, HTuple* RowBeginOut, HTuple* ColBeginOut, HTuple* RowEndOut, HTuple* ColEndOut)

static void HMisc::SelectLines(const HTuple& RowBeginIn, const HTuple& ColBeginIn, const HTuple& RowEndIn, const HTuple& ColEndIn, const HTuple& Feature, const HString& Operation, const HTuple& Min, const HTuple& Max, HTuple* RowBeginOut, HTuple* ColBeginOut, HTuple* RowEndOut, HTuple* ColEndOut)

static void HMisc::SelectLines(const HTuple& RowBeginIn, const HTuple& ColBeginIn, const HTuple& RowEndIn, const HTuple& ColEndIn, const HString& Feature, const HString& Operation, const HString& Min, const HString& Max, HTuple* RowBeginOut, HTuple* ColBeginOut, HTuple* RowEndOut, HTuple* ColEndOut)

static void HMisc::SelectLines(const HTuple& RowBeginIn, const HTuple& ColBeginIn, const HTuple& RowEndIn, const HTuple& ColEndIn, const char* Feature, const char* Operation, const char* Min, const char* Max, HTuple* RowBeginOut, HTuple* ColBeginOut, HTuple* RowEndOut, HTuple* ColEndOut)

static void HMisc::SelectLines(const HTuple& RowBeginIn, const HTuple& ColBeginIn, const HTuple& RowEndIn, const HTuple& ColEndIn, const wchar_t* Feature, const wchar_t* Operation, const wchar_t* Min, const wchar_t* Max, HTuple* RowBeginOut, HTuple* ColBeginOut, HTuple* RowEndOut, HTuple* ColEndOut)   (Nur Windows)

static void HOperatorSet.SelectLines(HTuple rowBeginIn, HTuple colBeginIn, HTuple rowEndIn, HTuple colEndIn, HTuple feature, HTuple operation, HTuple min, HTuple max, out HTuple rowBeginOut, out HTuple colBeginOut, out HTuple rowEndOut, out HTuple colEndOut)

static void HMisc.SelectLines(HTuple rowBeginIn, HTuple colBeginIn, HTuple rowEndIn, HTuple colEndIn, HTuple feature, string operation, HTuple min, HTuple max, out HTuple rowBeginOut, out HTuple colBeginOut, out HTuple rowEndOut, out HTuple colEndOut)

static void HMisc.SelectLines(HTuple rowBeginIn, HTuple colBeginIn, HTuple rowEndIn, HTuple colEndIn, string feature, string operation, string min, string max, out HTuple rowBeginOut, out HTuple colBeginOut, out HTuple rowEndOut, out HTuple colEndOut)

def select_lines(row_begin_in: Sequence[int], col_begin_in: Sequence[int], row_end_in: Sequence[int], col_end_in: Sequence[int], feature: MaybeSequence[str], operation: str, min: MaybeSequence[Union[int, float, str]], max: MaybeSequence[Union[int, float, str]]) -> Tuple[Sequence[int], Sequence[int], Sequence[int], Sequence[int]]

Beschreibung

select_linesselect_linesSelectLinesSelectLinesSelectLinesselect_lines wählt Linien anhand verschiedener Kriterien aus. Für jede Eingabelinie werden die angegebenen Merkmale (FeatureFeatureFeatureFeaturefeaturefeature) berechnet. Wenn jedes (OperationOperationOperationOperationoperationoperation = 'and'"and""and""and""and""and") oder mindestens eines (OperationOperationOperationOperationoperationoperation = 'or'"or""or""or""or""or") der so berechneten Merkmale in den vorgegebenen Grenzen (MinMinMinMinminmin,MaxMaxMaxMaxmaxmax) liegt, wird die Linie in die Ausgabe übernommen. Mit den Defaultwerten 'min'"min""min""min""min""min" beziehungsweise 'max'"max""max""max""max""max" der Parameter MinMinMinMinminmin und MaxMaxMaxMaxmaxmax werden diese Grenzen nach unten beziehungsweise oben offen gelassen.

Bedingung:

Mögliche Werte für FeatureFeatureFeatureFeaturefeaturefeature:

'length'"length""length""length""length""length"

(euklidische) Länge der Linie

'row'"row""row""row""row""row"

Zeilenindex des Schwerpunkts

'column'"column""column""column""column""column"

Spaltenindex des Schwerpunkts

'phi'"phi""phi""phi""phi""phi"

Orientierung der Linie ( )

Achtung

Wird nur ein Merkmal verwendet, dann ist der Wert von OperationOperationOperationOperationoperationoperation bedeutungslos. Mehrere Merkmale werden in der Reihenfolge abgearbeitet, in der sie übergeben werden.

Ausführungsinformationen

Parameter

RowBeginInRowBeginInRowBeginInRowBeginInrowBeginInrow_begin_in (input_control)  line.begin.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeilenkoordinaten der Anfangspunkte der Eingabelinien.

ColBeginInColBeginInColBeginInColBeginIncolBeginIncol_begin_in (input_control)  line.begin.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Spaltenkoordinaten der Anfangspunkte der Eingabelinien.

RowEndInRowEndInRowEndInRowEndInrowEndInrow_end_in (input_control)  line.end.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeilenkoordinaten der Endpunkte der Eingabelinien.

ColEndInColEndInColEndInColEndIncolEndIncol_end_in (input_control)  line.end.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Spaltenkoordinaten der Endpunkte der Eingabelinien.

FeatureFeatureFeatureFeaturefeaturefeature (input_control)  string(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Gewünschte Merkmale.

Defaultwert: 'length' "length" "length" "length" "length" "length"

Werteliste: 'column'"column""column""column""column""column", 'length'"length""length""length""length""length", 'phi'"phi""phi""phi""phi""phi", 'row'"row""row""row""row""row"

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

Gewünschte Verknüpfung.

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

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

MinMinMinMinminmin (input_control)  string(-array) HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Untere Grenzen der Merkmale oder 'min'.

Defaultwert: 'min' "min" "min" "min" "min" "min"

MaxMaxMaxMaxmaxmax (input_control)  string(-array) HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Obere Grenzen der Merkmale oder 'max'.

Defaultwert: 'max' "max" "max" "max" "max" "max"

RowBeginOutRowBeginOutRowBeginOutRowBeginOutrowBeginOutrow_begin_out (output_control)  line.begin.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeilenkoordinaten der Anfangspunkte der Ausgabelinien.

ColBeginOutColBeginOutColBeginOutColBeginOutcolBeginOutcol_begin_out (output_control)  line.begin.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Spaltenkoordinaten der Anfangspunkte der Ausgabelinien.

RowEndOutRowEndOutRowEndOutRowEndOutrowEndOutrow_end_out (output_control)  line.end.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeilenkoordinaten der Endpunkte der Ausgabelinien.

ColEndOutColEndOutColEndOutColEndOutcolEndOutcol_end_out (output_control)  line.end.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Spaltenindizes der Endpunkte der Ausgabelinien.

Ergebnis

select_linesselect_linesSelectLinesSelectLinesSelectLinesselect_lines liefert den Wert TRUE, falls die Parameterwerte korrekt sind. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Vorgänger

sobel_ampsobel_ampSobelAmpSobelAmpSobelAmpsobel_amp, edges_imageedges_imageEdgesImageEdgesImageEdgesImageedges_image, thresholdthresholdThresholdThresholdThresholdthreshold, hysteresis_thresholdhysteresis_thresholdHysteresisThresholdHysteresisThresholdHysteresisThresholdhysteresis_threshold, split_skeleton_regionsplit_skeleton_regionSplitSkeletonRegionSplitSkeletonRegionSplitSkeletonRegionsplit_skeleton_region, split_skeleton_linessplit_skeleton_linesSplitSkeletonLinesSplitSkeletonLinesSplitSkeletonLinessplit_skeleton_lines

Nachfolger

set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width, disp_linedisp_lineDispLineDispLineDispLinedisp_line

Alternativen

line_orientationline_orientationLineOrientationLineOrientationLineOrientationline_orientation, line_positionline_positionLinePositionLinePositionLinePositionline_position, partition_linespartition_linesPartitionLinesPartitionLinesPartitionLinespartition_lines

Siehe auch

partition_linespartition_linesPartitionLinesPartitionLinesPartitionLinespartition_lines, select_lines_longestselect_lines_longestSelectLinesLongestSelectLinesLongestSelectLinesLongestselect_lines_longest, detect_edge_segmentsdetect_edge_segmentsDetectEdgeSegmentsDetectEdgeSegmentsDetectEdgeSegmentsdetect_edge_segments, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape

Modul

Foundation