ClassesClasses | | Operators

simulate_defocussimulate_defocusSimulateDefocusSimulateDefocus (Operator)

Name

simulate_defocussimulate_defocusSimulateDefocusSimulateDefocus — Simulate an uniform out-of-focus blurring of an image.

Warning

simulate_defocussimulate_defocusSimulateDefocusSimulateDefocusSimulateDefocus is obsolete and is only provided for reasons of backward compatibility.

Signature

simulate_defocus(Image : DefocusedImage : Blurring : )

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

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

void SimulateDefocus(const HObject& Image, HObject* DefocusedImage, const HTuple& Blurring)

HImage HImage::SimulateDefocus(double Blurring) const

static void HOperatorSet.SimulateDefocus(HObject image, out HObject defocusedImage, HTuple blurring)

HImage HImage.SimulateDefocus(double blurring)

Description

simulate_defocussimulate_defocusSimulateDefocusSimulateDefocusSimulateDefocus simulates out-of-focus blurring of an image. All parts of the image are blurred uniformly. 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 null, the absolute value of BlurringBlurringBlurringBlurringblurring is used. Simulation of blurring is done by a convolution of the image with a blurring specific impulse response. The convolution is realized by multiplication in the Fourier domain.

Execution Information

Parameters

ImageImageImageImageimage (input_object)  (multichannel-)image(-array) objectHImageHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

Image to blur.

DefocusedImageDefocusedImageDefocusedImageDefocusedImagedefocusedImage (output_object)  image(-array) objectHImageHImageHobject * (real)

Blurred image.

BlurringBlurringBlurringBlurringblurring (input_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Degree of blurring.

Default value: 5.0

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

Result

simulate_defocussimulate_defocusSimulateDefocusSimulateDefocusSimulateDefocus returns 2 (H_MSG_TRUE) if all parameters are correct. If the input is empty simulate_defocussimulate_defocusSimulateDefocusSimulateDefocusSimulateDefocus returns with an error message.

Possible Predecessors

gen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocusGenPsfDefocus, simulate_motionsimulate_motionSimulateMotionSimulateMotionSimulateMotion, gen_psf_motiongen_psf_motionGenPsfMotionGenPsfMotionGenPsfMotion

Possible Successors

wiener_filterwiener_filterWienerFilterWienerFilterWienerFilter, wiener_filter_niwiener_filter_niWienerFilterNiWienerFilterNiWienerFilterNi

See also

gen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocusGenPsfDefocus, simulate_motionsimulate_motionSimulateMotionSimulateMotionSimulateMotion, gen_psf_motiongen_psf_motionGenPsfMotionGenPsfMotionGenPsfMotion

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


ClassesClasses | | Operators