From c615a2d2e7fe2ae4f0723a0c67d955c16521b6e0 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Tue, 20 Mar 2012 14:11:06 +0100 Subject: [PATCH] Compute dice and not another overlap measure (2*i/add) --- itk/clitkLabelImageOverlapMeasureFilter.h | 2 +- itk/clitkLabelImageOverlapMeasureFilter.txx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } //-------------------------------------------------------------------- -- 2.47.1