From: David Sarrut Date: Tue, 20 Mar 2012 13:11:06 +0000 (+0100) Subject: Compute dice and not another overlap measure (2*i/add) X-Git-Tag: v1.3.0~52^2~45 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c615a2d2e7fe2ae4f0723a0c67d955c16521b6e0;p=clitk.git Compute dice and not another overlap measure (2*i/add) --- diff --git a/itk/clitkLabelImageOverlapMeasureFilter.h b/itk/clitkLabelImageOverlapMeasureFilter.h index 9b4a458..17581f6 100644 --- a/itk/clitkLabelImageOverlapMeasureFilter.h +++ b/itk/clitkLabelImageOverlapMeasureFilter.h @@ -17,7 +17,7 @@ ===========================================================================**/ #ifndef CLITKLABELIMAGEOVERLAPMEASUREFILTER_H -#define CLITKRELATIVEPOSITIONANALYZERFILTER_H +#define CLITKLABELIMAGEOVERLAPMEASUREFILTER_H // clitk #include "clitkFilterBase.h" diff --git a/itk/clitkLabelImageOverlapMeasureFilter.txx b/itk/clitkLabelImageOverlapMeasureFilter.txx index 11c1e42..9e7694d 100644 --- a/itk/clitkLabelImageOverlapMeasureFilter.txx +++ b/itk/clitkLabelImageOverlapMeasureFilter.txx @@ -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; } //--------------------------------------------------------------------