Skip to content

Commit 7023720

Browse files
author
Gregoire Ville
committed
Correction of an orientation error in the TODs estimated with animaTODEstimator
1 parent 185203f commit 7023720

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Anima/diffusion/odf/tod_estimator/animaTODEstimatorImageFilter.hxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ namespace anima
8484
for (int i = 0; i < nbPoints; i++)
8585
{
8686
DirType dir = GetFiberDirection(i, fiber);
87+
if(output->GetDirection()[0][0] > 0)
88+
dir[0] *= -1;
89+
if(output->GetDirection()[1][1] < 0)
90+
dir[1] *= -1;
91+
if(output->GetDirection()[2][2] < 0)
92+
dir[2] *= -1;
93+
94+
8795
PointType point = GetCenterVoxel(i, fiber);
8896
itk::Index<3> index;
8997

0 commit comments

Comments
 (0)