Creates a Laplacian pyramid from the input image. More...
Functions | |
VPIStatus | vpiSubmitLaplacianPyramidGenerator (VPIStream stream, uint64_t backend, VPIImage input, VPIPyramid output, VPIPyramid gaussianPyr, VPIBorderExtension border) |
Computes the Laplacian pyramid from the input image. More... | |
Creates a Laplacian pyramid from the input image.
Refer to Laplacian Pyramid Generator for more details and usage examples.
VPIStatus vpiSubmitLaplacianPyramidGenerator | ( | VPIStream | stream, |
uint64_t | backend, | ||
VPIImage | input, | ||
VPIPyramid | output, | ||
VPIPyramid | gaussianPyr, | ||
VPIBorderExtension | border | ||
) |
#include </opt/nvidia/vpi2/include/vpi/algo/LaplacianPyramid.h>
Computes the Laplacian pyramid from the input image.
[in] | stream | The stream where the operation will be queued in.
| ||||||||||||||||||||
[in] | backend | VPI backend that will execute the algorithm.
| ||||||||||||||||||||
[in] | input | Input image.
| ||||||||||||||||||||
[out] | output | Where the resulting Laplacian pyramid will be written to. It must have been created with the desired scale and number of levels.
| ||||||||||||||||||||
[out] | gaussianPyr | Defines where the intermediate Gaussian pyramid will be written to. Pass NULL if not needed.
| ||||||||||||||||||||
[in] | border | Border extension to be used when sampling pixels outside the image border.
|
VPI_ERROR_INVALID_ARGUMENT | stream is NULL. |
VPI_ERROR_INVALID_ARGUMENT | input or output are NULL. |
VPI_ERROR_INVALID_ARGUMENT | gaussianPyr and output must have the same scale, number of levels and dimensions. |
VPI_ERROR_INVALID_IMAGE_FORMAT | input and gaussianPyr must have the same format. |
VPI_ERROR_INVALID_IMAGE_FORMAT | output format not compatible with input format. |
VPI_ERROR_INVALID_IMAGE_FORMAT | Unsupported input image format. |
VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream , input , output or gaussianPyr . |
VPI_ERROR_NOT_IMPLEMENTED | Laplacian Pyramid algorithm is not supported by given backend. |
VPI_SUCCESS | Operation executed successfully. |