]> Creatis software - clitk.git/blobdiff - itk/clitkLabelImageOverlapMeasureFilter.txx
Compute dice and not another overlap measure (2*i/add)
[clitk.git] / itk / clitkLabelImageOverlapMeasureFilter.txx
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;
 }
 //--------------------------------------------------------------------