From 8cb68d0c300cb9ac6a44fc033325c2b56d7cbce3 Mon Sep 17 00:00:00 2001 From: Gregoire Ville Date: Tue, 29 Oct 2024 16:03:35 +0100 Subject: [PATCH] Fix syntax typos --- .../shapes_to_density/animaShapesToDensity.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Anima/math-tools/common_tools/shapes_to_density/animaShapesToDensity.cxx b/Anima/math-tools/common_tools/shapes_to_density/animaShapesToDensity.cxx index 899732895..9604a88c4 100644 --- a/Anima/math-tools/common_tools/shapes_to_density/animaShapesToDensity.cxx +++ b/Anima/math-tools/common_tools/shapes_to_density/animaShapesToDensity.cxx @@ -20,7 +20,7 @@ int main(int argc, char **argv) //Define arguments TCLAP::ValueArg inTrackArg("i","in-tracks","input track file (vtp, vtk)",true,"","input tracks",cmd); TCLAP::ValueArg geometryArg("g","geometry","Output image geometry",true,"","output geometry",cmd); - TCLAP::ValueArg outArg("o","out","Output image representing fibers convert in binary image",true,"","output image",cmd); + TCLAP::ValueArg outArg("o","out","Output density map",true,"","output image",cmd); //Try to parse try @@ -106,12 +106,14 @@ int main(int argc, char **argv) for (int l = 1; l < maxStep; l++) { //We enter this loop only if maxStep >=2. - //In that case, we create artificial index points, to try to modify all and only all the voxels through which the streamline passes between point and pointNext + //In that case, we create artificial index points, + // to try to modify all and only all the voxels through which the streamline passes between point and pointNext //We repeat maxStep - 1 times and not maxStep times, because otherwise, index = indexNext, and we would increment indexNext twice indexTemp[0] = index[0] + std::round(l*dx/maxStep); indexTemp[1] = index[1] + std::round(l*dy/maxStep); indexTemp[2] = index[2] + std::round(l*dz/maxStep); - outImage->SetPixel(indexTemp, outImage->GetPixel(indexTemp) + 1.0); //increment the number of streamlines passing through the voxel with the index indexTemp + //increment the number of streamlines passing through the voxel with the index indexTemp + outImage->SetPixel(indexTemp, outImage->GetPixel(indexTemp) + 1.0); } } }