This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
%function_2
functionC =recover(B, psf)
% function C = recover(B, psf)
% In input:
% B, matrice dell’immagine sfocata
% psf, matrice della PSF
% In output:
% C, matrice con l’immagine restaurata
%RECOVER_GRADIENT
[m,n,~]=size(B);
% PSF "flippata", corrispondente alla moltiplicazione per % la matrice trasposta.
psfr=psf(end:-1:1,end:-1:1);
% Right hand side
b=B;
forj=1:size(b,3)
b(:,:,j)=conv2(B(:,:,j),psfr,'same');
end
% Operatore lineare PSF * PSF come funzione inline