partie 2 :DeCompression :

 

La fonction decomp_block

function mat=decomp_block (matrice,indL,indC)

%Récupérer la matrice originale avant l'application de comp_block

[n nn]=size(matrice);

if indL~=0 || indC~=0

X=zeros(indL,nn);Y=zeros(indL+n,indC);

mat=matrice(:,1:end-indC);mat=mat(1:end-indL,:);

else mat=matrice;

end % end else

mat(mat>255)=255; mat(mat<0)=255;