Back to Jetson Inference

Jetson Inference: Normalization

docs/html/group__normalization.html

latest4.7 KB
Original Source

| | Jetson Inference

DNN Vision Library |

Functions

Normalization Utilities Library (jetson-utils) » CUDA

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_range | the range of pixel values of the input image (e.g. [0,1]) | | output_range | the 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_range | the range of pixel values of the input image (e.g. [0,1]) | | output_range | the 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_range | the range of pixel values of the input image (e.g. [0,1]) | | output_range | the 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_range | the range of pixel values of the input image (e.g. [0,1]) | | output_range | the desired range of pixel values of the output image (e.g. [0,255]) | | format | the image format - valid formats are gray32f, rgb32f/bgr32f, and rgba32f/bgra32f. |

  • Generated on Tue Mar 28 2023 14:27:58 for Jetson Inference by 1.8.17