select_linesSelectLinesSelectLinesselect_linesT_select_lines
説明
select_linesSelectLinesSelectLinesselect_linesT_select_lines — 様々な基準によって特定の直線を選択します。
警告
select_linesSelectLines は現在では使用されず、下位互換性のためだけに提供
されます。
書式
select_lines( line.begin.y RowBeginIn, line.begin.x ColBeginIn, line.end.y RowEndIn, line.end.x ColEndIn, string Feature, string Operation, string Min, string Max, out line.begin.y RowBeginOut, out line.begin.x ColBeginOut, out line.end.y RowEndOut, out line.end.x 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 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 )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]]
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 )
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 ) (Windows only)
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 )
説明
オペレーター select_linesSelectLines は様々な基準にしたがって直線を
選びます。すべての入力直線に対して、指定された特徴(Featurefeaturefeature)
が計算されます。計算された特徴の全て(Operationoperationoperation = ‘and’の場合)
あるいは少なくとも 1 つ(Operationoperationoperation = ‘or’の場合)が与えられた
限度(Minminmin,Maxmaxmax)の範囲内であれば、その直線が出力されます。
パラメータMinminmin と Maxmaxmax のデフォルト値'min'"min" と 'max'"max"は、
それぞれ上限と下限を無制限にすることができます。
条件:
\(Min_{i} \leq Feature_{i}(Line) \leq Max_{i}\) \
Featurefeaturefeature のための可能な値:
注意
ただ 1 つの特徴が使用される場合、Operationoperationoperation の値は意味がありません。
複数の特徴がある場合、それらが入力された順番で処理されます。
実行情報
実行情報
パラメーター
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)
入力直線の終了点の列座標
Featurefeaturefeature (input_control) string(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)
選択のために使用する特徴
初期値: 'length'"length"
値のリスト: 'column', 'length', 'phi', 'row'"column", "length", "phi", "row"
Operationoperationoperation (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
希望する特徴の組合せ
初期値: 'and'"and"
値のリスト: 'and', 'or'"and", "or"
Minminmin (input_control) string(-array) → (string / integer / real)HTuple (HString / Hlong / double)HTuple (string / int / long / double)MaybeSequence[Union[int, float, str]]Htuple (char* / Hlong / double)
特徴の下限か ‘最小値’
初期値: 'min'"min"
Maxmaxmax (input_control) string(-array) → (string / integer / real)HTuple (HString / Hlong / double)HTuple (string / int / long / double)MaybeSequence[Union[int, float, str]]Htuple (char* / Hlong / double)
特徴の上限か ‘最大値’
初期値: 'max'"max"
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_linesSelectLines は値 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, partition_linesPartitionLines
関連項目
partition_linesPartitionLines, select_lines_longestSelectLinesLongest, detect_edge_segmentsDetectEdgeSegments, select_shapeSelectShape
モジュール
Foundation