Runs a generic 2D Gaussian filter over the input image. More...
Functions | |
| VPIStatus | vpiSubmitGaussianFilter (VPIStream stream, uint64_t backend, VPIImage input, VPIImage output, int32_t kernelSizeX, int32_t kernelSizeY, float sigmaX, float sigmaY, VPIBorderExtension border) |
| Runs a 2D Gaussian filter over an image. More... | |
Runs a generic 2D Gaussian filter over the input image.
Refer to Gaussian Filter for more details and usage examples.
| VPIStatus vpiSubmitGaussianFilter | ( | VPIStream | stream, |
| uint64_t | backend, | ||
| VPIImage | input, | ||
| VPIImage | output, | ||
| int32_t | kernelSizeX, | ||
| int32_t | kernelSizeY, | ||
| float | sigmaX, | ||
| float | sigmaY, | ||
| VPIBorderExtension | border | ||
| ) |
#include </opt/nvidia/vpi2/include/vpi/algo/GaussianFilter.h>
Runs a 2D Gaussian filter over an image.
| [in] | stream | The stream where the operation will be queued in.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [in] | backend | Backend that will execute the algorithm.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [in] | input | Input image to be filtered.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [out] | output | Image where the result will be written to.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [in] | kernelSizeX,kernelSizeY | Gaussian kernel size in X and Y directions respectively. If 0, it'll be 2*ceil(3*sigma) rounded to the next odd size.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [in] | sigmaX,sigmaY | Standard deviation of the Gaussian kernel in the X and Y directions respectively.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [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 | kernelSizeX or kernelSizeY outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | sigmaX or sigmaY outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | input or output image dimensions outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | input and output image dimensions and format must be the same. |
| 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_NOT_IMPLEMENTED | Gaussian Filter algorithm is not supported by given backend. |
| VPI_ERROR_INVALID_OPERATION | Backend hardware not available. |
| VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream, input or output. |
| VPI_SUCCESS | Operation executed successfully. |