Runs a generic 2D box filter over the input image. More...
Functions | |
| VPIStatus | vpiSubmitBoxFilter (VPIStream stream, uint64_t backend, VPIImage input, VPIImage output, int32_t kernelWidth, int32_t kernelHeight, VPIBorderExtension border) |
| Runs a 2D box filter over an image. More... | |
Runs a generic 2D box filter over the input image.
Refer to Box Filter for more details and usage examples.
| VPIStatus vpiSubmitBoxFilter | ( | VPIStream | stream, |
| uint64_t | backend, | ||
| VPIImage | input, | ||
| VPIImage | output, | ||
| int32_t | kernelWidth, | ||
| int32_t | kernelHeight, | ||
| VPIBorderExtension | border | ||
| ) |
#include <vpi/algo/BoxFilter.h>
Runs a 2D box filter over an image.
| [in] | stream | A stream handle where the operation will be queued into.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [in] | backend | Backend that will execute the algorithm.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [in] | input | Input image to be filtered.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [out] | output | Output image where the result is written to.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [in] | kernelWidth,kernelHeight | Box kernel dimensions. Can be non-square.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [in] | border | How to handle pixels outside image boundaries.
|
| VPI_ERROR_INVALID_ARGUMENT | stream is NULL. |
| VPI_ERROR_INVALID_ARGUMENT | input or output are NULL. |
| VPI_ERROR_INVALID_ARGUMENT | kernelWidth or kernelHeight outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | input or output image dimensions ouside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | input and output image dimensions or format do not match. |
| VPI_ERROR_INVALID_ARGUMENT | border not supported. |
| VPI_ERROR_INVALID_ARGUMENT | backend is invalid or unknown. |
| VPI_ERROR_INVALID_IMAGE_FORMAT | input or output image format not supported. |
| VPI_ERROR_INVALID_OPERATION | Backend hardware is not available. |
| VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream, input or output. |
| VPI_ERROR_NOT_IMPLEMENTED | Box Filter algorithm is not supported by given backend. |
| VPI_SUCCESS | Operation executed successfully. |