International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 53 - Number 9 |
Year of Publication: 2012 |
Authors: Redjimi Mohammed |
10.5120/8451-2248 |
Redjimi Mohammed . A Multi-agent System for Image Compression. International Journal of Computer Applications. 53, 9 ( September 2012), 38-45. DOI=10.5120/8451-2248
We describe, in this paper, a multi-agent system (MAS) dedicated to the compression of digital images. An Image may be considered as a matrix of N lines and of M columns, that is to say a size of NxM pixels. To each line, we associate an agent. Our approach is inspired from the RLE (Run Length Encoding) method but instead of storing the occurrences of the pixels having a same value followed by the value of these pixels, we use a labeling table which contains all the values of the pixels of the image. We obtain a compressed image as a list of color labels followed by the number of successive occurrences of this color. We observe, that, an image is made up of about thirty different colors approximately, this mean that the label of color can be coded on five bits. This method is very effective for images where the color is coded on several bytes. The algorithm is as follow: each agent traverses the image line with which it is associated by seeking for each detected color the number of its successive occurrences. The agent thus draws up a set of lists for each color found including the number of its occurrences. All the other agents carry out these tasks in parallel. It is possible to obtain images compressed without or with loss of information according to the desired quality of the compressed image. This approach allows a very great improvement of the performances in storage capacity of information (the compressed images thus obtained occupy less memory space) and in execution time (the parallel execution allows very high accelerations of the algorithms).