Creates a new grayscale image by applying the specified filter kernel on the input image.
The grayscale values in the output image are scaled to avoid cropping, i.e. so that
no output value is smaller than zero or greather than 255.
A grayscale image filtered by the specified filter kernel.
| Exception | Condition |
|---|---|
| ArgumentNullException | If input is null. |
| ArgumentException | If the input image is not
a grayscale image and cannot
be converted to Format24bppRgb pixel format (i.e. if
it is no color image in a 32 bit format). |
| ArgumentException | If filterKernel is not
a 3x3 or 5x5 filter kernel. |
