Interface TensorToImageDataOptions

Describes Tensor configuration to an image data.

Hierarchy

  • TensorToImageDataOptions

Properties

format?: ImageFormat

Describes Tensor channels order.

height?: number

Describes Tensor Height - can be accessed via tensor dimensions as well

norm?: {
    bias?: number;
    mean?: number;
}

Describes normalization parameters to ImageData conversion from tensor - default values - Bias: 0, Mean: 255

Type declaration

  • Optional bias?: number
  • Optional mean?: number
tensorLayout?: "NHWC" | "NCHW"

Tensor channel layout - default is 'NHWC'

width?: number

Describes Tensor Width - can be accessed via tensor dimensions as well

Generated using TypeDoc