L_BitmapAdaptiveWienerFilter

#include "Ltimgcor.h"

L_LTIMGCOR_API L_INT L_BitmapAdaptiveWienerFilter(pBitmap, nWindowSize, dNoiseVariance, uFlags)

pBITMAPHANDLE pBitmap; pointer to a bitmap handle
L_INT nWindowSize; the size of the filter
L_DOUBLE dNoiseVariance; variance of the noise
L_UINT uFlags; flags

Applies the Adaptive Wiener filter to the image.

Parameter Description
pBitmap Pointer to the bitmap handle referencing the bitmap to which the Adaptive Wiener filter will be applied.
nWindowSize The size of the filter, in pixels. This describes the number of pixels on each side of the pixel of interest. Should be greater than 1.
dNoiseVariance Variance of the noise.
uFlags Reserved for future use.

Returns

SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Use the L_BitmapAdaptiveWienerFilter to remove noise from images. Use the L_BitmapWienerFilter to de-blur an image.

L_BitmapAdaptiveWienerFilter only supports 8 bits.

This function does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this function.

Required DLLs and Libraries

LTIMGCOR
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64, Linux.

Help Version 20.0.2018.2.25
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help