Introduction - If you have any usage issues, please Google them yourself
For a 24-bit color image (Lena.bmp), statistics all used colors in this image, design the median-cut algorithm to generate a lookup table. And convert the 24-color image to 8-bit index image, compare the difference between them.