Filter an image with a 2D binary kernel composed with the erode morphological operation. More...
Functions | |
VPIStatus | vpiSubmitErode (VPIStream stream, uint32_t backend, VPIImage input, VPIImage output, const int8_t *kernelData, int32_t kernelWidth, int32_t kernelHeight, VPIBorderExtension border) |
Runs a 2D erode over an image. More... | |
Filter an image with a 2D binary kernel composed with the erode morphological operation.
The function vpiSubmitErode is used to erode an image with a 2D kernel binary mask.
VPIStatus vpiSubmitErode | ( | VPIStream | stream, |
uint32_t | backend, | ||
VPIImage | input, | ||
VPIImage | output, | ||
const int8_t * | kernelData, | ||
int32_t | kernelWidth, | ||
int32_t | kernelHeight, | ||
VPIBorderExtension | border | ||
) |
#include <vpi/algo/MorphologicalFilter.h>
Runs a 2D erode over an image.
[in] | stream | The stream handle where the operation will be queued in. |
[in] | backend | Backend that will execute the algorithm. |
[in] | input | Input image to be eroded with the kernel. |
[out] | output | Output image where the result is written to. Its image format and dimensions must be the same as input. |
[in] | kernelWidth,kernelHeight | Kernel dimensions. |
[in] | kernelData | Erode kernel binary mask, i.e. structuring element or neighborhood definition, in row-major layout. Use nullptr for full neighborhood. |
[in] | border | Border extension (use VPI_BORDER_INVALID to avoid outside pixels). |