Skip to content

Commit 8decfcf

Browse files
hjmjohnsondzenanz
authored andcommitted
STYLE: Prefer itk::Math::abs for consistency.
1 parent 74379a6 commit 8decfcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/itkMGHImageIO.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ MGHImageIO ::GetOrientation(itk::Matrix<double> directions)
771771
const double sag = directions(0, cAxes); // LR axis
772772
const double cor = directions(1, cAxes); // PA axis
773773
const double ax = directions(2, cAxes); // IS axis
774-
if (fabs(sag) > fabs(cor) && fabs(sag) > fabs(ax))
774+
if (itk::Math::abs(sag) > itk::Math::abs(cor) && itk::Math::abs(sag) > itk::Math::abs(ax))
775775
{
776776
if (sag > 0)
777777
{
@@ -783,7 +783,7 @@ MGHImageIO ::GetOrientation(itk::Matrix<double> directions)
783783
}
784784
continue;
785785
}
786-
if (fabs(cor) > fabs(ax))
786+
if (itk::Math::abs(cor) > itk::Math::abs(ax))
787787
{
788788
if (cor > 0)
789789
{

0 commit comments

Comments
 (0)