back home
about
The level slice algorithm indexes the image with fewer colors. The number of colors can be changed by the user.
algorithm
level slice function:
new_pixel=floor ( new_no_of_colors*pixel/no_of_colors ) * no_of_colors / (new_no_of_colors-1)
example:
'pipes' image |
4 levels slice | 8 levels slice |
|
|
|
back home