Skip to content

select_lines_longestSelectLinesLongestSelectLinesLongestselect_lines_longestT_select_lines_longest🔗

説明🔗

select_lines_longestSelectLinesLongestSelectLinesLongestselect_lines_longestT_select_lines_longest — 入力直線から最も長い直線を選択する。

警告🔗

select_lines_longestSelectLinesLongest は現在では使用されず、下位互換性のためだけに提供 されます。

書式🔗

select_lines_longest( line.begin.y RowBeginIn, line.begin.x ColBeginIn, line.end.y RowEndIn, line.end.x ColEndIn, integer Num, out line.begin.y RowBeginOut, out line.begin.x ColBeginOut, out line.end.y RowEndOut, out line.end.x ColEndOut )void SelectLinesLongest( const HTuple& RowBeginIn, const HTuple& ColBeginIn, const HTuple& RowEndIn, const HTuple& ColEndIn, const HTuple& Num, HTuple* RowBeginOut, HTuple* ColBeginOut, HTuple* RowEndOut, HTuple* ColEndOut )static void HOperatorSet.SelectLinesLongest( HTuple rowBeginIn, HTuple colBeginIn, HTuple rowEndIn, HTuple colEndIn, HTuple num, out HTuple rowBeginOut, out HTuple colBeginOut, out HTuple rowEndOut, out HTuple colEndOut )def select_lines_longest( row_begin_in: Sequence[int], col_begin_in: Sequence[int], row_end_in: Sequence[int], col_end_in: Sequence[int], num: int ) -> Tuple[Sequence[int], Sequence[int], Sequence[int], Sequence[int]]

Herror T_select_lines_longest( const Htuple RowBeginIn, const Htuple ColBeginIn, const Htuple RowEndIn, const Htuple ColEndIn, const Htuple Num, Htuple* RowBeginOut, Htuple* ColBeginOut, Htuple* RowEndOut, Htuple* ColEndOut )

static void HMisc::SelectLinesLongest( const HTuple& RowBeginIn, const HTuple& ColBeginIn, const HTuple& RowEndIn, const HTuple& ColEndIn, Hlong Num, HTuple* RowBeginOut, HTuple* ColBeginOut, HTuple* RowEndOut, HTuple* ColEndOut )

static void HMisc.SelectLinesLongest( HTuple rowBeginIn, HTuple colBeginIn, HTuple rowEndIn, HTuple colEndIn, int num, out HTuple rowBeginOut, out HTuple colBeginOut, out HTuple rowEndOut, out HTuple colEndOut )

説明🔗

オペレーター select_lines_longestSelectLinesLongest はTuple RowBeginInrowBeginInrow_begin_in, ColBeginIncolBeginIncol_begin_in, RowEndInrowEndInrow_end_in, ColEndIncolEndIncol_end_in によって記述 された入力直線から Numnumnum 個の最も長い直線を選択します。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

RowBeginInrowBeginInrow_begin_in (input_control) line.begin.y-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

入力直線の開始点の行座標

ColBeginIncolBeginIncol_begin_in (input_control) line.begin.x-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

入力直線の開始点の列座標

RowEndInrowEndInrow_end_in (input_control) line.end.y-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

入力直線の終了点の行座標

ColEndIncolEndIncol_end_in (input_control) line.end.x-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

入力直線の終了点の列座標

Numnumnum (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

出力直線の(最大)数

初期値: 1010

RowBeginOutrowBeginOutrow_begin_out (output_control) line.begin.y-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

出力直線の開始点の行座標

ColBeginOutcolBeginOutcol_begin_out (output_control) line.begin.x-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

出力直線の開始点の列座標

RowEndOutrowEndOutrow_end_out (output_control) line.end.y-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

出力直線の終了点の行座標

ColEndOutcolEndOutcol_end_out (output_control) line.end.x-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

出力直線の終了点の列座標

結果🔗

パラメーターが正しいならば、オペレーター select_lines_longestSelectLinesLongest は、 値 2 (H_MSG_TRUE) を返します。そうでなければ、例外処理が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

sobel_ampSobelAmp, edges_imageEdgesImage, thresholdThreshold, hysteresis_thresholdHysteresisThreshold, split_skeleton_regionSplitSkeletonRegion, split_skeleton_linesSplitSkeletonLines

後処理の候補

set_line_widthSetLineWidth, disp_lineDispLine

他の選択候補

line_orientationLineOrientation, line_positionLinePosition, select_linesSelectLines, partition_linesPartitionLines

関連項目

select_linesSelectLines, partition_linesPartitionLines, detect_edge_segmentsDetectEdgeSegments, select_shapeSelectShape

モジュール🔗

Foundation