Skip to content

opening_rectangle1OpeningRectangle1OpeningRectangle1opening_rectangle1opening_rectangle1🔗

説明🔗

opening_rectangle1OpeningRectangle1OpeningRectangle1opening_rectangle1opening_rectangle1 — 矩形構造要素を用いて領域のオープニング処理を実行する。

書式🔗

opening_rectangle1( region Region, out region RegionOpening, extent.x Width, extent.y Height )void OpeningRectangle1( const HObject& Region, HObject* RegionOpening, const HTuple& Width, const HTuple& Height )static void HOperatorSet.OpeningRectangle1( HObject region, out HObject regionOpening, HTuple width, HTuple height )def opening_rectangle1( region: HObject, width: int, height: int ) -> HObject

Herror opening_rectangle1( const Hobject Region, Hobject* RegionOpening, const Hlong Width, const Hlong Height )

Herror T_opening_rectangle1( const Hobject Region, Hobject* RegionOpening, const Htuple Width, const Htuple Height )

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

HRegion HRegion.OpeningRectangle1( int width, int height )

説明🔗

opening_rectangle1OpeningRectangle1 は、入力領域 Regionregionregion に対し、 矩形の構造要素を用いたopeningOpeningの処理のように働きます。矩形の構造要素の大きさ は、パラメーター Widthwidthwidth と Heightheightheight によって決定さ れます。他の openingOpening 処理同様、より大きい構造は保存され、 ラインや点のような小さい領域は除去されます。

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

実行情報🔗

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

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

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

パラメーター🔗

Regionregionregion (input_object) region(-array) → objectHObjectHRegionHObjectHobject

オープニング処理する対象領域

RegionOpeningregionOpeningregion_opening (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 ld(H)) \enspace . \end{eqnarray*}\]

結果🔗

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

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

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

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

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

組み合わせ

前処理の候補

thresholdThreshold, regiongrowingRegiongrowing, watershedsWatersheds, class_ndim_normClassNdimNorm

後処理の候補

reduce_domainReduceDomain, select_shapeSelectShape, area_centerAreaCenter, connectionConnection

他の選択候補

openingOpening, gen_rectangle1GenRectangle1, dilation_rectangle1DilationRectangle1, erosion_rectangle1ErosionRectangle1

モジュール🔗

Foundation