Skip to content

select_shape_stdSelectShapeStdSelectShapeStdselect_shape_stdselect_shape_std🔗

説明🔗

select_shape_stdSelectShapeStdSelectShapeStdselect_shape_stdselect_shape_std — 与えられた形状をもつ領域を選択する。

書式🔗

select_shape_std( region Regions, out region SelectedRegions, string Shape, real Percent )void SelectShapeStd( const HObject& Regions, HObject* SelectedRegions, const HTuple& Shape, const HTuple& Percent )static void HOperatorSet.SelectShapeStd( HObject regions, out HObject selectedRegions, HTuple shape, HTuple percent )def select_shape_std( regions: HObject, shape: str, percent: float ) -> HObject

Herror select_shape_std( const Hobject Regions, Hobject* SelectedRegions, const char* Shape, double Percent )

Herror T_select_shape_std( const Hobject Regions, Hobject* SelectedRegions, const Htuple Shape, const Htuple Percent )

HRegion HRegion::SelectShapeStd( const HString& Shape, double Percent ) const

HRegion HRegion::SelectShapeStd( const char* Shape, double Percent ) const

HRegion HRegion::SelectShapeStd( const wchar_t* Shape, double Percent ) const (Windows only)

HRegion HRegion.SelectShapeStd( string shape, double percent )

説明🔗

オペレーター select_shape_stdSelectShapeStd は、与えられた領域の形状を デフォルト形状と比較します。その領域が類似した形状を持つ場合選択さ れ出力されます。 Shapeshapeshape に対して設定可能な値は以下のとおりです。

  • 'max_area'"max_area" 最大面積の領域が選択されます。

  • 'rectangle1'"rectangle1" 座標軸と平行な領域を囲む矩形は、オペレーター smallest_rectangle1SmallestRectangle1 によって決定されます。パーセントでの領 域の差が Percentpercentpercent よりも大きい場合、領域は採用されます。

  • 'rectangle2'"rectangle2" 任意の方向の領域を囲む最小の矩形がオペレーター smallest_rectangle2SmallestRectangle2 によって決定されます。パーセントでの領 域の差が Percentpercentpercent よりも大きい場合、領域は採用されます。よ りロバストな代替方法として、Featurefeaturefeature を 'rectangularity'"rectangularity" に設定したオペレーター select_shapeSelectShape を代わりに使用できます。

実行情報🔗

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

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

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

パラメーター🔗

Regionsregionsregions (input_object) region(-array) → objectHObjectHRegionHObjectHobject

対象入力領域

SelectedRegionsselectedRegionsselected_regions (output_object) region(-array) → objectHObjectHRegionHObjectHobject *

希望する形状をもつ領域

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

チェックする形状特徴

初期値: 'max_area'"max_area"
値のリスト: 'max_area', 'rectangle1', 'rectangle2'"max_area", "rectangle1", "rectangle2"

Percentpercentpercent (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

近似測度

初期値: 70.070.0
推奨値: 10.0, 30.0, 50.0, 60.0, 70.0, 80.0, 90.0, 95.0, 100.010.0, 30.0, 50.0, 60.0, 70.0, 80.0, 90.0, 95.0, 100.0
値域: 0.0 ≤ Percent ≤ 100.0 (lin)
最小増分: 0.1
推奨増分: 10.0

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

組み合わせ

前処理の候補

thresholdThreshold, regiongrowingRegiongrowing, connectionConnection, smallest_rectangle1SmallestRectangle1, smallest_rectangle2SmallestRectangle2

他の選択候補

intersectionIntersection, complementComplement, area_centerAreaCenter, select_shapeSelectShape

関連項目

smallest_rectangle1SmallestRectangle1, smallest_rectangle2SmallestRectangle2, rectangularityRectangularity

モジュール🔗

Foundation