1. An imaging system comprising: a set of detector pixels connected to a set of output channels, wherein there are fewer output channels than detector pixels; and a processor configured to: receive raw data from the output channels; compute a preliminary image from the raw data using compressed sensing; compute a support of the preliminary image to provide a support constraint; compute a final image from the raw data using maximum likelihood estimation combined with the support constraint; and provide the final image as an output.