% Andrew Puryear
% 362 Project - drive
%   Matlab file uses compress_jpega.m and decompress_jpega.m to display a COLA-JPEG image.


clear;
close all;

load F:\MATLAB6p1\work\PSYCH221\Project\TestPictures\einstein.mat;
load F:\MATLAB6p1\work\PSYCH221\tutorials\jpegFiles\dctMatrix;

[imw, imsize]=compress_jpega(X, 1.8);
ima=decompress_jpega(imw, imsize);

imshow(ima/256,256)