simulate_defocussimulate_defocusSimulateDefocusSimulateDefocussimulate_defocus (算子)

名称

simulate_defocussimulate_defocusSimulateDefocusSimulateDefocussimulate_defocus — 模拟图像的均匀离焦模糊。

签名

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)

def simulate_defocus(image: HObject, blurring: float) -> HObject

描述

simulate_defocussimulate_defocusSimulateDefocusSimulateDefocusSimulateDefocussimulate_defocus simulates out-of-focus blurring of an image. All parts of the image are blurred uniformly. BlurringBlurringBlurringBlurringblurringblurring 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 BlurringBlurringBlurringBlurringblurringblurring - specified in “number of pixels”). If specified less than null, the absolute value of BlurringBlurringBlurringBlurringblurringblurring 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.

执行信息

参数

ImageImageImageImageimageimage (输入对象)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

Image to blur.

DefocusedImageDefocusedImageDefocusedImageDefocusedImagedefocusedImagedefocused_image (输出对象)  image(-array) objectHImageHObjectHImageHobject * (real)

Blurred image.

BlurringBlurringBlurringBlurringblurringblurring (输入控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Degree of blurring.

默认值: 5.0

建议值: 1.0, 5.0, 10.0, 15.0, 18.0

结果

simulate_defocussimulate_defocusSimulateDefocusSimulateDefocusSimulateDefocussimulate_defocus 在所有参数正确时返回 2 ( H_MSG_TRUE )。 如果输入为空,simulate_defocussimulate_defocusSimulateDefocusSimulateDefocusSimulateDefocussimulate_defocus 返回一条错误消息。

可能的前趋

gen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocusGenPsfDefocusgen_psf_defocus, simulate_motionsimulate_motionSimulateMotionSimulateMotionSimulateMotionsimulate_motion, gen_psf_motiongen_psf_motionGenPsfMotionGenPsfMotionGenPsfMotiongen_psf_motion

可能的后继

wiener_filterwiener_filterWienerFilterWienerFilterWienerFilterwiener_filter, wiener_filter_niwiener_filter_niWienerFilterNiWienerFilterNiWienerFilterNiwiener_filter_ni

另见

gen_psf_defocusgen_psf_defocusGenPsfDefocusGenPsfDefocusGenPsfDefocusgen_psf_defocus, simulate_motionsimulate_motionSimulateMotionSimulateMotionSimulateMotionsimulate_motion, gen_psf_motiongen_psf_motionGenPsfMotionGenPsfMotionGenPsfMotiongen_psf_motion

参考文献

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.

模块

基础