Compress image on Cell BroadBand Engine
The scope of the project is loosy compression of black and white images by dividing the image into blocks and use a restricted palette of colors representing each block.
The input image will be divided into disjoint blocks of N x N size to be represented using maximum K colors. Each pixel of the input block will be approximated using one of the K color palette. For each block there will be a different palette color depending on the content of the block.
For each block we calculate the minimum and maximum. The K colors from the palette will be selected as follows:
⦁ one of the colors will be the minimum of the block;
⦁ one of the colors will be the maximum in the block;
⦁ the other K-2 colors will be chosen so that the difference between any two consecutive colors to be the same (the interval between min and max is broken in K-1 intervals)
1 freelancer licitează în medie 26€ pentru acest proiect
Hello. This looks like a very simple algorithm and easy to implement. However, I don't speak Rumanian. Thank you very much.