vImageCVImageFormat_CopyChannelDescription(_:_:_:)
Copies the channel description for a particular channel type to an image format.
Declaration
func vImageCVImageFormat_CopyChannelDescription(_ format: vImageCVImageFormat, _ desc: UnsafePointer<vImageChannelDescription>, _ type: vImageBufferTypeCode) -> vImage_ErrorParameters
- format:
The Vimagecvimageformat to copy the channel description into.
- desc:
A pointer to a new Vimagechanneldescription to use for the channel type.
- type:
The type of the channel that you want to set information about, for example, Kvimagebuffertypecode_luminance.
Return Value
kvImageNoError; otherwise, one of the error codes in Data Types and Constants.