SlideShare ist ein Scribd-Unternehmen logo
1 von 1
%% PSR calcualtion
peak=max(max(y1));
[h1,h2]=find(y1==peak);
[a,b]=size(y1);
if h1>10 && h2>10 && h1<a-10 && h2<b-10
y1((h1-2):(h1+2),(h2-2):(h2+2))=0;
mask=y1(h1-10:h1+10,h2-10:h2+10);
[a1,b1]=size(mask);
end
c=1;
for i=1:a1
for j=1:b1
if mask(i,j)==0
else
newmask(c,:)=mask(i,j);
c=c+1;
end
end
end
mn=mean(newmask);
sd=std(newmask);
psr=(peak-mn)/sd

Weitere ähnliche Inhalte

Was ist angesagt? (18)

Ooprc3b
Ooprc3bOoprc3b
Ooprc3b
 
Tugas4
Tugas4Tugas4
Tugas4
 
Sesión de aprendizaje de factorización de polinomios ccesa007
Sesión de aprendizaje de factorización de polinomios ccesa007Sesión de aprendizaje de factorización de polinomios ccesa007
Sesión de aprendizaje de factorización de polinomios ccesa007
 
Numeros primos
Numeros primosNumeros primos
Numeros primos
 
1.2.1 Pythagoras
1.2.1 Pythagoras1.2.1 Pythagoras
1.2.1 Pythagoras
 
[14.09.15] nCr 빠르게 구하기
[14.09.15] nCr 빠르게 구하기[14.09.15] nCr 빠르게 구하기
[14.09.15] nCr 빠르게 구하기
 
B.f.s
B.f.sB.f.s
B.f.s
 
đạI số tổ hợp chương 5 (p2)
đạI số tổ hợp chương 5 (p2)đạI số tổ hợp chương 5 (p2)
đạI số tổ hợp chương 5 (p2)
 
GRÁFICAS DE FUNCIONES
GRÁFICAS DE FUNCIONESGRÁFICAS DE FUNCIONES
GRÁFICAS DE FUNCIONES
 
Bai lam chuong 3
Bai lam chuong 3Bai lam chuong 3
Bai lam chuong 3
 
Doi xung mang mot chieu
Doi xung mang mot chieuDoi xung mang mot chieu
Doi xung mang mot chieu
 
Ejercicios integrales
Ejercicios integralesEjercicios integrales
Ejercicios integrales
 
Kelompok 2 slideshare rk
Kelompok 2 slideshare rkKelompok 2 slideshare rk
Kelompok 2 slideshare rk
 
Ve ngoi nha lap trinh do hoa bang c
Ve ngoi nha lap trinh do hoa bang cVe ngoi nha lap trinh do hoa bang c
Ve ngoi nha lap trinh do hoa bang c
 
(Power point) bilangan berpangkat
(Power point) bilangan berpangkat(Power point) bilangan berpangkat
(Power point) bilangan berpangkat
 
Edii fdf
Edii fdfEdii fdf
Edii fdf
 
Ativ minha 7ª serie 2011
Ativ minha 7ª serie 2011Ativ minha 7ª serie 2011
Ativ minha 7ª serie 2011
 
N primo clase programa
N primo clase programaN primo clase programa
N primo clase programa
 

Psr calculation matlab code