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... | |
Equalize image histogram for the input image.
VPIStatus vpiCreateEqualizeHist | ( | uint32_t | backend, |
VPIImageFormat | fmt, | ||
VPIPayload * | payload | ||
) |
#include <vpi/algo/EqualizeHist.h>
Creates payload for vpiSubmitEqualizeHist.
[in] | backend | VPI backend that will execute the algorithm. |
[in] | fmt | Format 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] | payload | Pointer to memory where the created payload handle will be written to. |
VPIStatus vpiSubmitEqualizeHist | ( | VPIStream | stream, |
uint32_t | backend, | ||
VPIPayload | payload, | ||
VPIImage | input, | ||
VPIImage | output | ||
) |
#include <vpi/algo/EqualizeHist.h>
Equalize the histogram of the image.
[in] | stream | The stream where the operation will be queued in. |
[in] | backend | VPI backend that will execute the algorithm. |
[in] | payload | payload created with vpiCreateEqualizeHist |
[in] | input | Input image. |
[out] | output | Where the resulting image will be written to. It must have been created with the same dimension of the input image. |