Contents

init(CGImage:pixelsWide:pixelsHigh:pixelFormatType:options:)

Creates a feature value that contains an image defined by a core graphics image and its size and pixel format.

Declaration

convenience init(CGImage cgImage: CGImage, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeatureValue.ImageOption : Any]? = nil) throws

Parameters

See Also

Creating image feature values