Table of Contents

Method ToMat

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

ToMat(Tensor, Device)

Converts a Torch tensor to an OpenCV mat.

public static Mat ToMat(torch.Tensor tensor, torch.Device device)

Parameters

tensor torch.Tensor
device torch.Device

Returns

Mat