]> Creatis software - clitk.git/blobdiff - tools/clitkGammaIndex.cxx
fixed over_one counter
[clitk.git] / 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++;
 
     }