Skip to content

Commit

Permalink
Merge pull request #4967 from hjmjohnson/revert-failed-patchset-dicom…
Browse files Browse the repository at this point in the history
…-spacing

Revert "BUG: Reduce tolerance for same slice checks"
  • Loading branch information
thewtex authored Nov 21, 2024
2 parents 780f2e1 + a04c300 commit ac021d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/IO/ImageBase/include/itkImageSeriesReader.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "itkMetaDataObject.h"
#include <cstddef> // For ptrdiff_t.
#include <iomanip>
#include "itkImageBase.h"

namespace itk
{
Expand Down Expand Up @@ -433,8 +432,9 @@ ImageSeriesReader<TOutputImage>::GenerateData()
SpacingScalarType dirNnorm = dirN.GetNorm();

if (this->m_SpacingDefined &&
std::abs(dirNnorm - outputSpacing[this->m_NumberOfDimensionsInImage]) >
itk::DefaultImageCoordinateTolerance) // either non-uniform sampling or missing slice
!Math::AlmostEquals(
dirNnorm,
outputSpacing[this->m_NumberOfDimensionsInImage])) // either non-uniform sampling or missing slice
{
nonUniformSampling = true;
spacingDeviation = itk::Math::abs(outputSpacing[this->m_NumberOfDimensionsInImage] - dirNnorm);
Expand Down

0 comments on commit ac021d0

Please sign in to comment.