fill_up_shapeFillUpShapeFillUpShapefill_up_shapefill_up_shape
説明
fill_up_shapeFillUpShapeFillUpShapefill_up_shapefill_up_shape — 領域内で、指定した形状特徴を持つホール(穴)を埋める。
書式
fill_up_shape( region Region, out region RegionFillUp, string Feature, number Min, number Max )void FillUpShape( const HObject& Region, HObject* RegionFillUp, const HTuple& Feature, const HTuple& Min, const HTuple& Max )static void HOperatorSet.FillUpShape( HObject region, out HObject regionFillUp, HTuple feature, HTuple min, HTuple max )def fill_up_shape( region: HObject, feature: str, min: Union[int, float], max: Union[int, float] ) -> HObject
Herror fill_up_shape( const Hobject Region, Hobject* RegionFillUp, const char* Feature, double Min, double Max )
Herror T_fill_up_shape( const Hobject Region, Hobject* RegionFillUp, const Htuple Feature, const Htuple Min, const Htuple Max )
HRegion HRegion::FillUpShape( const HString& Feature, const HTuple& Min, const HTuple& Max ) const
HRegion HRegion::FillUpShape( const HString& Feature, double Min, double Max ) const
HRegion HRegion::FillUpShape( const char* Feature, double Min, double Max ) const
HRegion HRegion::FillUpShape( const wchar_t* Feature, double Min, double Max ) const (Windows only)
HRegion HRegion.FillUpShape( string feature, HTuple min, HTuple max )
HRegion HRegion.FillUpShape( string feature, double min, double max )
説明
fill_up_shapeFillUpShape は、入力領域 Regionregionregion 内の与えられた
形状特徴をもつホール(穴)を埋めます。パラメーター
Featurefeaturefeature は使用する形状特徴を決定します。Minminmin およ
び Maxmaxmax は、埋める対象のホールに対する形状特徴の範囲を決定
します。
実行情報
実行情報
パラメーター
Regionregionregion (input_object) region(-array) → objectHObjectHRegionHObjectHobject
入力領域
RegionFillUpregionFillUpregion_fill_up (output_object) region(-array) → objectHObjectHRegionHObjectHobject *
穴埋め処理後の出力領域
Featurefeaturefeature (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
使用される形状特徴
初期値: 'area'"area"
値のリスト: 'anisometry', 'area', 'compactness', 'convexity', 'inner_circle', 'outer_circle', 'phi', 'ra', 'rb'"anisometry", "area", "compactness", "convexity", "inner_circle", "outer_circle", "phi", "ra", "rb"
Minminmin (input_control) number → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)Union[int, float]Htuple (double / Hlong)
特徴に対する最小値
初期値: 1.01.0
推奨値: 0.0, 1.0, 10.0, 50.0, 100.0, 500.0, 1000.0, 10000.00.0, 1.0, 10.0, 50.0, 100.0, 500.0, 1000.0, 10000.0
値域: 0.0 ≤ Min
Maxmaxmax (input_control) number → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)Union[int, float]Htuple (double / Hlong)
特徴に対する最大値
初期値: 100.0100.0
推奨値: 10.0, 50.0, 100.0, 500.0, 1000.0, 10000.0, 100000.010.0, 50.0, 100.0, 500.0, 1000.0, 10000.0, 100000.0
値域: 0.0 ≤ Max
例
(C)
read_image(&Image,"monkey")\;
threshold(Image,&Seg,120.0,255.0)\;
fill_up_shape(Seg,&Filled,"area",0.0,200.0)\;
結果
fill_up_shapeFillUpShape は、すべてのパラメーターが正しい場合に 2 (H_MSG_TRUE)
を返します。空入力(領域が存在しない)の場合は、
set_system('no_object_result',<Result>) から設定することが
できます。また、空の入力領域である場合は、
set_system('empty_region_result',<Result>) から設定するこ
とができます。
必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
thresholdThreshold, connectionConnection, regiongrowingRegiongrowing, pouringPouring
後処理の候補
select_shapeSelectShape, disp_regionDispRegion
他の選択候補
fill_upFillUp
関連項目
select_shapeSelectShape, connectionConnection, area_centerAreaCenter
モジュール
Foundation