---
title: "convert(to:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vimage/pixelbuffer/convert(to:)-1zk6k"
---

# convert(to:)

Converts the contents of the unsigned 16-bit planar pixel buffer to floating-point 16-bit planar format.

## Declaration

```swift
func convert(to destination: vImage.PixelBuffer<vImage.Planar16F>)
```

## Parameters

- `destination`: The destination pixel buffer.

## Discussion

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

- [convert(to:)](accelerate/vimage/pixelbuffer/convert(to:)-ip9z.md)
- [convert(to:)](accelerate/vimage/pixelbuffer/convert(to:)-7dx2c.md)
- [convert(to:)](accelerate/vimage/pixelbuffer/convert(to:)-7tdb1.md)
- [convert(to:)](accelerate/vimage/pixelbuffer/convert(to:)-3lg9p.md)
- [convert(to:)](accelerate/vimage/pixelbuffer/convert(to:)-8u16v.md)
