ColorArrayInitInfo

Initialization for an RGB or RGBA color array tensor.

Note here, since a color array tensor is a special-usage tensor, it is not the exact tensor as we have been using in mathematics and physics. Rather, the word tensor represents an opaque handle or an abstraction of data, that your application hands over to SecureMR service to process.

An RGB or RGBA color array is a single-dimension array of color elements, where each element has three or four components (or to say, values): R, G, B, and optional A. They must be of the same data type. Auto-boxing from Kotlin android.graphics.Color is also supported.

Parameters

type

Color type of the color values in the array.

size

Number of the elements.

Constructors

Link copied to clipboard
constructor(type: Tensor.ColorType, size: Int = 1)