NVIDIA NvNeural SDK  2021.2
GPU inference framework for NVIDIA Nsight Deep Learning Designer
nvneural::ImageDescriptor Struct Reference

Defines one image component to load into a tensor. More...

#include <CpuImage.h>

Public Member Functions

 ImageDescriptor (std::string filename_, std::size_t channels_)
 Constructs an ImageDescriptor with filename and channel count. More...
 

Public Attributes

std::size_t channels = DefaultChannels
 Number of channels to take from the image.
 
std::string filename
 Filename of an image.
 

Static Public Attributes

static const std::size_t DefaultChannels = 0
 Use the channel count from the image file.
 

Detailed Description

Defines one image component to load into a tensor.

Used by IFileImage interface functions.

Warning
This structure uses C++ standard library types that are not ABI-stable. Do not pass this structure across module boundaries.

Constructor & Destructor Documentation

◆ ImageDescriptor()

nvneural::ImageDescriptor::ImageDescriptor ( std::string  filename_,
std::size_t  channels_ 
)
inline

Constructs an ImageDescriptor with filename and channel count.

Parameters
filename_Filename to store
channels_Channel count to store

The documentation for this struct was generated from the following file: