Digital images are represented as a finite set of digital values called pixels arranged in a grid. There are several types of digital images including grayscale, RGB color, and binary. Digital image processing involves tasks like image enhancement, restoration, compression, and analysis. The key steps in digital image processing are image acquisition, representation and description, segmentation, recognition and display. The human visual system perceives brightness in a logarithmic fashion and can adapt to a wide range of light intensities. Proper sampling and quantization are required to convert a natural image into a digital image without loss of information.