Skip to content

LBG (Linde–Buzo–Gray) Vector quantization compression and decompression implementation for gray-scale images

Notifications You must be signed in to change notification settings

KareemMAX/VectorQuantization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VectorQuantization

LBG (Linde–Buzo–Gray) Vector quantization compression and decompression implementation for gray-scale images. It was an assignment for the Compression and Information theory course in Cairo University Faculty of Computers and Artificial Intelligence.

How to use:

To compress an image you can run the program with the following arguments:

java -jar vectorquantization.jar -c [filename] [vector size] [code book bit count]

For decompression, you can use:

java -jar vectorquantization.jar -d [filename]

Examples:

Using 2x2 vector size and 16 code book size (4 bits)

Input:

Sample 1 input
Size: 58.9 KB

Output:

Sample 1 output
Compressed file size: 19.6 KB

Input:

Sample 2 input
Size: 46.3 KB

Output:

Sample 2 output
Compressed file size: 19.6 KB

About

LBG (Linde–Buzo–Gray) Vector quantization compression and decompression implementation for gray-scale images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages