Skip to content

closing_rectangle1ClosingRectangle1ClosingRectangle1closing_rectangle1closing_rectangle1🔗

説明🔗

closing_rectangle1ClosingRectangle1ClosingRectangle1closing_rectangle1closing_rectangle1 — 矩形構造要素を用いて領域に対してクロージング処理を実行する。

書式🔗

closing_rectangle1( region Region, out region RegionClosing, extent.x Width, extent.y Height )void ClosingRectangle1( const HObject& Region, HObject* RegionClosing, const HTuple& Width, const HTuple& Height )static void HOperatorSet.ClosingRectangle1( HObject region, out HObject regionClosing, HTuple width, HTuple height )def closing_rectangle1( region: HObject, width: int, height: int ) -> HObject

Herror closing_rectangle1( const Hobject Region, Hobject* RegionClosing, const Hlong Width, const Hlong Height )

Herror T_closing_rectangle1( const Hobject Region, Hobject* RegionClosing, const Htuple Width, const Htuple Height )

HRegion HRegion::ClosingRectangle1( Hlong Width, Hlong Height ) const

HRegion HRegion.ClosingRectangle1( int width, int height )

説明🔗

closing_rectangle1ClosingRectangle1 は、入力領域 Regionregionregion に対し、 矩形の構造要素を用いたclosingClosingの処理のように働きます。矩形の構造要素の大きさ は、パラメーター Widthwidthwidth と Heightheightheight によって決定さ れます。すべての他の closingClosing 処理と同様に、領域の 境界はなめらかになり、矩形構造要素よりも小さい領域内の穴は閉じま す。

erosion_rectangle1ErosionRectangle1 や dilation_rectangle1DilationRectangle1と同様に closing_rectangle1ClosingRectangle1 は非常に速い処理です。

注意🔗

closing_rectangle1ClosingRectangle1 は、入力領域個別に適用されます。もし、 異なる領域の間のギャップを閉じる必要があれば、union1Union1 また は union2Union2 を最初に呼び出す必要があります。

実行情報🔗

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

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

  • tupleレベルで自動的に並列演算処理を実施

パラメーター🔗

Regionregionregion (input_object) region(-array) → objectHObjectHRegionHObjectHobject

クロージング処理を適用する対象領域

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

結果として得られる領域

Widthwidthwidth (input_control) extent.x → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

矩形構造要素の幅

初期値: 1010
推奨値: 1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 2001, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200
値域: 1 ≤ Width ≤ 511 (lin)
最小増分: 1
推奨増分: 1

Heightheightheight (input_control) extent.y → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

矩形構造要素の高さ

初期値: 1010
推奨値: 1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 2001, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200
値域: 1 ≤ Height ≤ 511 (lin)
最小増分: 1
推奨増分: 1

複雑性🔗

入力領域の面積を \(F1\) とし、矩形の高さを \(H\) とします。その場合、 1 つの領域に対する実行時間は以下のようになります。

\[\begin{eqnarray*} O(2 \cdot \sqrt{F1} \cdot log_2(H)) \enspace . \end{eqnarray*}\]

結果🔗

closing_rectangle1ClosingRectangle1 は、すべてのパラメーターが正しい場合に 2 (H_MSG_TRUE) を返します。空または入力領域がない場合の動作は、次のように設 定します。

  • 領域がない場合: set_system('no_object_result',<RegionResult>)

  • 領域が空の場合: set_system('empty_region_result',<RegionResult>)

そうでない場合、例外処理が発生します。

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

組み合わせ

前処理の候補

thresholdThreshold, regiongrowingRegiongrowing, connectionConnection, union1Union1, watershedsWatersheds, class_ndim_normClassNdimNorm

後処理の候補

reduce_domainReduceDomain, select_shapeSelectShape, area_centerAreaCenter, connectionConnection

他の選択候補

closingClosing

関連項目

dilation_rectangle1DilationRectangle1, erosion_rectangle1ErosionRectangle1, opening_rectangle1OpeningRectangle1, gen_rectangle1GenRectangle1

モジュール🔗

Foundation