pyrdowncv

Applies the pyramid transformation on an image by downsampling it.

Syntax

R = pyrdowncv(handle)

R = pyrdowncv(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 downsampled image.
Type: integer

Example

Downsample the image with default options:
handle = imreadcv('image1.jpg');
R = pyrdowncv(handle);
Reduce the resolution to 1/4 of the original one:
src = imreadcv('Dog.jpg');
R = pyrdowncv(src); %Resolution reduced to 1/2
R = pyrdowncv(R); %Resolution reduced to 1/4
imshowcv(R);
Figure 1. Input image


Figure 2. Output image