shape_histo_pointShapeHistoPointShapeHistoPointshape_histo_pointT_shape_histo_point
説明
shape_histo_pointShapeHistoPointShapeHistoPointshape_histo_pointT_shape_histo_point — すべてのしきい値に沿って特徴量のヒストグラムを定義する。
書式
shape_histo_point( region Region, image Image, string Feature, point.y Row, point.x Column, out histogram AbsoluteHisto, out histogram RelativeHisto )void ShapeHistoPoint( const HObject& Region, const HObject& Image, const HTuple& Feature, const HTuple& Row, const HTuple& Column, HTuple* AbsoluteHisto, HTuple* RelativeHisto )static void HOperatorSet.ShapeHistoPoint( HObject region, HObject image, HTuple feature, HTuple row, HTuple column, out HTuple absoluteHisto, out HTuple relativeHisto )def shape_histo_point( region: HObject, image: HObject, feature: str, row: int, column: int ) -> Tuple[Sequence[Union[int, float]], Sequence[float]]
Herror T_shape_histo_point( const Hobject Region, const Hobject Image, const Htuple Feature, const Htuple Row, const Htuple Column, Htuple* AbsoluteHisto, Htuple* RelativeHisto )
HTuple HRegion::ShapeHistoPoint( const HImage& Image, const HString& Feature, Hlong Row, Hlong Column, HTuple* RelativeHisto ) const
HTuple HRegion::ShapeHistoPoint( const HImage& Image, const char* Feature, Hlong Row, Hlong Column, HTuple* RelativeHisto ) const
HTuple HRegion::ShapeHistoPoint( const HImage& Image, const wchar_t* Feature, Hlong Row, Hlong Column, HTuple* RelativeHisto ) const (Windows only)
HTuple HRegion.ShapeHistoPoint( HImage image, string feature, int row, int column, out HTuple relativeHisto )
説明
shape_histo_allShapeHistoAll と同様に、オペレーター
shape_histo_pointShapeHistoPoint は、Imageimageimage のグレイ値をもつ
Regionregionregion 内で、0から255 のしきい値演算を実行します。
shape_histo_allShapeHistoAll とは逆に、ピクセル (Rowrowrow,
Columncolumncolumn) を含んでいる分割された領域だけが考慮されます。ヒ
ストグラム内の要素 \(i\) は、しきい値 \(i\) (Featurefeaturefeature =
'holes'"holes") をもつ分割された領域のホールの数か領域 (
Featurefeaturefeature = 'convexity'"convexity", 'compactness'"compactness",
'anisometry'"anisometry") の特徴値に対応します。
注意
オペレータshape_histo_pointShapeHistoPointは与えられたRegionregionregionのみを考慮し、
入力画像Imageimageimageよりも前に設定されたドメインを無視することに注意してください。
実行情報
実行情報
パラメーター
Regionregionregion (input_object) region → objectHObjectHRegionHObjectHobject
特徴検査領域
Imageimageimage (input_object) singlechannelimage → object (byte)HObject (byte)HImage (byte)HObject (byte)Hobject (byte)
グレイ値画像
Featurefeaturefeature (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
検査する特徴
初期値: 'convexity'"convexity"
値のリスト: 'anisometry', 'compactness', 'convexity', 'holes'"anisometry", "compactness", "convexity", "holes"
Rowrowrow (input_control) point.y → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
領域が含まれるピクセルの行
初期値: 256256
推奨値: 10, 50, 100, 200, 300, 40010, 50, 100, 200, 300, 400
Columncolumncolumn (input_control) point.x → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
領域が含まれるピクセルの列
初期値: 256256
推奨値: 10, 50, 100, 200, 300, 40010, 50, 100, 200, 300, 400
AbsoluteHistoabsoluteHistoabsolute_histo (output_control) histogram-array → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)Sequence[Union[int, float]]Htuple (double / Hlong)
特徴の絶対分布
RelativeHistorelativeHistorelative_histo (output_control) histogram-array → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)
特徴の相対的分布
結果
定義されたグレイ値をもつ画像が入力されるならば、オペレーター
shape_histo_pointShapeHistoPoint は、値 2 (H_MSG_TRUE) を返します。入力が空の場合(
入力画像が得られない場合)の動作は、オペレーター
set_system(::'no_object_result',<Result>:) によって設定さ
れます。領域が空の場合の動作は、オペレーター
set_system(::'empty_region_result',<Result>:) によって設定
されます。
必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
get_mbuttonGetMbutton, area_centerAreaCenter
後処理の候補
histo_to_threshHistoToThresh, thresholdThreshold, gen_region_histoGenRegionHisto
他の選択候補
shape_histo_allShapeHistoAll
関連項目
connectionConnection, connect_and_holesConnectAndHoles, convexityConvexity, compactnessCompactness
モジュール
Foundation