VPI - Vision Programming Interface

1.2 Release

Laplacian Pyramid Generator

Creates a Laplacian pyramid from the input image. More...

Functions

VPIStatus vpiSubmitLaplacianPyramidGenerator (VPIStream stream, uint32_t backend, VPIImage input, VPIPyramid output, VPIPyramid gaussianPyr, VPIBorderExtension border)
 Computes the Laplacian pyramid from the input image. More...
 

Detailed Description

Creates a Laplacian pyramid from the input image.

Function Documentation

◆ vpiSubmitLaplacianPyramidGenerator()

VPIStatus vpiSubmitLaplacianPyramidGenerator ( VPIStream  stream,
uint32_t  backend,
VPIImage  input,
VPIPyramid  output,
VPIPyramid  gaussianPyr,
VPIBorderExtension  border 
)

#include <vpi/algo/LaplacianPyramid.h>

Computes the Laplacian pyramid from the input image.

Note that the coarsest level of the Laplacian pyramid is equivalent in concept to that of the Gaussian pyramid. However, in cases where the Laplacian pyramid output format has less positive dynamic range than the input format, ie input format is VPI_IMAGE_FORMAT_U8 and output format is VPI_IMAGE_FORMAT_S8 or U16 and S16, the pixel values of the output in the coarsest level are divided by 2 in order to avoid overflow.

Parameters
[in]streamThe stream where the operation will be queued in.
[in]backendVPI backend that will execute the algorithm.
[in]inputInput image. Supported formats are:
[out]outputWhere the resulting Laplacian pyramid will be written to. It must have been created with the desired scale and number of levels. Supported formats:
[out]gaussianPyrIf not NULL, defines where the intermediate Gaussian pyramid will be written to. It must have been created with the desired scale and number of levels.
[in]borderBorder extension to be used when sampling pixels outside the image border.
Returns
an error code on failure else VPI_SUCCESS.