Code covered by the BSD License  

Highlights from
Joint Estimation for EPI functional MRI using Harmonic Retrieval

from Joint Estimation for EPI functional MRI using Harmonic Retrieval by Hien
Implementation of harmonic retrieval for MRI image reconstruction

SNR(in, est)
% Minh N. Do, UIUC

function r = SNR(in, est)
% To find SNR between input (in) and estimate (est) in decibels (dB).
%
% Reference: Vetterli & Kovacevic, "Wavelets and Subband Coding", p. 372

error = in - est;

r = 10 * log10((in(:)' * in(:)) / (error(:)' * error(:)));

Contact us at files@mathworks.com