L_CreatePreDefinedFilter (original) (raw)
Summary
Generates a point spread function to be used with L_BitmapWienerFilter.
Syntax
#include "Ltimgcor.h"
L_LTIMGCOR_API L_INT L_CreatePreDefinedFilter(pPSF, dFirstParameter, dSecondParameter, uFlags)
Parameters
pPOINTSPREADFUNCTION * pPSF
pointer to a POINTSPREADFUNCTION structure.
L_DOUBLE dFirstParameter
The first parameter of the filter. The meaning of this parameter is based on the value of uFlags
.
L_DOUBLE dSecondParameter
The second parameter of the filter. The meaning of this parameter is based on the value of uFlags
.
L_UINT uFlags
A flag that indicates which type of filter to create. Possible values are:
Value | Meaning |
---|---|
CREATE_GAUSSIAN_FILTER | [0x00000001] Create a Gaussian filter. |
CREATE_MOTION_FILTER | [0x00000002] Create a Motion filter. |
Returns
Value | Meaning |
---|---|
SUCCESS | |
< 1 | An error occurred. Refer to Return Codes. |
Comments
If the value of uFlags
is:
- CREATE_GAUSSIAN_FILTER, then the first and second parameters are the size and sigma of the filter.
- CREATE_MOTION_FILTER, then the first and second parameters are the length and angle of the filter.
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.
See Also
Functions
Topics
Example
For an example, refer to L_BitmapWienerFilter.
LEADTOOLS Raster Imaging C API Help