nnUNet icon indicating copy to clipboard operation
nnUNet copied to clipboard

Anisotropic image issue (code)

Open 89douner opened this issue 2 years ago • 0 comments

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]

89douner avatar Aug 23 '22 00:08 89douner