pyrupcv

Applies the pyramid transformation on an image by upsampling it.

Syntax

R = pyrupcv(handle)

R = pyrupcv(handle, sz)

Inputs

handle
Handle of an image.
Type: integer
sz
Optional size of R. If specified, it must be a positive integral vector
Type: vector

Outputs

R
Handle of the upsampled image.
Type: integer

Example

Upsample the image with default options:

handle = imreadcv('image1.jpg');
R = pyrupcv(handle);

Increase the resolution of the original file and save it. The new file has approximately twice the size of the original one:

src = imreadcv('Dog.jpg');
R = pyrupcv(src); 
imshowcv(R);
imwritecv('NewDog.jpg',R);
Figure 1. Input image