Method ToMat
ToMat(Tensor, Device)
Converts a Torch tensor to an OpenCV mat.
public static Mat ToMat(torch.Tensor tensor, torch.Device device)
Parameters
tensor
torch.Tensordevice
torch.Device
Returns
- Mat
Converts a Torch tensor to an OpenCV mat.
public static Mat ToMat(torch.Tensor tensor, torch.Device device)
tensor
torch.Tensordevice
torch.Device