Multidimensional optical sensing and imaging for displays, computational imaging, optical security, and healthcare