cv.pyrUp - MATLAB File Help
cv.pyrUp

Upsamples an image and then blurs it

dst = cv.pyrUp(src)
dst = cv.pyrUp(src, 'OptionName',optionValue, ...)

Input

Output

Options

By default, size of the output image is computed as [size(src,2)*2 size(src,1)*2], but in any case, the following conditions should be satisfied:

abs(DstSize(2) - size(src,2)*2) <= mod(DstSize(2),2)
abs(DstSize(1) - size(src,1)*2) <= mod(DstSize(1),2)

The function performs the upsampling step of the Gaussian pyramid construction, though it can actually be used to construct the Laplacian pyramid. First, it upsamples the source image by injecting even zero rows and columns and then convolves the result with the same kernel as in cv.pyrDown multiplied by 4.

See also