A camera sensor converts the light intensity of a pixel into equivalent digital value. The digital value is directly proportional to the light intensity of a pixel and hence has a linear relationship. However, a human eye perceives the images as a logarithmic function of intensity instead of a linear function. If the images from a camera sensor are directly displayed on a display device, then the scene will appear unnatural because of the differences between the camera sensor and human eye perception. To compensate this, the image from the camera sensor goes through the gamma correction.