Embodiments of 3D imaging systems that use a multifunctional, nano structured metalens to replace the conventional microlens array in light field imaging are disclosed. The optical focusing properties of the metalenses provided by gradient metasurface optical elements. The gradient metasurfaces allow the properties of the elements of the metalens array to be changed by tuning the gradient metasurfaces.