Instance Property

bias

The value added to a convolved pixel before it is converted back to its intended storage format.

Declaration

@property(readwrite, nonatomic) float bias;

Discussion

This value can be used to convert negative values into a representable range for an unsigned pixel format. For example, many edge detection filters produce results in the range [-k,k]. By scaling the filter weights by 0.5/k and adding 0.5, the results will be in the range [0,1] suitable for use with unsigned normalized formats.

This value can be used in combination with renormalization of the filter weights to do video ranging as part of the convolution effect. It can also just be used to increase the brightness of the image.

The default value is 0.0f.

See Also

Properties

kernelHeight

The height of the filter window. Must be an odd number.

kernelWidth

The width of the filter window. Must be an odd number.