🎚️ EP02_03 Simulator: Quantization and Bit Depth
q = round(p · (L − 1) / 255)
Adjust the number of output bits (b) to observe the mapping of the 256 continuous gray levels to L = 2ᵇ discrete quantization levels.
8
Discrete levels (L = 2ᵇ): 256 |
Values shown: 0 a 255
Original (8 bits → 0…255)
Quantized (Range 0…255)
Output bits = 8 → 256 levels (original values preserved)
Description: Figure 2.14: EP02_03 Simulator: Quantization and Bit Depth (Reduction of Gray Levels)