FN=(1-pred)*label TN=(1-pred)*(1-label) # TP result[:, :,0]=np.where(TP==1,255,result[:, :,0]) result[:, :,1]=np.where(TP==1,255,result[:, :,1]) result[:, :,2]=np.where(TP==1,255,result[:, :,2]) # FP result[:, :,0]=np.where(FP==1,255,result[:,...