Operates on an interleaved 32-bit source image, multiplying each pixel by the provided matrix to produce a one-channel 32-bit destination image.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A pointer to a vImage buffer structure that contains the source image.
A pointer to a vImage buffer data structure. You are responsible for filling out the
rowfields of this structure, and for allocating a data buffer of the appropriate size. On return, the data buffer pointed to by this structure contains the destination image data. When you no longer need the data buffer, you must deallocate the memory.
The 1D matrix by which to multiply each pixel.
A packed array of bias values, one for each source plane. vImage adds the appropriate bias value to each source value before matrix multiplication. If you don't want to apply a preprocessing bias value, pass
A value added to the sum at the end to provide both for rounding control and for allowing for a bias to be encoded into the image format.
This function is similar to
v but produces a single channel output. It’s intended to produce grayscale images from four channel content, but can be used for other purposes.
The calculation for each pixel is:
This function will work in place, provided that
src->data = dest->data and