convert(to:)
Converts the contents of the 32-bit-per-channel, 3-channel interleaved pixel buffer to 8-bit-per-channel format.
Declaration
func convert(to destination: vImage.PixelBuffer<vImage.Interleaved8x3>)Parameters
- destination:
The destination pixel buffer.
Discussion
This function converts the source values in the range [0.0, 1.0] to the destination range [0, 255]. The conversion clamps source values to the range [0.0, 1.0].