资 源 简 介
%负载 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 ;因为我 = 1:j 1:b =如果 GT1499(i,j) > 0 & RT1499(i,j) > 0TP = TP + 1 ;结束如果 GT1499(i,j) = = 0 和 RT1499(i,j) > 0FP = FP + 1 ;结束如果 GT1499(i,j) = = 0 和 RT1499 (i,j) = = 0TN = TN + 1 ;结束如果 GT1499(i,j) > 0 和 RT1499 (i,j) = = 0FN = FN + 1 ;结束结束结束DR=TP/(TP+FN) ;Precision=TP/(TP+FP) ;F_measure=2*DR*Precision/(DR+Precision) ;