VPI - Vision Programming Interface

1.2 Release

Equalize Image histogram

Equalize image histogram for the input image. More...

Functions

VPIStatus vpiCreateEqualizeHist (uint32_t backend, VPIImageFormat fmt, VPIPayload *payload)
 Creates payload for vpiSubmitEqualizeHist. More...
 
VPIStatus vpiSubmitEqualizeHist (VPIStream stream, uint32_t backend, VPIPayload payload, VPIImage input, VPIImage output)
 Equalize the histogram of the image. More...
 

Detailed Description

Equalize image histogram for the input image.

Function Documentation

◆ vpiCreateEqualizeHist()

VPIStatus vpiCreateEqualizeHist ( uint32_t  backend,
VPIImageFormat  fmt,
VPIPayload payload 
)

#include <vpi/algo/EqualizeHist.h>

Creates payload for vpiSubmitEqualizeHist.

Parameters
[in]backendVPI backend that will execute the algorithm.
[in]fmtFormat of input image. Supported formats are: VPI_IMAGE_FORMAT_U8, VPI_IMAGE_FORMAT_U16, VPI_IMAGE_FORMAT_NV12 and VPI_IMAGE_FORMAT_NV12_ER. For VPI_IMAGE_FORMAT_NV12 and VPI_IMAGE_FORMAT_NV12_ER, only the Y channel will be equalized.
[out]payloadPointer to memory where the created payload handle will be written to.
Returns
an error code on failure else VPI_SUCCESS.

◆ vpiSubmitEqualizeHist()

VPIStatus vpiSubmitEqualizeHist ( VPIStream  stream,
uint32_t  backend,
VPIPayload  payload,
VPIImage  input,
VPIImage  output 
)

#include <vpi/algo/EqualizeHist.h>

Equalize the histogram of the image.

Parameters
[in]streamThe stream where the operation will be queued in.
[in]backendVPI backend that will execute the algorithm.
[in]payloadpayload created with vpiCreateEqualizeHist
[in]inputInput image.
[out]outputWhere the resulting image will be written to. It must have been created with the same dimension of the input image.
Returns
an error code on failure else VPI_SUCCESS.