]> Creatis software - clitk.git/commitdiff
fixed over_one counter
authorpierre gueth <pierre.gueth@creatis.insa-lyon.fr>
Mon, 24 Oct 2011 10:38:36 +0000 (12:38 +0200)
committerpierre gueth <pierre.gueth@creatis.insa-lyon.fr>
Mon, 24 Oct 2011 10:38:36 +0000 (12:38 +0200)
tools/clitkGammaIndex.cxx

index 65031a6c22141cc25086596b9ee1ea966ff5ec76..c9ceb7b1270858ec902087c20dc2027570328cc9 100644 (file)
@@ -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++;
 
     }