1. A method for millimeter-wave imaging comprising: positioning a portion of an extended Hadamard mask within an opening of a template with an opening of size p×q, the extended Hadamard mask having a size (2p−1)×(2q−1) wherein p and q are prime numbers, the Hadamard mask receiving millimeter waves from a source; transmitting a portion of the millimeter waves through transmit pixels in the Hadamard mask; reflecting a portion of the millimeter waves by reflect pixels in the Hadamard mask; focusing the transmitted portion of the millimeter waves; and receiving the focused millimeter waves at a detector.