interface ConversionUtils {
    toDataURL(options?): string;
    toImageData(options?): ImageData;
}

Methods

  • creates a DataURL instance from tensor

    Parameters

    • Optional options: TensorToDataUrlOptions

      An optional object representing options for creating a DataURL instance from the tensor.

      The following default settings will be applied:

      • format: 'RGB'
      • tensorLayout: 'NCHW'

    Returns string

    a DataURL string representing the image converted from tensor data

  • creates an ImageData instance from tensor

    Parameters

    • Optional options: TensorToImageDataOptions

      An optional object representing options for creating an ImageData instance from the tensor.

      The following default settings will be applied:

      • format: 'RGB'
      • tensorLayout: 'NCHW'

    Returns ImageData

    an ImageData instance representing the image converted from tensor data

Generated using TypeDoc