A new pixel value in the depth map after smoothing is calculated using the trilinear interpolation in all the pixels belonging to the same block.
A pixel value is obtained from the density in the position of the pixel in the pixel grid.