Home
Projects
Experience
Updates
Home
Projects
Experience
Updates
Lloyd Max Quantizer
May 2023
Launch
Implemented a Lloyd-Max quantizer for images, allowing compression by minimizing the mean-square error between an image and it's quantized version given a required number of bits per pixel.
Itereative equations used in the algorithm:
Decision Boundary Update:
\( x_i = \frac{y_i+y_{i+1}}{2} \)
Representative Value Update:
\( y_i = \frac{\int_{x_{i-1}}^{x_i} f(x) \cdot x \, dx}{\int_{x_{i-1}}^{x_i} f(x) \, dx} \)
Screenshots: