HalveSize

An image whose size is halved.

 

function call:

[out_img1]=vsg('HalveSize',in_img1);

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image.

 

Description:

[out_img1]=vsg('HalveSize',in_img1) – out_img1 is an image which is half the width and half the height of the input, the number of colour channels remains the same and in the case of DICOM images, the number of slices remains the same.

 

Example:

img1 = openimage('lake.jpg');

[out_img1]=vsg('HalveSize',img1);

h=figure, image(uint8(out_img1)); set(h,'Name','Output Image');
Home       Functions       Back