DCT

Direct Cosine Transform operation.

 

function call:

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

 

Arguments:

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

 

Description:

out_img1 – the output image values are the discrete cosine transform of the input image.

 

Example:

img = openimage('lake.jpg');

h=figure;image(img);set(h,'Name','Input Image');

[out_img1]=vsg('DCT',img);

[out_img2]=vsg('ViewDCT',out_img1);

h=figure; image(uint8(out_img2));set(h,'Name','DCT image');

 

Notes:

1. For DICOM images, the function operates on all slices separately.

2. For RGB images, the function operates on all colour planes separately.

Home     Functions    Back