SetCustomFilter method

Sets the convolution to use a custom filter.

Syntax


HRESULT retVal = object.SetCustomFilter(pFilter, Size);

Parameters

pFilter [in]

Type: float

Pointer to an array of custom filter values.

Size [in]

Type: SIZE

Size 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).

 

 

Show: