DVPP Operator APIs
For details about the header and library files on which DVPP operator APIs depend, see Table 1.
API |
Function Usage |
|---|---|
Initializes the DVPP. Call this API before calling operator function APIs. No error is reported when this API is called repeatedly. It is recommended that this API be used together with the acldvppFinalize API to initialize and deinitialize the DVPP. |
|
Deinitializes the DVPP. This API is called after the operator function APIs are called and before the process exits. No error is reported when this API is called repeatedly. It is recommended that the acldvppInit API be used together with this API to initialize and deinitialize the DVPP. |
|
Normalizes images by subtracting the mean value and then dividing the result by the standard deviation. The mean value and standard deviation are specified by users. |
|
Decodes .jpg, .jpeg, .JPG, or .JPEG images into single-channel (GRAY) or three-channel (RGB) images. |
|
Resizes images. Bilinear, nearest neighbour, and bicubic interpolation algorithms are supported. |
|
Normalizes images by subtracting the mean value and then dividing the result by the standard deviation, where the mean value is fixed at 0 and the standard deviation is fixed at 255. Therefore, this operator is used only to normalize UINT8 images with range [0, 255] to FLOAT images with range [0.0, 1.0]. |
|
Adjusts the image brightness. |
|
Adjusts the image saturation. |
|
Adjusts the image hue. |
|
Adjusts the image contrast. |
|
Flips an image horizontally. |
|
Flips an image vertically. |
|
Performs Gaussian blur on images. |
|
Performs affine transformation on images. |
|
Performs transmission transformation on images. |
|
Crops and resizes images. |
|
Pads images. |
|
Rotates an image counterclockwise. |
|
Converts an RGB image into a grayscale image. |
|
Crops an image. |
|
Reverses the image color. |
|
Generates images by reducing the number of bits in each color channel. |
|
Generates RGB/grayscale images by inverting all pixel values within the threshold. |
|
Performs histogram equalization on the input image. |
|
Adjusts the sharpness of the input image. |
|
Remaps the pixels of each channel to maximize the contrast. The darkest pixel in the image is mapped to black, and the brightest pixel is mapped to white. In addition, you can adjust the cutoff and ignore parameters to control the contrast. |
|
Erases pixels in a specified range in the input image by using a specified value. |
|
Changes the color space of an image. |
|
Encodes a single-channel (GRAY) or three-channel (RGB) image into a JPEG image. |
|
Converts the shape of the input image from <H, W, C> to <C, H, W>. |
|
Converts the shape of the input image from <C, H, W> to <H, W, C>. |