% On cree la matrice qui relie l'ancienne valeur
% du bloc a la nouvelle 
function M_trans = M_relier(M)
M_trans = zeros([2 512]);
t = 0:511;
M_trans(1,t + 1) = t;
M_trans(2,t + 1) = t;
% les liens essentiels
M_trans(2,13) = 270;
M_trans(2,18) = 275;
M_trans(2,25) = 280;
M_trans(2,35) = 298;
M_trans(2,37) = 292;
M_trans(2,49) = 368;
M_trans(2,66) = 329;
M_trans(2,67) = 322;
M_trans(2,69) = 340;
M_trans(2,130) = 385;
M_trans(2,131) = 302;
M_trans(2,137) = 456;
% Test pour optimiser
M_trans(2,321) = 322;
M_trans(2,259) = 322;
M_trans(2,289) = 292;
M_trans(2,261) = 292;
M_trans(2,258) = 385;
M_trans(2,385) = 385;
M_trans(2,265) = 280;
M_trans(2,273) = 280;

% Nouveau pour denoiser
M_trans(2,257) = 0;
% Un peu puissant...
% Sinon
%M_trans(2,256) = 0;
%M_trans(2,255) = 0;
%M_trans(2,253) = 0;
%M_trans(2,249) = 0;
%M_trans(2,241) = 0;
%M_trans(2,225) = 0;
%M_trans(2,197) = 0;
%M_trans(2,129) = 0;

%M_trans(2,512) = 346;
%M_trans(2,510) = 0;
%M_trans(2,508) = 0;
%M_trans(2,504) = 0;
%M_trans(2,496) = 0;
%M_trans(2,480) = 0;
%M_trans(2,448) = 0;
%M_trans(2,384) = 0;
%M_trans(2,256) = 0;
