partition_linesT_partition_linesPartitionLinesPartitionLinespartition_lines (Operator)

Name

partition_linesT_partition_linesPartitionLinesPartitionLinespartition_lines — Partitionierung von Linien gemäß verschiedener Kriterien.

Warnung

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

Signatur

partition_lines( : : RowBeginIn, ColBeginIn, RowEndIn, ColEndIn, Feature, Operation, Min, Max : RowBeginOut, ColBeginOut, RowEndOut, ColEndOut, FailRowBOut, FailColBOut, FailRowEOut, FailColEOut)

Herror T_partition_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, Htuple* FailRowBOut, Htuple* FailColBOut, Htuple* FailRowEOut, Htuple* FailColEOut)

void PartitionLines(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, HTuple* FailRowBOut, HTuple* FailColBOut, HTuple* FailRowEOut, HTuple* FailColEOut)

static void HMisc::PartitionLines(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, HTuple* FailRowBOut, HTuple* FailColBOut, HTuple* FailRowEOut, HTuple* FailColEOut)

static void HMisc::PartitionLines(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, HTuple* FailRowBOut, HTuple* FailColBOut, HTuple* FailRowEOut, HTuple* FailColEOut)

static void HMisc::PartitionLines(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, HTuple* FailRowBOut, HTuple* FailColBOut, HTuple* FailRowEOut, HTuple* FailColEOut)

static void HMisc::PartitionLines(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, HTuple* FailRowBOut, HTuple* FailColBOut, HTuple* FailRowEOut, HTuple* FailColEOut)   (Nur Windows)

static void HOperatorSet.PartitionLines(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, out HTuple failRowBOut, out HTuple failColBOut, out HTuple failRowEOut, out HTuple failColEOut)

static void HMisc.PartitionLines(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, out HTuple failRowBOut, out HTuple failColBOut, out HTuple failRowEOut, out HTuple failColEOut)

static void HMisc.PartitionLines(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, out HTuple failRowBOut, out HTuple failColBOut, out HTuple failRowEOut, out HTuple failColEOut)

def partition_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], Sequence[int], Sequence[int], Sequence[int], Sequence[int]]

Beschreibung

partition_linespartition_linesPartitionLinesPartitionLinesPartitionLinespartition_lines teilt Linien anhand verschiedener Kriterien in zwei Mengen auf. 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)l liegt, wird die Linie in die erste Menge (Parameter RowBeginOutRowBeginOutRowBeginOutRowBeginOutrowBeginOutrow_begin_out bis ColEndOutColEndOutColEndOutColEndOutcolEndOutcol_end_out) übernommen, andernfalls in die zweite Menge (Parameter FailRowBOutFailRowBOutFailRowBOutFailRowBOutfailRowBOutfail_row_bout bis FailColEOutFailColEOutFailColEOutFailColEOutfailColEOutfail_col_eout). 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.

Mögliche Werte für FeatureFeatureFeatureFeaturefeaturefeature:

'length'

(euklidische) Länge der Linie

'row'

Zeilenindex des Schwerpunkts

'column'

Spaltenindex des Schwerpunkts

'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.

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.

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 Linien, die die Bedingung(en) erfüllen.

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

Spaltenkoordinaten der Anfangspunkte der Linien, die die Bedingung(en) erfüllen.

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

Zeilenkoordinaten der Endpunkte der Linien, die die Bedingung(en) erfüllen.

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

Spaltenkoordinaten der Endpunkte der Linien, die die Bedingung(en) erfüllen.

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

Zeilenkoordinaten der Anfangspunkte der Linien, die die Bedingung(en) nicht erfüllen.

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

Spaltenkoordinaten der Anfangspunkte der Linien, die die Bedingung(en) nicht erfüllen.

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

Zeilenkoordinaten der Endpunkte der Linien, die die Bedingung(en) nicht erfüllen.

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

Spaltenkoordinaten der Endpunkte der Linien, die die Bedingung(en) nicht erfüllen.

Ergebnis

partition_linespartition_linesPartitionLinesPartitionLinesPartitionLinespartition_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, select_linesselect_linesSelectLinesSelectLinesSelectLinesselect_lines, select_lines_longestselect_lines_longestSelectLinesLongestSelectLinesLongestSelectLinesLongestselect_lines_longest

Siehe auch

select_linesselect_linesSelectLinesSelectLinesSelectLinesselect_lines, select_lines_longestselect_lines_longestSelectLinesLongestSelectLinesLongestSelectLinesLongestselect_lines_longest, detect_edge_segmentsdetect_edge_segmentsDetectEdgeSegmentsDetectEdgeSegmentsDetectEdgeSegmentsdetect_edge_segments, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape

Modul

Foundation