Runs a generic 2D bilateral filter over the input image. More...
Functions | |
| VPIStatus | vpiSubmitBilateralFilter (VPIStream stream, uint64_t backend, VPIImage input, VPIImage output, int32_t kernelSize, float sigmaRange, float sigmaSpace, VPIBorderExtension border) |
| Runs a 2D bilateral filter over an image. More... | |
Runs a generic 2D bilateral filter over the input image.
Refer to Bilateral Filter for more details and usage examples.
| VPIStatus vpiSubmitBilateralFilter | ( | VPIStream | stream, |
| uint64_t | backend, | ||
| VPIImage | input, | ||
| VPIImage | output, | ||
| int32_t | kernelSize, | ||
| float | sigmaRange, | ||
| float | sigmaSpace, | ||
| VPIBorderExtension | border | ||
| ) |
#include <vpi/algo/BilateralFilter.h>
Runs a 2D bilateral 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 will be written to.
|
| [in] | kernelSize | Kernel support dimensions, in pixels.
|
| [in] | sigmaRange | Standard deviation in color space.
|
| [in] | sigmaSpace | Standard deviation in the coordinate space.
|
| [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 | input and output image dimensions or formats don't match. |
| VPI_ERROR_INVALID_ARGUMENT | input or output image dimensions outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | kernelSize outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | sigmaRange or sigmaSpace outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | backend is invalid or unknown. |
| VPI_ERROR_INVALID_ARGUMENT | border not supported. |
| VPI_ERROR_INVALID_IMAGE_FORMAT | input or output format is not supported. |
| VPI_ERROR_NOT_IMPLEMENTED | Bilateral Filter algorithm is not supported by given backend. |
| VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream, input or output. |
| VPI_SUCCESS | Operation executed successfully. |