Skip to content

info_smoothInfoSmoothInfoSmoothinfo_smoothT_info_smooth🔗

説明🔗

info_smoothInfoSmoothInfoSmoothinfo_smoothT_info_smooth — 平滑化フィルター(smooth_imageSmoothImage)に関する情報を取得する。

書式🔗

info_smooth( string Filter, real Alpha, out integer Size, out integer Coeffs )void InfoSmooth( const HTuple& Filter, const HTuple& Alpha, HTuple* Size, HTuple* Coeffs )static void HOperatorSet.InfoSmooth( HTuple filter, HTuple alpha, out HTuple size, out HTuple coeffs )def info_smooth( filter: str, alpha: float ) -> Tuple[int, Sequence[int]]

Herror T_info_smooth( const Htuple Filter, const Htuple Alpha, Htuple* Size, Htuple* Coeffs )

static Hlong HMisc::InfoSmooth( const HString& Filter, double Alpha, HTuple* Coeffs )

static Hlong HMisc::InfoSmooth( const char* Filter, double Alpha, HTuple* Coeffs )

static Hlong HMisc::InfoSmooth( const wchar_t* Filter, double Alpha, HTuple* Coeffs ) (Windows only)

static int HMisc.InfoSmooth( string filter, double alpha, out HTuple coeffs )

説明🔗

オペレーター info_smoothInfoSmooth は、ルーチン smooth_imageSmoothImage 内で使用されるスムージングフィルターの幅の推 定値を返します。 この目的のために、フィルター係数が最大係数 (その原点で) の 5 パー セント未満になるまで、Filterfilterfilter の連続インパルス応答が走査さ れます。Alphaalphaalpha はフィルターパラメーターです( smooth_imageSmoothImage を参照)。 現在、以下に示す 4 つのフィルターがサポートされています。(パラメー ター Filterfilterfilter): ‘deriche1’, ‘deriche2’, ‘shen’ and ‘gauss’. ガウスフィルターは、通常、フィルターマスクとともに実装されます。一 方、他の 3 つは再帰的フィルターです。ガウスフィルターの場合、(1 次元インパルス応答 \(f(n)\) with \(n \ge 0\) に関する)フィルター係数は、フィルターサイズが加えられて Coeffscoeffscoeffs 内に格納されます。

スムージングフィルターのコンセプトに関しては、 Filters / Smoothingを ご参照ください。

注意🔗

入力画像としてドメインを絞り込んだ画像を用いた場合、期待しない結果と なる場合があります。章Filters を確認ください。

実行情報🔗

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

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

  • 並列演算処理には未対応

パラメーター🔗

Filterfilterfilter (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

フィルター名

初期値: 'deriche2'"deriche2"
値のリスト: 'deriche1', 'deriche2', 'gauss', 'shen'"deriche1", "deriche2", "gauss", "shen"

Alphaalphaalpha (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

フィルターパラメーター: 低い値がより強いスムージング 効果をもちます。(‘gauss’の場合は逆)

初期値: 0.50.5
推奨値: 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 4.0, 5.0, 7.0, 10.00.5, 1.0, 1.5, 2.0, 2.5, 3.0, 4.0, 5.0, 7.0, 10.0
最小増分: 0.01
推奨増分: 0.1
制限: Alpha > 0.0

Sizesizesize (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

フィルターの幅は、近似的に size × size ピクセルです。

Coeffscoeffscoeffs (output_control) integer-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

ガウスフィルターの場合:1 次元インパルス 応答の“正”の係数

例🔗

(HDevelop)


info_smooth('deriche2',0.5,Size,Coeffs)
smooth_image(Input,Smooth,'deriche2',7)
(C)
info_smooth('deriche2',0.5,Size,Coeffs)\;
smooth_image(Input,&Smooth,'deriche2',7)\;

結果🔗

パラメーター値が正しい場合、オペレーター info_smoothInfoSmooth は値 2 (H_MSG_TRUE) を返します。それ以外の場合には例外が発生します。

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

組み合わせ

前処理の候補

read_imageReadImage

後処理の候補

smooth_imageSmoothImage

関連項目

smooth_imageSmoothImage

モジュール🔗

Foundation