partition_lines T_partition_lines PartitionLines PartitionLines partition_lines (Operator)
Name
partition_lines T_partition_lines PartitionLines PartitionLines partition_lines — Partitionierung von Linien gemäß verschiedener Kriterien.
Warnung
partition_lines partition_lines PartitionLines PartitionLines PartitionLines partition_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_lines partition_lines PartitionLines PartitionLines PartitionLines partition_lines teilt Linien anhand verschiedener
Kriterien in zwei Mengen auf. Für jede Eingabelinie werden die
angegebenen Merkmale (Feature Feature Feature Feature feature feature ) berechnet. Wenn jedes
(Operation Operation Operation Operation operation operation = 'and' "and" "and" "and" "and" "and" ) oder mindestens eines
(Operation Operation Operation Operation operation operation = 'or' "or" "or" "or" "or" "or" ) der so berechneten Merkmale in den
vorgegebenen Grenzen (Min Min Min Min min min ,Max Max Max Max max max )l liegt, wird
die Linie in die erste Menge (Parameter RowBeginOut RowBeginOut RowBeginOut RowBeginOut rowBeginOut row_begin_out bis
ColEndOut ColEndOut ColEndOut ColEndOut colEndOut col_end_out ) übernommen, andernfalls in die zweite Menge
(Parameter FailRowBOut FailRowBOut FailRowBOut FailRowBOut failRowBOut fail_row_bout bis FailColEOut FailColEOut FailColEOut FailColEOut failColEOut fail_col_eout ).
Mit den Defaultwerten 'min' "min" "min" "min" "min" "min" beziehungsweise 'max' "max" "max" "max" "max" "max" der
Parameter Min Min Min Min min min und Max Max Max Max max max werden
diese Grenzen nach unten beziehungsweise oben offen gelassen.
Mögliche Werte für Feature Feature Feature Feature feature feature :
'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
Operation Operation Operation Operation operation operation bedeutungslos. Mehrere Merkmale werden in der
Reihenfolge abgearbeitet, in der sie übergeben werden.
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
RowBeginIn RowBeginIn RowBeginIn RowBeginIn rowBeginIn row_begin_in (input_control) line.begin.y-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Zeilenkoordinaten der Anfangspunkte der Eingabelinien.
ColBeginIn ColBeginIn ColBeginIn ColBeginIn colBeginIn col_begin_in (input_control) line.begin.x-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Spaltenkoordinaten der Anfangspunkte der Eingabelinien.
RowEndIn RowEndIn RowEndIn RowEndIn rowEndIn row_end_in (input_control) line.end.y-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Zeilenkoordinaten der Endpunkte der Eingabelinien.
ColEndIn ColEndIn ColEndIn ColEndIn colEndIn col_end_in (input_control) line.end.x-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Spaltenkoordinaten der Endpunkte der Eingabelinien.
Feature Feature Feature Feature feature feature (input_control) string(-array) → HTuple MaybeSequence[str] HTuple Htuple (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"
Operation Operation Operation Operation operation operation (input_control) string → HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Gewünschte Verknüpfung.
Werteliste: 'and' "and" "and" "and" "and" "and" , 'or' "or" "or" "or" "or" "or"
Min Min Min Min min min (input_control) string(-array) → HTuple MaybeSequence[Union[int, float, str]] HTuple Htuple (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"
Max Max Max Max max max (input_control) string(-array) → HTuple MaybeSequence[Union[int, float, str]] HTuple Htuple (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"
RowBeginOut RowBeginOut RowBeginOut RowBeginOut rowBeginOut row_begin_out (output_control) line.begin.y-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Zeilenkoordinaten der Anfangspunkte der Linien, die
die Bedingung(en) erfüllen.
ColBeginOut ColBeginOut ColBeginOut ColBeginOut colBeginOut col_begin_out (output_control) line.begin.x-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Spaltenkoordinaten der Anfangspunkte der Linien, die
die Bedingung(en) erfüllen.
RowEndOut RowEndOut RowEndOut RowEndOut rowEndOut row_end_out (output_control) line.end.y-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Zeilenkoordinaten der Endpunkte der Linien, die
die Bedingung(en) erfüllen.
ColEndOut ColEndOut ColEndOut ColEndOut colEndOut col_end_out (output_control) line.begin.x-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Spaltenkoordinaten der Endpunkte der Linien, die
die Bedingung(en) erfüllen.
FailRowBOut FailRowBOut FailRowBOut FailRowBOut failRowBOut fail_row_bout (output_control) line.begin.y-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Zeilenkoordinaten der Anfangspunkte der Linien, die
die Bedingung(en) nicht erfüllen.
FailColBOut FailColBOut FailColBOut FailColBOut failColBOut fail_col_bout (output_control) line.begin.x-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Spaltenkoordinaten der Anfangspunkte der Linien, die
die Bedingung(en) nicht erfüllen.
FailRowEOut FailRowEOut FailRowEOut FailRowEOut failRowEOut fail_row_eout (output_control) line.end.y-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Zeilenkoordinaten der Endpunkte der Linien, die
die Bedingung(en) nicht erfüllen.
FailColEOut FailColEOut FailColEOut FailColEOut failColEOut fail_col_eout (output_control) line.end.x-array → HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Spaltenkoordinaten der Endpunkte der Linien, die
die Bedingung(en) nicht erfüllen.
Ergebnis
partition_lines partition_lines PartitionLines PartitionLines PartitionLines partition_lines liefert den Wert 2 (H_MSG_TRUE ), falls die
Parameterwerte korrekt sind. Ansonsten wird eine
Fehlerbehandlung durchgeführt.
Vorgänger
sobel_amp sobel_amp SobelAmp SobelAmp SobelAmp sobel_amp ,
edges_image edges_image EdgesImage EdgesImage EdgesImage edges_image ,
threshold threshold Threshold Threshold Threshold threshold ,
hysteresis_threshold hysteresis_threshold HysteresisThreshold HysteresisThreshold HysteresisThreshold hysteresis_threshold ,
split_skeleton_region split_skeleton_region SplitSkeletonRegion SplitSkeletonRegion SplitSkeletonRegion split_skeleton_region ,
split_skeleton_lines split_skeleton_lines SplitSkeletonLines SplitSkeletonLines SplitSkeletonLines split_skeleton_lines
Nachfolger
set_line_width set_line_width SetLineWidth SetLineWidth SetLineWidth set_line_width ,
disp_line disp_line DispLine DispLine DispLine disp_line
Alternativen
line_orientation line_orientation LineOrientation LineOrientation LineOrientation line_orientation ,
line_position line_position LinePosition LinePosition LinePosition line_position ,
select_lines select_lines SelectLines SelectLines SelectLines select_lines ,
select_lines_longest select_lines_longest SelectLinesLongest SelectLinesLongest SelectLinesLongest select_lines_longest
Siehe auch
select_lines select_lines SelectLines SelectLines SelectLines select_lines ,
select_lines_longest select_lines_longest SelectLinesLongest SelectLinesLongest SelectLinesLongest select_lines_longest ,
detect_edge_segments detect_edge_segments DetectEdgeSegments DetectEdgeSegments DetectEdgeSegments detect_edge_segments ,
select_shape select_shape SelectShape SelectShape SelectShape select_shape
Modul
Foundation