% assignment5_test2:
% to test your decoder function
% the difference in the subplots does not necessarily mean that you made a
% wrong code
close all;
clear all;
load('assignment5_test1.mat');
load('assignment5_test2.mat');

% PLEASE REPLACE IN THE FOLLOWING LINE THE NAME OF THE DECODER FUNCTION 
% WITH YOUR ONE:
[output_img] = decoder(cb, iv, rn, cn);
% PLEASE DO NOT MODIFY AFTER THIS LINE

figure;
subplot(1, 2, 1);
imshow(out_img);
title('ground truth, blocksize: 16, clusternum: 10');
subplot(1, 2, 2);
imshow(output_img);
title('your decoded image');
