A method for image compression coding is provided. According to the
method, a plurality of codebooks is created according to the correlation
between pixels, and the quantization value of each state is determined by
dynamically looking up the codebooks. Therefore, the present invention
not only enhances the image compression ratio but also improves the image
compression quality.