{'fraction_non_alphanumeric': 0.025157232704402517, 'fraction_numerical': 0.010062893081761006, 'mean_word_length': 4.852941176470588, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Effect of Different Block Sizes on the Quality of JPEG-like Compressed Image

Discrete Cosine Transform (DCT) is a common method in image compression processing. In this method, the original image is first divided into several blocks for processing, and then the information of each pixel is converted to frequency coefficients, and a certain high frequency component is discarded, thus the image is lossy compressed. In this paper, the effect of block sizes on the quality of decompressed image is studied, so as to find out the optimal block sizes. Firstly, we make a theoretical analysis, and then verify my analysis results through experiment. In the experiment, the block sizes range from 1x1 to 512x512. We use different metrics to evaluate the image quality, including MSE, PSNR and SSIM.