One of the most well-known techniques to drastically reduce the number of sensors is the single-pixel camera. At the heart of it is a digital micromirror array (DMD), where the orientation of the mirrors can be controlled by a random number generator. One random configuration of the micro-mirrors represents one inner product between the image and the random binary vector. For getting more compressed samples, more such random configurations are generated. While modifying the single-pixel camera for color imaging, the Bayer filter was incorporated. The Bayer pattern is imprinted in the DMD. The random number generator separately controls the red, green, and blue mirrors. When the scene is projected, there is a rotating color filter that projects through either of the red, green, and blue filters. When the scene is being filtered through the blue channel, only the corresponding (blue) mirrors of the DMD are flipped. The same happens for the other two channels.