30 #if NV_TENSORRT_MAJOR >= 5 31 #define HAS_SUPERRES_NET 55 bool UpscaleRGBA(
float* input, uint32_t inputWidth, uint32_t inputHeight,
56 float* output, uint32_t outputWidth, uint32_t outputHeight,
57 float maxPixelValue=255.0f );
62 bool UpscaleRGBA(
float* input,
float* output,
float maxPixelValue=255.0f );
uint32_t GetInputHeight() const
Retrieve the height of the input image, in pixels.
Definition: superResNet.h:72
#define DIMS_W(x)
Definition: tensorNet.h:52
uint32_t GetInputWidth() const
Retrieve the width of the input image, in pixels.
Definition: superResNet.h:67
uint32_t GetOutputHeight() const
Retrieve the height of the output image, in pixels.
Definition: superResNet.h:82
std::vector< outputLayer > mOutputs
Definition: tensorNet.h:551
static superResNet * Create()
Load super resolution network.
uint32_t mHeight
Definition: tensorNet.h:528
bool UpscaleRGBA(float *input, uint32_t inputWidth, uint32_t inputHeight, float *output, uint32_t outputWidth, uint32_t outputHeight, float maxPixelValue=255.0f)
Upscale a 4-channel RGBA image.
uint32_t GetOutputWidth() const
Retrieve the width of the output image, in pixels.
Definition: superResNet.h:77
uint32_t mWidth
Definition: tensorNet.h:527
Super Resolution Network.
Definition: superResNet.h:39
Abstract class for loading a tensor network with TensorRT.
Definition: tensorNet.h:188
uint32_t GetScaleFactor() const
Retrieve the scale factor between the input and output.
Definition: superResNet.h:87
#define DIMS_H(x)
Definition: tensorNet.h:51