• Parameters

    • imgTensor: Tensor
    • Optional canvas: HTMLCanvasElement

    Returns Promise<HTMLCanvasElement>