<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage/MultidimensionalLookupTable/init(entryCountPerSourceChannel:destinationChannelCount:data:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO27MultidimensionalLookupTableV26entryCountPerSourceChannel011destinationjG04dataAESays5UInt8VG_SixtcAA0A6BufferRzs6UInt16V7ElementRtzlufc"
  },
  "title" : "init(entryCountPerSourceChannel:destinationChannelCount:data:)"
}
-->

# init(entryCountPerSourceChannel:destinationChannelCount:data:)

Returns a new multidimensional lookup table.

```
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 [`destinationChannelCount`](/documentation/Accelerate/vImage/MultidimensionalLookupTable/destinationChannelCount) multiplied by [`destinationChannelCount`](/documentation/Accelerate/vImage/MultidimensionalLookupTable/destinationChannelCount).

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)