Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the convolution to use a custom filter.
Syntax
HRESULT retVal = object.SetCustomFilter(pFilter, Size);
Parameters
pFilter [in]
Type: floatPointer to an array of custom filter values.
Size [in]
Type: SIZESize of the custom filter, in pixels.
Remarks
The height and width of the custom filter must be greater than or equal to 1. Most filters define a center pixel that is scanned over the input image to produce the output image. For even-sized dimensions, the center pixel for that dimension is the length divided by two. For example, a 5 x 4 custom filter has a center pixel at (2,2).