TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DANIAL GIBSON
from: HERMAN SCHONFELD
date: 1997-04-11 19:27:00
subject: PCX file format

HS>Yes, I agree that DCT is lossy, but it is effective in true
HS>colour/high colour modes.
DG>Could you please give me a give overview of DCT. Don't worry about
DG>details. Just the basics, I'm not interested in implementing it, just
DG>want to know an overview of how it works. Thanks.
Discrete Cosine Transform turns an array of intensity data into an array of 
frequency data that tell how fast the intensities vary. JPEG applies the DCT 
8x8 rectangles of pixel data. For images with multiple components (ie, YCbCr 
images) the DCT is appled separately to 8x8 blocks of data for each 
mponent.
You apply the value of the algorithm to the already re-mapped colour matrix.
algorithm :-
F(u,v) = 1/4*C(u)*C(v) * (matrix[x,cos] * matrix[y,sin] *
F(x,y) * cos(2x+1)*(u*pi) / 16 * cos(2y + 1)*(v*pi))
where C(z) = ( 1 / sqrt(2) if z == 0 else
                   sqrt(1) if z != 0 )
DG>Danial.
DG>___
DG> X SLMR 2.1a X
... Error 3032 - Recursion error. See error 3032.
--- Ezycom V1.48g0 01fd016b
---------------
* Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.