Skip to content

Commit

Permalink
Merge pull request #112 from Gregoire-V/BugFixTODEstimatorOrientation
Browse files Browse the repository at this point in the history
Bug fix TOD orientation
  • Loading branch information
Florent2305 authored Jun 7, 2024
2 parents 185203f + 9b5f3b4 commit 009748f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Anima/diffusion/odf/tod_estimator/animaTODEstimatorImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,20 @@ 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 009748f

Please sign in to comment.