From 2b4640901e2d30671b1068519b56c80499063ad6 Mon Sep 17 00:00:00 2001 From: pierre gueth Date: Mon, 24 Oct 2011 12:38:36 +0200 Subject: [PATCH] fixed over_one counter --- tools/clitkGammaIndex.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/clitkGammaIndex.cxx b/tools/clitkGammaIndex.cxx index 65031a6..c9ceb7b 100644 --- a/tools/clitkGammaIndex.cxx +++ b/tools/clitkGammaIndex.cxx @@ -267,11 +267,10 @@ int main(int argc,char * argv[]) double squared_distance = 0; locator->FindClosestPoint(point,closest_point,cell_id,foo,squared_distance); - double distance = sqrt(squared_distance); output->GetPointData()->GetScalars()->SetTuple1(kk,distance); - if (value>1) over_one++; + if (distance>1) over_one++; total++; } -- 2.45.1