DSPRelated.com
Forums

how can I have a dct transform of this image?

Started by ali_khodaie2002 June 19, 2009
I have an image .
how can I have a dct transform of this image.
I want to access to dct coofisients.
Hi Ali,

It is so easy to convert an image from spatial domain to frequncy domain using DCT
You have to way to do that; first by apply DCT to full fram image

for eaxmple,
1- read an image
im1= imread('lena.jpg');
2- apply DCT as
im1_dct= dct2(im1);
you will get dct coefficients in im1_dct
you should know that the first coefficient is DC coefficients following by AC coefficients.

second choice you can apply DCT in blocj of 8*8 (as jpeg compression algorithm)
select a block of 8*8 from the image and apply the DCT into that block as

Hope this little help

By the way you can have some examples from matlab exchanhe website.

Regards,
Ibrahim Nasir
--- On Fri, 6/19/09, ali_khodaie2002 wrote:
From: ali_khodaie2002
Subject: [matlab] how can I have a dct transform of this image?
To: m...
Date: Friday, June 19, 2009, 12:54 AM

I have an image .
how can I have a dct transform of this image.
I want to access to dct coofisients.