Skip to content

Commit

Permalink
Correction of an orientation error in the TODs estimated with animaTO…
Browse files Browse the repository at this point in the history
…DEstimator
  • Loading branch information
Gregoire Ville committed Apr 29, 2024
1 parent 185203f commit 7023720
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ namespace anima
for (int i = 0; i < nbPoints; i++)
{
DirType dir = GetFiberDirection(i, fiber);
if(output->GetDirection()[0][0] > 0)
dir[0] *= -1;
if(output->GetDirection()[1][1] < 0)
dir[1] *= -1;
if(output->GetDirection()[2][2] < 0)
dir[2] *= -1;


PointType point = GetCenterVoxel(i, fiber);
itk::Index<3> index;

Expand Down

0 comments on commit 7023720

Please sign in to comment.