Pixel points of each image were firstly placed in one array. Masked images (as shown in figure 6) were obtained by setting MRI image pixels corresponding to zero intensity pixels in the brain mask as zero. Then, histogram of masked images was plotted (as in figure 7) and undersampled (as shown in figure 8).