File Exchange

image thumbnail

simple compressed sensing example

version 1.0 (2.51 KB) by

Illustrative 'toy' example of compressed sensing applied to image data.

6 Ratings



View License

MATLAB implementation of compressive sensing example as described in R.Baraniuk, Compressive Sensing, IEEE Signal Processing Magazine, [118], July 2007. The code acquires 250 averaged random measurements of a 2500 pixel image. We assume that the image has a sparse representation in the DCT domain (not very sparse in practice). Hence the image can be recovered from its compressed form using basis pursuit.

Comments and Ratings (7)

Qinxue Li

Helpfull,thank you very much,sir.

ashkan abbasi

Stuart Gibson

Stuart Gibson (view profile)

Roy, the matrix equation is solved using the MATLAB toolbox l_1-MAGIC: Recovery of Sparse Signals via Convex Programming v1.11 by J. Candes and J. Romberg, Caltech, 2005. Please refer to the authors for details. p.s. This reference was provided in my code comments. You can download the MATLAB toolbox l_1-MAGIC software from here:


roy (view profile)

No information on l1 toolbox. How do you actually reconstruct.

Pedro Dreyer

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video