Image Approximation: Signal-to-Noise Ratio
조회 수: 7 (최근 30일)
이전 댓글 표시
can someone help me with this question please ?
(SNR) in decibels (dB): -20*log10(|f-fapp|/f)
The norm is the Frobenius norm (l2 norm of the Matrix reshaped as a column vector). Follow the instructions below to complete the compute_snr function.
this is the steps and info that the question shows in my matlab fun :
function snr = compute_snr(I, Id)
% Input:
% I: the original image
% Id: the approximated (noisy) image
% Output:
% snr: signal-to-noise ratio
% Please follow the instructions in the comments to fill in the missing commands.
% 1) Compute the noise image (original image minus the approximation)
% 2) Compute the Frobenius norm of the noise image
% 3) Compute the Frobenius norm of the original image
% 4) Compute SNR
end
댓글 수: 0
답변 (1개)
Matt J
2018년 9월 24일
You can compute the Frobenius norm using Matlab's norm command
norm(yourImage,'fro')
The other steps in your question are just simple arithmetic.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!