MedicalNet
MedicalNet copied to clipboard
Do you add noise on the background of input images in function '__itensity_normalize_one_volume__'?
def __itensity_normalize_one_volume__(self, volume):
pixels = volume[volume > 0]
mean = pixels.mean()
std = pixels.std()
out = (volume - mean)/std
out_random = np.random.normal(0, 1, size = volume.shape)
out[volume == 0] = out_random[volume == 0]
return out
Is it necessary in the test phase?
Following up on this question -- I don't understand the adding of noise either.
me too