Skip to content

split_contours_xldSplitContoursXldSplitContoursXldsplit_contours_xldsplit_contours_xld🔗

説明🔗

split_contours_xldSplitContoursXldSplitContoursXldsplit_contours_xldsplit_contours_xld — 卓越点で、XLD オブジェクトを分割する。

書式🔗

split_contours_xld( xld_poly Polygons, out xld_cont Contours, string Mode, integer Weight, integer Smooth )void SplitContoursXld( const HObject& Polygons, HObject* Contours, const HTuple& Mode, const HTuple& Weight, const HTuple& Smooth )static void HOperatorSet.SplitContoursXld( HObject polygons, out HObject contours, HTuple mode, HTuple weight, HTuple smooth )def split_contours_xld( polygons: HObject, mode: str, weight: int, smooth: int ) -> HObject

Herror split_contours_xld( const Hobject Polygons, Hobject* Contours, const char* Mode, const Hlong Weight, const Hlong Smooth )

Herror T_split_contours_xld( const Hobject Polygons, Hobject* Contours, const Htuple Mode, const Htuple Weight, const Htuple Smooth )

HXLDCont HXLDPoly::SplitContoursXld( const HString& Mode, Hlong Weight, Hlong Smooth ) const

HXLDCont HXLDPoly::SplitContoursXld( const char* Mode, Hlong Weight, Hlong Smooth ) const

HXLDCont HXLDPoly::SplitContoursXld( const wchar_t* Mode, Hlong Weight, Hlong Smooth ) const (Windows only)

HXLDCont HXLDPoly.SplitContoursXld( string mode, int weight, int smooth )

説明🔗

split_contours_xldSplitContoursXld は、卓越点で多角形 Polygonspolygonspolygons を 生成するために使用された XLD を分割します。 モード 'polygon'"polygon" が選択される場合、XLD は多角形の制御点で 分割されます。モード 'dominant'"dominant" において、それらは卓越点 で、すなわち、計算された方向の変化が(経験的に決定された)しきい値 (Weight * 2 * PI / 輪郭長)よりも大きい点でかつ(経験的に決定された)\(\sqrt{ \textrm{Smooth}} * \log(\mbox{\it contour length})\) 点に 関する近傍内で方向の変化が生じない点で分割されます。XLD の方 向は、XLD 点のまわりの Smoothsmoothsmooth 点近傍内のすべての点を通る 回帰ライン(すなわち最小近似されたライン)の方向から決定されます。 決定された方向は、幅 Smoothsmoothsmooth のガウスでスムージングされま す。Weightweightweight はそのオペレーターの敏感さに対する重み付け要素 です。より大きい Weightweightweight が選ばれると、卓越点はより少なく なります。

各多角形は輪郭線への参照点を必要とします。例えば多角形をDXFファイル から読み込むなどして参照点がない場合、split_contours_xldSplitContoursXld は エラーを返します。

実行情報🔗

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

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

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

パラメーター🔗

Polygonspolygonspolygons (input_object) xld_poly(-array) → objectHObjectHXLDPolyHObjectHobject

対応する XLD が分割されることになっている多角形

Contourscontourscontours (output_object) xld_cont(-array) → objectHObjectHXLDContHObjectHobject *

分割された XLD

Modemodemode (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

XLD の分割モード

初期値: 'polygon'"polygon"
値のリスト: 'dominant', 'polygon'"dominant", "polygon"

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

敏感さに対する重み

初期値: 11

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

スムージングマスクの幅

初期値: 55

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

組み合わせ

前処理の候補

gen_polygons_xldGenPolygonsXld

後処理の候補

regress_contours_xldRegressContoursXld

関連項目

gen_contours_skeleton_xldGenContoursSkeletonXld, lines_gaussLinesGauss, lines_facetLinesFacet, edges_sub_pixEdgesSubPix

モジュール🔗

Foundation