Contents

convert(to:)

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

Declaration

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

Parameters

  • destination:

    The destination pixel buffer.

Discussion

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

See Also

Conversion between 16-bit formats