Reconstruction of 3D greyscale image for reservoir rock from a single image based on pattern dictionary