对输入图像运行通用 2D 盒式滤波器。 更多...
函数 | |
VPIStatus | vpiSubmitBoxFilter (VPIStream stream, uint64_t backend, VPIImage input, VPIImage output, int32_t kernelWidth, int32_t kernelHeight, VPIBorderExtension border) |
对图像运行 2D 盒式滤波器。 更多... | |
对输入图像运行通用 2D 盒式滤波器。
有关更多详细信息和使用示例,请参阅 盒式滤波器。
VPIStatus vpiSubmitBoxFilter | ( | VPIStream | stream, |
uint64_t | backend, | ||
VPIImage | input, | ||
VPIImage | output, | ||
int32_t | kernelWidth, | ||
int32_t | kernelHeight, | ||
VPIBorderExtension | border | ||
) |
#include <vpi/algo/BoxFilter.h>
对图像运行 2D 盒式滤波器。
[输入] | stream | 操作将被排入队列的流句柄。
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[输入] | backend | 将执行该算法的后端。 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[输入] | input | 要过滤的输入图像。
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[输出] | output | 结果将写入的输出图像。
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[输入] | kernelWidth,kernelHeight | 盒式内核尺寸。 可以是非正方形。
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[输入] | border | 如何处理图像边界之外的像素。
|
VPI_ERROR_INVALID_ARGUMENT | stream 为 NULL。 |
VPI_ERROR_INVALID_ARGUMENT | input 或 output 为 NULL。 |
VPI_ERROR_INVALID_ARGUMENT | kernelWidth 或 kernelHeight 超出有效范围。 |
VPI_ERROR_INVALID_ARGUMENT | input 或 output 图像尺寸超出有效范围。 |
VPI_ERROR_INVALID_ARGUMENT | input 和 output 图像尺寸或格式不匹配。 |
VPI_ERROR_INVALID_ARGUMENT | 不支持 border 。 |
VPI_ERROR_INVALID_ARGUMENT | backend 无效或未知。 |
VPI_ERROR_INVALID_IMAGE_FORMAT | 不支持 input 或 output 图像格式。 |
VPI_ERROR_INVALID_OPERATION | 后端硬件不可用。 |
VPI_ERROR_INVALID_OPERATION | 所需的后端未在 stream 、input 或 output 中启用。 |
VPI_ERROR_NOT_IMPLEMENTED | 给定后端不支持盒式滤波器算法。 |
VPI_SUCCESS | 操作执行成功。 |