% compresses 8x8 image to a black and white image
%Some parts of code obtained from
%http://math.gmu.edu/~tsauer/class/447/proj/chap11.pdf

function Xc = imagecomp(X, Q)

C = dct(X); % define C to size of block

Y = quant(X,C,Q); % quantisize

Xc = dequant(Y,C,Q); % de-quantisize
Not enough input arguments.

Error in imagecomp (line 7)
C = dct(X); % define C to size of block