opening_circle🔗
説明🔗
opening_circle — 円形構造要素を用いて領域のオープニング処理を実行する。
書式🔗
opening_circle( region Region, out region RegionOpening, real Radius )
説明🔗
opening_circle は、円形構造要素をもつ Minkowsi 和を伴う
収縮処理として定義されます。(例参照) opening は、(そ
の円形構造要素より小さい) 小さい領域を除去します。これは領域の境界
をなめらかにします。
実行情報🔗
実行情報
-
マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)
-
マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)
-
tupleレベルで自動的に並列演算処理を実施
パラメーター🔗
Region (input_object) region(-array) → object
オープニング処理する対象領域
RegionOpening (output_object) region(-array) → object
オープニング処理された領域
Radius (input_control) real → (real / integer)
円形構造要素の半径
初期値: 3.5
推奨値: 1.5, 2.5, 3.5, 4.5, 5.5, 7.5, 9.5, 12.5, 15.5, 19.5, 25.5, 33.5, 45.5, 60.5, 110.5
値域: 0.5 ≤ Radius ≤ 511.5 (lin)
最小増分: 1.0
推奨増分: 1.0
例🔗
(HDevelop)
* Large regions in an aerial picture (beech trees or meadows):
read_image (Image, 'forest_road')
threshold (Image, Region, 120, 255)
* Close the small gaps.
closing_circle (Region, RegionClosing, 3.5)
* Select the large regions.
opening_circle (RegionClosing, RegionOpening, 19.5)
(C)/* simulation of opening_circle */
my_opening_circle(Hobject In, double Radius, Hobject *Out)
{
Hobject Circle, tmp\;
gen_circle(&Circle,100.0,100.0,Radius)\;
erosion1(Region,Circle,&tmp,1)\;
minkowski_add1(tmp,Circle,&Out,1)\;
}
/* Large regions in an aerial picture (beech trees or meadows): */
read_image(&Image, "forest_road")\;
threshold(Image, &Region, 120.0, 255.0)\;
/* Close the small gaps. */
closing_circle(Region, &RegionClosing, 3.5)\;
/* Select the large regions. */
opening_circle(RegionClosing, &RegionOpening, 19.5)\;
複雑性🔗
入力領域の面積を \(F1\) とします。その場合、 1 つの領域に対する実行時間は以下のようになります。
結果🔗
opening_circle は、すべてのパラメーターが正しい場合に
2 (H_MSG_TRUE) を返します。空または入力領域がない場合の動作は、次の設
定に従います。
-
領域がない場合:
set_system('no_object_result',<RegionResult>) -
領域が空の場合:
set_system('empty_region_result',<RegionResult>)
そうでない場合、例外処理が発生します。
他のオペレーターとの組み合わせ🔗
組み合わせ
前処理の候補
threshold, regiongrowing, connection, union1, watersheds, class_ndim_norm
後処理の候補
reduce_domain, select_shape, area_center, connection
他の選択候補
opening, dilation1, minkowski_add1, gen_circle
関連項目
モジュール🔗
Foundation