HALCON Reference Manual 10.0.2
Table of Contents / Filters / Wiener Filter ClassesClassesClasses | | | Operators

gen_psf_defocusgen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocus (Operator)

Name

gen_psf_defocusgen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocus — Generate an impulse response of an uniform out-of-focus blurring.

Signature

gen_psf_defocus( : Psf : PSFwidth, PSFheight, Blurring : )

Herror gen_psf_defocus(Hobject* Psf, const Hlong PSFwidth, const Hlong PSFheight, double Blurring)

Herror T_gen_psf_defocus(Hobject* Psf, const Htuple PSFwidth, const Htuple PSFheight, const Htuple Blurring)

Herror gen_psf_defocus(Hobject* Psf, const HTuple& PSFwidth, const HTuple& PSFheight, const HTuple& Blurring)

HImage HImage::GenPsfDefocus(const HTuple& PSFwidth, const HTuple& PSFheight, const HTuple& Blurring)

void HOperatorSetX.GenPsfDefocus(
[out] IHUntypedObjectX*Psf, [in] VARIANT PSFwidth, [in] VARIANT PSFheight, [in] VARIANT Blurring)

void HImageX.GenPsfDefocus(
[in] Hlong PSFwidth, [in] Hlong PSFheight, [in] double Blurring)

static void HOperatorSet.GenPsfDefocus(out HObject psf, HTuple PSFwidth, HTuple PSFheight, HTuple blurring)

void HImage.GenPsfDefocus(int PSFwidth, int PSFheight, double blurring)

Description

gen_psf_defocusgen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocus generates an impulse response (spatial domain) of an uniform out-of-focus blurring and writes it into an image of HALCON image type 'real'. BlurringBlurringBlurringBlurringblurring specifies the extent of blurring by defining the “blur radius” (out-of-focus blurring maps each image pixel on a small circle with a radius of BlurringBlurringBlurringBlurringblurring - specified in “number of pixels”). If specified less than zero, the absolute value of BlurringBlurringBlurringBlurringblurring is used. The result image of gen_psf_defocusgen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocus encloses an spatial domain impulse response of the specified blurring. Its representation presumes the origin in the upper left corner. This results in the following disposition of an NxM sized image:

This representation conforms to that of the impulse response parameter of the HALCON-operator wiener_filterwiener_filterwiener_filterWienerFilterWienerFilter. So one can use gen_psf_defocusgen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocus to generate an impulse response for Wiener filtering.

Parallelization

Parameters

PsfPsfPsfPsfpsf (output_object)  image objectHImageHImageHImageXHobject * (real)

Impulse response of uniform out-of-focus blurring.

PSFwidthPSFwidthPSFwidthPSFwidthPSFwidth (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Width of result image.

Default value: 256

Suggested values: 128, 256, 512, 1024

Typical range of values: 1 ≤ PSFwidth PSFwidth PSFwidth PSFwidth PSFwidth

PSFheightPSFheightPSFheightPSFheightPSFheight (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Height of result image.

Default value: 256

Suggested values: 128, 256, 512, 1024

Typical range of values: 1 ≤ PSFheight PSFheight PSFheight PSFheight PSFheight

BlurringBlurringBlurringBlurringblurring (input_control)  real HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Degree of Blurring.

Default value: 5.0

Suggested values: 1.0, 5.0, 10.0, 15.0, 18.0

Result

gen_psf_defocusgen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocus returns 2 (H_MSG_TRUE) if all parameters are correct.

Possible Predecessors

simulate_motionsimulate_motionsimulate_motionSimulateMotionSimulateMotion, gen_psf_motiongen_psf_motiongen_psf_motionGenPsfMotionGenPsfMotion

Possible Successors

simulate_defocussimulate_defocussimulate_defocusSimulateDefocusSimulateDefocus, wiener_filterwiener_filterwiener_filterWienerFilterWienerFilter, wiener_filter_niwiener_filter_niwiener_filter_niWienerFilterNiWienerFilterNi

See also

simulate_defocussimulate_defocussimulate_defocusSimulateDefocusSimulateDefocus, gen_psf_motiongen_psf_motiongen_psf_motionGenPsfMotionGenPsfMotion, simulate_motionsimulate_motionsimulate_motionSimulateMotionSimulateMotion, wiener_filterwiener_filterwiener_filterWienerFilterWienerFilter, wiener_filter_niwiener_filter_niwiener_filter_niWienerFilterNiWienerFilterNi

References

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.

Module

Foundation


Table of Contents / Filters / Wiener Filter ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH