You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ConvertImageND.cxx, the computation of sz is wrong due to a misplaced parenthesis.
It changes the dimension by one in case of small spacing.
The change is small: sz[i] = static_cast<size_t>((0.5 + sz[i] * m_ImageStack.back()->GetSpacing()[i]) / vox[i]);
should be sz[i] = static_cast<size_t>((0.5 + sz[i] * m_ImageStack.back()->GetSpacing()[i] / vox[i]));
I can create a PR if needed
The text was updated successfully, but these errors were encountered:
In ConvertImageND.cxx, the computation of sz is wrong due to a misplaced parenthesis.
It changes the dimension by one in case of small spacing.
The change is small:
sz[i] = static_cast<size_t>((0.5 + sz[i] * m_ImageStack.back()->GetSpacing()[i]) / vox[i]);
should be
sz[i] = static_cast<size_t>((0.5 + sz[i] * m_ImageStack.back()->GetSpacing()[i] / vox[i]));
I can create a PR if needed
The text was updated successfully, but these errors were encountered: