1. A system for foveated compressive sensing, the system comprising: one or more processors and a memory, the memory being a non-transitory computer-readable medium having executable instructions encoded thereon, such that upon execution of the instructions, the one or more processors perform operations of: receiving an input image f of a scene; initializing a measurement matrix; performing global measurements of the input image f; reconstructing a lower resolution image of the scene; extracting task salient regions from the low resolution image; estimating a task-specific operator and detecting regions-of-interest (ROI) based on the task salient regions; generating an ROI-adapted and foveated measurement matrix; performing local measurements on task-relevant ROIs; and reconstructing a higher resolution image of the scene to allow for identification of objects in the ROI.