Back to FabImage Deep Learning website

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

ConvertImageToTensor


Header: FILDL.h
Namespace: fil
Module: DeepLearning

Converts an image to a NHWC tensor, with N equal to 1.

Syntax

C++
C#
 
void fil::ConvertImageToTensor
(
	const fil::Image& inImage,
	fil::Tensor& outTensor
)

Parameters

Name Type Default Description
Input value inImage const Image& Input image
Output value outTensor Tensor&

Errors

List of possible exceptions:

Error type Description
DomainError Passed inImage is too large. Use smaller image.