]> Creatis software - clitk.git/commitdiff
Compute dice and not another overlap measure (2*i/add)
authorDavid Sarrut <david.sarrut@gmail.com>
Tue, 20 Mar 2012 13:11:06 +0000 (14:11 +0100)
committerDavid Sarrut <david.sarrut@gmail.com>
Tue, 20 Mar 2012 13:11:06 +0000 (14:11 +0100)
itk/clitkLabelImageOverlapMeasureFilter.h
itk/clitkLabelImageOverlapMeasureFilter.txx

index 9b4a45870992362bd5b02dfefc3f4a5b6152adea..17581f633ad9bb94d815b1e549ca19615dabaa58 100644 (file)
@@ -17,7 +17,7 @@
   ===========================================================================**/
 
 #ifndef CLITKLABELIMAGEOVERLAPMEASUREFILTER_H
-#define CLITKRELATIVEPOSITIONANALYZERFILTER_H
+#define CLITKLABELIMAGEOVERLAPMEASUREFILTER_H
 
 // clitk
 #include "clitkFilterBase.h"
index 11c1e42bca39d9a9aa6662c7e99ac0c08f1051fe..9e7694df58f0439bbefe67535c9829a59200b7c8 100644 (file)
@@ -120,7 +120,7 @@ GenerateData()
   statFilter->Update();
   int in2 = statFilter->GetCount(GetLabel1());
 
-  std::cout << in1 << " " << in2 << " " << inter << " " << u << " " << (double)inter/(double)u << std::endl;
+  std::cout << in1 << " " << in2 << " " << inter << " " << u << " " << 2.0*(double)inter/(double)(in1+in2) << std::endl;
 }
 //--------------------------------------------------------------------