MedicalNet icon indicating copy to clipboard operation
MedicalNet copied to clipboard

Do you add noise on the background of input images in function '__itensity_normalize_one_volume__'?

Open joe1chief opened this issue 5 years ago • 2 comments

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?

joe1chief avatar Sep 15 '19 12:09 joe1chief

Following up on this question -- I don't understand the adding of noise either.

jaivardhankapoor avatar Jun 14 '22 09:06 jaivardhankapoor

me too

JAYatBUAA avatar Feb 23 '23 21:02 JAYatBUAA