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 are generated as sensing matrices based on a compressed sensing theory. A spatial light modulator (SLM) 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 after passing through the object under test is detected to obtain multiple measured values. The grayscale masks and the measured values obtained from the electromagnetic waves modulated by each grayscale mask are implemented to execute an image reconstruction algorithm to reconstruct an image of the object under test. |