Three-dimensional integral imaging with flexible sensing