salut!
je cherche comment calculer le psnr
j'ai essayer ce code
code:
mais ce message apparait :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 function [PSNR]=PSNR_2(M,M2) [L,C]=size(M); EQM1=0; % for i=1:L for j=1:C EQM1=EQM1 + (M(i,j)-M2(i,j))^2; end end EQM=sqrt(EQM1/(L*C)); PSNR_2=10*log10((255^2)/(EQM^2));
que faire?????? Undefined function or method 'sqrt' for input arguments of type 'uint8'.
Error in ==> PSNR_2 at 12
EQM=sqrt(EQM1/(L*C)),
Partager