Skip to content

Commit

Permalink
Merge pull request #448 from dkuegler/fix/sqrt-in-conform
Browse files Browse the repository at this point in the history
Fix the sqrt usage in conform.py
  • Loading branch information
m-reuter committed Feb 6, 2024
2 parents f2fd3d5 + ea287ad commit 04be337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FastSurferCNN/data_loader/conform.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def check_affine_in_nifti(
vox_size_header = header.get_zooms()

# voxel size in xyz direction from the affine
vox_size_affine = (img.affine[:3, :3] * img.affine[:3, :3]).sum(0).sqrt()
vox_size_affine = np.sqrt((img.affine[:3, :3] * img.affine[:3, :3]).sum(0))

if not np.allclose(vox_size_affine, vox_size_header, atol=1e-3):
message = (
Expand Down

0 comments on commit 04be337

Please sign in to comment.