A compressed sensing imaging method and a compressed sensing imaging system are provided. In the method, multiple grayscale masks having multiple elements with grayscale values represented by floating-point values or continuous values are generated as sensing matrices based on a compressed sensing theory. A spatial light modulator is controlled to modulate an electromagnetic wave projected on an object under test according to the grayscale value of each element in each grayscale mask, and a physical property of the electromagnetic wave passing through the object under test is detected to obtain multiple measured values. An image reconstruction algorithm is executed to reconstruct an image of the object under test by using the grayscale masks and the measured values obtained from the electromagnetic wave modulated by each grayscale mask. |