Image compressionProgram | Fall 2014
This program is meant to compress images that are predominantly white space into three images, an occupancy grayscale map, a hash image, and a color map, as well as convert the images back from the compressed form to the original image with no loss. For the example images on the right, the original (at the top) had a size of 49,167 bytes, and the 3 compressed images (seen below the original) have sizes of 2,059 bytes, 377 bytes, and 5,056 bytes making the compressed version total 7,492 bytes, which is only 15.2% the size of the original image. This program was done as part of Data Structures, and the only provided code was the image read and write functions. |
main.cpp | |
File Size: | 12 kb |
File Type: | cpp |
image.h | |
File Size: | 2 kb |
File Type: | h |
image.cpp | |
File Size: | 8 kb |
File Type: | cpp |