-
Notifications
You must be signed in to change notification settings - Fork 0
/
d.m
24 lines (21 loc) · 1000 Bytes
/
d.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%**************************************************************************
% This is 'd' function for part 'd' of question 4 *
% In this function we showing results and difference of them *
% *
% Inputs: fHat: linear prediction coding result *
% decode: decoded image *
% *
% Outputs: there is no output *
%**************************************************************************
function d(fHat , decode)
figure;
subplot(1,3,1);
imshow(fHat,[]);
title("original fHat");
subplot(1,3,2);
imshow(decode,[]);
title("encode and decode fHat");
subplot(1,3,3);
imshow(imabsdiff(fHat,decode),[]);
title('diff between both');
end