function processBlock(block, C, QType)

% p = 1
Q = createQuantizationMatrix(1, QType);
Yq1 = compressImage(block, 1, 1, C, Q);
Yd1 = decompressImage(Yq1, 1, 1, C, Q);
Yd1 = uint8(Yq1);

% p = 2
Q = createQuantizationMatrix(2, QType);
Yq2 = compressImage(block, 1, 1, C, Q);
Yd2 = decompressImage(Yq2, 1, 1, C, Q);
Yd2 = uint8(Yq2);

% p = 4
Q = createQuantizationMatrix(4, QType);
Yq4 = compressImage(block, 1, 1, C, Q);
Yd4 = decompressImage(Yq4, 1, 1, C, Q);
Yd4 = uint8(Yq4);

% Display YQ matrices
uint8(block)
Yq1
Yq2
Yq4

% Create 8x8 images
figure(1);
imagesc(block);colormap(gray);

figure(2);
imagesc(Yd1);colormap(gray);

figure(3);
imagesc(Yd2);colormap(gray);

figure(4);
imagesc(Yd4);colormap(gray);

figure(5);