Jetson Inference
DNN Vision Library

Normalize the pixel intensities of an image between two ranges. More...

Functions

cudaError_t cudaNormalize (float *input, const float2 &input_range, float *output, const float2 &output_range, size_t width, size_t height)
 Normalize the pixel intensities of a floating-point grayscale image between two scales. More...
 
cudaError_t cudaNormalize (float3 *input, const float2 &input_range, float3 *output, const float2 &output_range, size_t width, size_t height)
 Normalize the pixel intensities of a float3 RGB/BGR image between two scales. More...
 
cudaError_t cudaNormalize (float4 *input, const float2 &input_range, float4 *output, const float2 &output_range, size_t width, size_t height)
 Normalize the pixel intensities of a float4 RGBA/BGRA image between two scales. More...
 
cudaError_t cudaNormalize (void *input, const float2 &input_range, void *output, const float2 &output_range, size_t width, size_t height, imageFormat format)
 Normalize the pixel intensities of an image between two scales. More...
 

Detailed Description

Normalize the pixel intensities of an image between two ranges.

Function Documentation

◆ cudaNormalize() [1/4]

cudaError_t cudaNormalize ( float *  input,
const float2 &  input_range,
float *  output,
const float2 &  output_range,
size_t  width,
size_t  height 
)

Normalize the pixel intensities of a floating-point grayscale image between two scales.

For example, convert an image with values between [0,1] to [0,255]

Parameters
input_rangethe range of pixel values of the input image (e.g. [0,1])
output_rangethe desired range of pixel values of the output image (e.g. [0,255])

◆ cudaNormalize() [2/4]

cudaError_t cudaNormalize ( float3 *  input,
const float2 &  input_range,
float3 *  output,
const float2 &  output_range,
size_t  width,
size_t  height 
)

Normalize the pixel intensities of a float3 RGB/BGR image between two scales.

For example, convert an image with values between [0,1] to [0,255]

Parameters
input_rangethe range of pixel values of the input image (e.g. [0,1])
output_rangethe desired range of pixel values of the output image (e.g. [0,255])

◆ cudaNormalize() [3/4]

cudaError_t cudaNormalize ( float4 *  input,
const float2 &  input_range,
float4 *  output,
const float2 &  output_range,
size_t  width,
size_t  height 
)

Normalize the pixel intensities of a float4 RGBA/BGRA image between two scales.

For example, convert an image with values between [0,1] to [0,255]

Parameters
input_rangethe range of pixel values of the input image (e.g. [0,1])
output_rangethe desired range of pixel values of the output image (e.g. [0,255])

◆ cudaNormalize() [4/4]

cudaError_t cudaNormalize ( void *  input,
const float2 &  input_range,
void *  output,
const float2 &  output_range,
size_t  width,
size_t  height,
imageFormat  format 
)

Normalize the pixel intensities of an image between two scales.

For example, convert an image with values between [0,1] to [0,255]

Parameters
input_rangethe range of pixel values of the input image (e.g. [0,1])
output_rangethe desired range of pixel values of the output image (e.g. [0,255])
formatthe image format - valid formats are gray32f, rgb32f/bgr32f, and rgba32f/bgra32f.