Table of Contents

Method ToImage

Namespace
Bonsai.ML.Torch
Assembly
Bonsai.ML.Torch.dll

ToImage(Tensor, Device)

Converts a Torch tensor to an OpenCV image.

public static IplImage ToImage(torch.Tensor tensor, torch.Device device)

Parameters

tensor torch.Tensor
device torch.Device

Returns

IplImage