I have been studying quantization in the context of digital image processing. I referred to the 4th edition of the book titled Digital Image Processing by Rafael C. Gonzalez and Richard E. Woods.
In the book, the intensity quantization levels are defined as \$L=2^{k}\$ where k is an integer.
Why are the quantization levels an integer power of two? Why not just any integer in general?
This paragraph is taken from the book:
I proceeded to solve a homework problem, which I found online, using the concepts, and the problem as well as its solution are given below:
The bits per pixel (or bits per picture element) I believe are found using \$L=2^{n}\$, with n taking the place of the integer k as given in the book. n comes out to be 3.32 bits per pixel which is not an integer.
Isn't it a contradiction?