You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -108,10 +108,10 @@ int main(int argc, char **argv)
108
108
//We enter this loop only if maxStep >=2.
109
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
110
110
//We repeat maxStep - 1 times and not maxStep times, because otherwise, index = indexNext, and we would increment indexNext twice
111
-
index[0] = index[0] + std::round(dx/maxStep);
112
-
index[1] = index[1] + std::round(dy/maxStep);
113
-
index[2] = index[2] + std::round(dz/maxStep);
114
-
outImage->SetPixel(index, outImage->GetPixel(index) + 1.0); //increment the number of streamlines passing through the voxel with this index
outImage->SetPixel(indexTemp, outImage->GetPixel(indexTemp) + 1.0); //increment the number of streamlines passing through the voxel with the index indexTemp
0 commit comments