nnUNet
nnUNet copied to clipboard
Anisotropic image issue (code)
Hi,
I have two questions about anisotropic code.
has_aniso_spacing = target[worst_spacing_axis] > (self.anisotropy_threshold * max(other_spacings))
has_aniso_voxels = target_size[worst_spacing_axis] * self.anisotropy_threshold < min(other_sizes)
Q1. Paper mentioned that "For anisotropic images (maximum axis spacing ÷ minimum axis spacing > 3)" But, when I checked the code ('has_aniso_spacing'), there is max function. Shouldn't the max function be changed to the min function?
Q2. Is the formular for has_aniso_voxels right? I mean, shouldn't the code be changed as below?
has_aniso_voxels = min(other_sizes) * self.anisotropy_threshold > target_size[worst_spacing_axis]