Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Testing DCT input and output

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
Hi all,

I am new to DCT and now testing my FDCT and IDCT program.
I found some of my high frequency DCT part is higher than low frequency DCT part.
And I don't know whether it is correct.

Where can I find example of 8*8 DCT input and output to test my code,thanks!

BTW,
my code's DCT input:
55 60 58 55 60 58 55 60
58 55 60 58 55 60 58 55
60 58 55 60 58 55 60 58
55 60 58 55 60 58 55 60
58 55 60 58 55 60 58 55
60 58 55 60 58 55 60 58
55 60 58 55 60 58 55 60
58 55 60 58 55 60 58 55
my code's DCT output:
461 0 -1 0 -1 -1 1 0
0 0 0 0 0 -2 0 0
-1 0 -1 0 -2 -1 2 0
0 0 0 0 0 -2 -1 0
-1 0 -2 0 -3 -3 4 0
1 -2 1 -2 3 -11 -3 1
1 0 2 1 4 3 -5 0
0 0 0 0 0 1 0 0

Any suggestions will be appreciated!
All the best,
Davy
 

Simple DCT problem

What programming language you are using to write this program?

If you are using something other than Matlab, you may use Matlab with DCT function to test your result.

HTH
 

    davyzhu

    Points: 2
    Helpful Answer Positive Rating
Simple DCT problem

Hi tofinhk,

I use dct(dct(x')'), and all ok!

All the best,
Davy
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top