USERFLT

Summary

Filters the image based on a user-defined filter / mask.

Syntax

typedef struct _USERFLT 
{ 
   L_UINT uStructSize; 
   L_UINT ufltWidth; /* number of columns in the user-defined array*/ 
   L_UINT ufltHeight; /* number of rows in the user-defined array */ 
   POINT ufltCenter; /* user-defined array reference point*/ 
   L_UINT ufltDivisor; /* Divide the result by this value*/ 
   L_INT nfltOffset; /* offset the result by this value */ 
   L_UINT ufltFlag; /* Flags */ 
   L_INT ufltMatrix[1]; /* array of (ufltWidth * ufltHeight) integers */ 
} USERFLT, * pUSERFLT; 

Members

uStructSize

Must contain the size of USERFLT structure. Should be set to sizeof(USERFLT).

ufltWidth

Number of columns in the user-defined array (mask).

ufltHeight

Number of rows in the user-defined array (mask).

ufltCenter

Any two-dimensional position of the array (ufltMatrix), to be used as the matrix (mask)center.

ufltDivisor

Value used to divide the final result of the output. This must be a non-zero value. If you want to use floating point values for the matrix elements and the divisor, multiply the matrix elements and the divisor with the same value (for example, 10, 100, 1000).

nfltOffset

Value used to offset the final result of the output.

ufltFlag

The type of operation. These flags cannot be or-ed together.

Value Meaning
UD_SUM [0x0000] Perform sum operation.
UD_MAX [0x0001] Perform maximum operation.
UD_MIN [0x0002] Perform minimum operation.

ufltMatrix

Array of (ufltWidth * ufltHeight) integers containing the user-defined matrix (mask). The elements are stored in row order (first row, second row, etc).

Usage

Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.