Image Approximation: Signal-to-Noise Ratio

조회 수: 7 (최근 30일)
Osama Harmouche
Osama Harmouche 2018년 9월 24일
답변: Matt J 2018년 9월 24일
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

답변 (1개)

Matt J
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.

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by