quantitative analysis of the motion detection(matl
2016-08-23
0 0 0
no vote
Other
Earn points
%load E_hat;
%RT1499=reshape(E_hat(:,300),128,160);
RT1499=imread('pic12.jpg');
RT1499(find(abs(RT1499)>0))=255;
f=imread('pic13.jpg');
GT1499=rgb2gray(f);
[a,b,c]=size(RT1499);
TP=0;
FP=0;
TN=0;
FN=0;
for i=1:a
for j=1:b
if GT1499(i,j)>0 & RT1499(i,j)>0
TP=TP+1 ;
end
if GT1499(i,j)==0 & RT1499(i,j)>0
FP=FP+1;
end
if GT1499(i,j)==0 & RT1499(i,j)==0
TN=TN+1;
end
if GT1499(i,j)>0 & RT1499(i,j)==0
FN=FN+1;
end
%RT1499=reshape(E_hat(:,300),128,160);
RT1499=imread('pic12.jpg');
RT1499(find(abs(RT1499)>0))=255;
f=imread('pic13.jpg');
GT1499=rgb2gray(f);
[a,b,c]=size(RT1499);
TP=0;
FP=0;
TN=0;
FN=0;
for i=1:a
for j=1:b
if GT1499(i,j)>0 & RT1499(i,j)>0
TP=TP+1 ;
end
if GT1499(i,j)==0 & RT1499(i,j)>0
FP=FP+1;
end
if GT1499(i,j)==0 & RT1499(i,j)==0
TN=TN+1;
end
if GT1499(i,j)>0 & RT1499(i,j)==0
FN=FN+1;
end
matlab
检测
运动
Related Source Codes
GMSK Linear Receiver
0
0
no vote
NSGA-II algorithm
0
0
no vote
NSGA-III multi-objective optimization algorithm
0
0
no vote
Compressed sensing example
0
0
no vote
CFAR detector example
0
0
no vote
No comment