Reducing the number of voxels in the kernel by removing outliers