Monochrome and color sensors

Your typical smartphone camera has a color sensor. However, that is basically a monochrome sensor with a Bayer filter in front of it.

Debayering

import matplotlib.pyplot as plt
import numpy as np
Z = np.random.random((50, 50))
plt.imshow(Z)
plt.show()