Skip to content

Commit 8cb68d0

Browse files
committed
Fix syntax typos
1 parent 1740184 commit 8cb68d0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Anima/math-tools/common_tools/shapes_to_density/animaShapesToDensity.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ int main(int argc, char **argv)
2020
//Define arguments
2121
TCLAP::ValueArg <std::string> inTrackArg("i","in-tracks","input track file (vtp, vtk)",true,"","input tracks",cmd);
2222
TCLAP::ValueArg <std::string> geometryArg("g","geometry","Output image geometry",true,"","output geometry",cmd);
23-
TCLAP::ValueArg <std::string> outArg("o","out","Output image representing fibers convert in binary image",true,"","output image",cmd);
23+
TCLAP::ValueArg <std::string> outArg("o","out","Output density map",true,"","output image",cmd);
2424

2525
//Try to parse
2626
try
@@ -106,12 +106,14 @@ int main(int argc, char **argv)
106106
for (int l = 1; l < maxStep; l++)
107107
{
108108
//We enter this loop only if maxStep >=2.
109-
//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
109+
//In that case, we create artificial index points,
110+
// to try to modify all and only all the voxels through which the streamline passes between point and pointNext
110111
//We repeat maxStep - 1 times and not maxStep times, because otherwise, index = indexNext, and we would increment indexNext twice
111112
indexTemp[0] = index[0] + std::round(l*dx/maxStep);
112113
indexTemp[1] = index[1] + std::round(l*dy/maxStep);
113114
indexTemp[2] = index[2] + std::round(l*dz/maxStep);
114-
outImage->SetPixel(indexTemp, outImage->GetPixel(indexTemp) + 1.0); //increment the number of streamlines passing through the voxel with the index indexTemp
115+
//increment the number of streamlines passing through the voxel with the index indexTemp
116+
outImage->SetPixel(indexTemp, outImage->GetPixel(indexTemp) + 1.0);
115117
}
116118
}
117119
}

0 commit comments

Comments
 (0)