Create an error function
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I have 2 matrices of images, with all values 0 and 1. I would like to compare the two, where i would like to get the number of true positives (where both pixels -at the same postion- are equal to 1), true negatives (both pixels equal to 0), false positives ( where image A is equal to 1 but image B is equl to 0) and false negatives (where image A is equal to 0 but image B is equal to 1).
If I try to extract where A==1 and B==1 etc. and compare it, I get an error because the matrices dont agree.
If I just compare A to B I only get where the match/not match but it doesnt tell me if its a true positive etc.
thank you
댓글 수: 2
채택된 답변
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!