DoubleSize

An image whose size is doubled.

 

function call:

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

 

Arguments:

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

 

Description:

[out_img1]=vsg('DoubleSize',in_img1) – out_img1 is an image which is twice the width and twice 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');

h=figure, image(uint8(img1)); set(h,'Name','Input');

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

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