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... | |
Creates a Laplacian pyramid from the input image.
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.
[in] | stream | The stream where the operation will be queued in. |
[in] | backend | VPI backend that will execute the algorithm. |
[in] | input | Input image. Supported formats are: |
[out] | output | Where the resulting Laplacian pyramid will be written to. It must have been created with the desired scale and number of levels. Supported formats:
|
[out] | gaussianPyr | If 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] | border | Border extension to be used when sampling pixels outside the image border. |