Skip to content

simulate_defocusSimulateDefocusSimulateDefocussimulate_defocussimulate_defocus🔗

説明🔗

simulate_defocusSimulateDefocusSimulateDefocussimulate_defocussimulate_defocus — 画像の均一な焦点ぼけをシミュレーションする。

書式🔗

simulate_defocus( image Image, out image DefocusedImage, real Blurring )void SimulateDefocus( const HObject& Image, HObject* DefocusedImage, const HTuple& Blurring )static void HOperatorSet.SimulateDefocus( HObject image, out HObject defocusedImage, HTuple blurring )def simulate_defocus( image: HObject, blurring: float ) -> HObject

Herror simulate_defocus( const Hobject Image, Hobject* DefocusedImage, double Blurring )

Herror T_simulate_defocus( const Hobject Image, Hobject* DefocusedImage, const Htuple Blurring )

HImage HImage::SimulateDefocus( double Blurring ) const

HImage HImage.SimulateDefocus( double blurring )

説明🔗

simulate_defocusSimulateDefocus は、画像の均一な焦点ぼけをシミュレーショ ンします。 焦点が合っていない場合、画像の全体が一様にぼやけます。Blurringblurringblurring は、 “ぼけ半径”(画像上の各ピクセルは半径 Blurringblurringblurring の円上に に写像されます。半径はピクセル数で指定します)を定義することによってぼけの程度を指 定します。0未満に指定した場合、Blurringblurringblurring の絶対値が使 用されます。ぼけのシミュレーションは、ぼけを表すインパルス応答と 画像の畳み込みによって行われます。 その畳み込みは、フーリエ領域における乗算によって実現されます。

実行情報🔗

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

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

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

  • チャンネルレベルで自動的に並列演算処理を実施

パラメーター🔗

Imageimageimage (input_object) (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)Hobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

ぼけを与える対象画像

DefocusedImagedefocusedImagedefocused_image (output_object) image(-array) → object (real)HObject (real)HImage (real)HObject (real)Hobject * (real)

ぼやけた画像

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

ぼけの程度

初期値: 5.05.0
推奨値: 1.0, 5.0, 10.0, 15.0, 18.01.0, 5.0, 10.0, 15.0, 18.0

結果🔗

simulate_defocusSimulateDefocus は、すべてのパラメーターが正しい場合に 2 (H_MSG_TRUE) を返します。入力が空ならば、simulate_defocusSimulateDefocus はエラー メッセージを返します。

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

組み合わせ

前処理の候補

gen_psf_defocusGenPsfDefocus, simulate_motionSimulateMotion, gen_psf_motionGenPsfMotion

後処理の候補

wiener_filterWienerFilter, wiener_filter_niWienerFilterNi

関連項目

gen_psf_defocusGenPsfDefocus, simulate_motionSimulateMotion, gen_psf_motionGenPsfMotion

参考文献🔗

Reginald L. Lagendijk, Jan Biemond: Iterative Identification and Restoration of Images, Kluwer Academic Publishers Boston/Dordrecht/London, 1991

M. Lückenhaus:“Grundlagen des Wiener-Filters und seine Anwendung in der Bildanalyse”; Diplomarbeit; Technische Universität München, Institut für Informatik; Lehrstuhl Prof. Radig; 1995.

モジュール🔗

Foundation