Contents

convert(to:)

Converts the contents of the 8-bit-per-channel, 4-channel interleaved pixel buffer to unsigned 16-bit-per-channel format.

Declaration

func convert(to destination: vImage.PixelBuffer<vImage.Interleaved16Ux4>)

Parameters

  • destination:

    The destination pixel buffer.

Discussion

This function converts the source values in the range [0, 255] to the destination range [0, UInt16.max].

See Also

Conversion from 8-bit to 16-bit