Digitally, an image is represented in terms of pixels. Those pixels can be expressed further as in terms of bits. As an example, a pixel in 256-level grayscale image is comprised of 8 bits. So that we can have 8 bit planes for a single grayscale image. A bit plane…