From: pierre gueth Date: Mon, 24 Oct 2011 10:38:36 +0000 (+0200) Subject: fixed over_one counter X-Git-Tag: v1.3.0~179^2~3 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2b4640901e2d30671b1068519b56c80499063ad6;p=clitk.git fixed over_one counter --- 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++; }