Function

vImageMultiDimensionalInterpolatedLookupTable_Planar16Q12(_:_:_:_:_:_:)

Uses a multidimensional lookup table to transform an image in Planar16Q12 format.

Declaration

func vImageMultiDimensionalInterpolatedLookupTable_Planar16Q12(_ srcs: UnsafePointer<vImage_Buffer>, _ dests: UnsafePointer<vImage_Buffer>, _ tempBuffer: UnsafeMutableRawPointer!, _ table: vImage_MultidimensionalTable, _ method: vImage_InterpolationMethod, _ flags: vImage_Flags) -> vImage_Error

Parameters

srcs

An array of vImage buffers that reference the source image planes. The number of such buffers is given by the numSrcChannels parameter passed to vImageMultidimensionalTable_Create(_:_:_:_:_:_:_:).

dests

An array of vImage buffers that reference the source image planes. The number of such buffers is given by the numSrcChannels parameter passed to vImageMultidimensionalTable_Create(_:_:_:_:_:_:_:).

tempBuffer

An optional pointer to a region of memory that vImage can use as a scratch space for storing temporary data.

table

A valid table created by vImageMultidimensionalTable_Create(_:_:_:_:_:_:_:).

method

The interpolation method, either kvImageFullInterpolation or kvImageHalfInterpolation.

flags

The options to use when performing the transformation. This function supports the following flags:

kvImageNoFlags

Default operation.

kvImageDoNotTile

Turns off internal multithreading.

kvImageGetTempBufferSize

Returns the size of the temp buffer. Use this flag to calculate the minimum size of tempBuffer.

Return Value

kvImageNoError; otherwise, one of the error codes described in Data Types and Constants.

Discussion

This function uses the input color channel values (treated as an N-dimensional coordinate) to index an N-dimensional lookup table to find a new color value, possibly in a new color space. The number of color channels in the destination image doesn’t need to match the number of color channels in the source image.

See Also

Transforming with a Multidimensional Lookup Table

typealias vImage_MultidimensionalTable

A structure representing a multidimensional table for use with vImage's multidimensional interpolated lookup functions.

struct vImageMDTableUsageHint

Constants that indicate how a multidimensional table will be used.

struct vImage_InterpolationMethod

Constants that represent different interpolation methods.