---
title: "init(entryCountPerSourceChannel:destinationChannelCount:data:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/vimage/multidimensionallookuptable/init(entrycountpersourcechannel:destinationchannelcount:data:)"
---

# init(entryCountPerSourceChannel:destinationChannelCount:data:)

Returns a new multidimensional lookup table.

## Declaration

```swift
init<T>(entryCountPerSourceChannel: [UInt8], destinationChannelCount: Int, data: T) where T : AccelerateBuffer, T.Element == UInt16
```

## Parameters

- `entryCountPerSourceChannel`: An array that contains the number of table entries for each dimension of the lookup table.
- `destinationChannelCount`: The number of destination channels.
- `data`: The lookup table data. The lookup table must contain the product of the values in doc://com.apple.accelerate/documentation/Accelerate/vImage/MultidimensionalLookupTable/destinationChannelCount multiplied by doc://com.apple.accelerate/documentation/Accelerate/vImage/MultidimensionalLookupTable/destinationChannelCount.

## Discussion

Discussion Supply the values in data in the range 0 ... 65535, the function interprets the values as 0 ... 1 by dividing by 65535.
