Comparing compression in different formats: Difference between revisions
(Created page with "This is a comparison of a small selection of compression methods used in georeferenced raster imagery. The intention is to find which method gives the best "bang for buck" - t...") |
No edit summary |
||
Line 1: | Line 1: | ||
This is a comparison of a small selection of compression methods used in georeferenced raster imagery. The intention is to find which method gives the best "bang for buck" - the best quality for the smallest file size. The measure for quality is [SSIM] | This is a comparison of a small selection of compression methods used in georeferenced raster imagery. The intention is to find which method gives the best "bang for buck" - the best quality for the smallest file size. The measure for quality is [https://en.wikipedia.org/wiki/Structural_similarity SSIM - structural similarity index] , which is a perception-based model to calculate the difference between two images. | ||
We compare a lossless master image to a compressed image and measure the SSIM using | We compare a lossless master image to a compressed image and measure the SSIM using Python package 'skimage'. This is repeated with a range of quality values for the compressed images. | ||
This should give an indication of which method is most efficient. In addition, it will indicate the quality value which will achieve the same SSIM across the compression methods. | This should give an indication of which method is most efficient. In addition, it will indicate the quality value which will achieve the same SSIM across the compression methods. | ||
Note that each of the file formats use a different scale for the input "quality" parameter. We include a wide range of the legal values from each of the formats, so this difference should not matter. | Note that each of the file formats use a different scale for the input "quality" parameter. We include a wide range of the legal values from each of the formats, so this difference should not matter. |
Revision as of 11:38, 21 June 2022
This is a comparison of a small selection of compression methods used in georeferenced raster imagery. The intention is to find which method gives the best "bang for buck" - the best quality for the smallest file size. The measure for quality is SSIM - structural similarity index , which is a perception-based model to calculate the difference between two images.
We compare a lossless master image to a compressed image and measure the SSIM using Python package 'skimage'. This is repeated with a range of quality values for the compressed images. This should give an indication of which method is most efficient. In addition, it will indicate the quality value which will achieve the same SSIM across the compression methods.
Note that each of the file formats use a different scale for the input "quality" parameter. We include a wide range of the legal values from each of the formats, so this difference should not matter.