Back to FabImage Deep Learning website

You are here: Start » Computer Vision » Deep Learning » ConvertTensorToImage

ConvertTensorToImage


Header: FILDL.h
Namespace: fil
Module: DeepLearning

Converts a NHWC tensor to an image. Only data for N equal to 0 is converted.

Syntax

C++
C#
 
void fil::ConvertTensorToImage
(
	const fil::Tensor& inTensor,
	fil::Image& outImage
)

Parameters

Name Type Default Description
Input value inTensor const Tensor&
Output value outImage Image& Output image

Errors

List of possible exceptions:

Error type Description
DomainError inTensor must be 4-dimensional.
DomainError inTensor must have NHWC ordering.