precision and recall computation
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
i have a background subtracted image and its ground truth. How can i find the accuracy using precision and recall.precision=tp/(tp+fp),and recall=tp/(tp+fn). F measure=2*p*r/p+r. i want to get these values. please help
채택된 답변
Image Analyst
2013년 9월 4일
0 개 추천
How are you defining true positive (tp), false positive (fp), and false negative (fn)? Is it just based on whether the difference between your output pixel and your ground truth pixel is zero or non-zero? Wouldn't accuracy just be the ratio of true positive pixels to the number of pixels in your image?
댓글 수: 11
soumya
2013년 9월 4일
i have binary image of ground truth and obtained output in binary. how should i compute tp tn etc? pls help
If you're looking at each pixel, then count the true positives like this
% Calc true positive image, where both images are true.
match11 = (testImage == truthImage) & testImage; % This is a binary image
% Calc true negative image, where both images are false.
match00 = (testImage == truthImage) & ~testImage; % This is a binary image
% Calc false positive image, where test image is true & truth is false
match10 = testImage & ~truthImage; % This is a binary image
% Calc false negative image, where test image is false & truth is true
match01 = ~testImage & truthImage; % This is a binary image
% Count up the "true" values in the binary images.
numberOfTruePositives = sum(match11(:));
numberOfTrueNegatives = sum(match00(:));
numberOfFalsePositives = sum(match10(:));
numberOfFalseNegatives = sum(match01(:));
Does that make sense to you?
soumya
2013년 9월 5일
sir,what i need is to get the true positive of the pixels in a frame.i have a ground truth image,in which foreground region is marked white and background region are marked black.after execution of my code, i got output image.I want to check,how much of my output image matches with ground truth. is dat possible?
Image Analyst
2013년 9월 5일
Yep, that's what I gave you.
but sir, when i executed the code that u provided,my numberof true positives=0, where the output is mostly similar to ground truth..can u pls help?
soumya
2013년 9월 5일
probably,my two formats are different,dat could be the problem. testImage is logical,truthImage is uint8.Is dat ryt sir?
soumya
2013년 9월 5일
sir,I got result....Thank u so much sir...I was a bit nervous...sorry for the blunters.... :)
Image Analyst
2013년 9월 5일
They both need to be binary images since that is what you said at first and that's how I designed the code. If they're both gray scale images then you'll need to modify it. But whatever, they both must be the same type.
Abdulrahman Mkaies
2015년 4월 29일
편집: Abdulrahman Mkaies
2015년 4월 29일
if the output image (the result image ) isnt in the same location for crosses exactly (there is an error in distance , lets say 10 pixels around the original crosses ) , Can this way adapt well ??
if not, what should I modify ?
Plzzzzz answer
Image Analyst
2015년 4월 29일
I don't have the slightest idea what you're talking about. You're not even the original poster for this message, that's a year and a half old. Please read this and start your own question.
Abdulrahman Mkaies
2015년 4월 30일
yes Sir, my question is here : http://www.mathworks.com/matlabcentral/answers/214319-accuracy-and-precision-computation , Could you give me your advise please ? , Thank you in advance
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Detection에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
