Method for compressing and decompressing single picture
A compression method, a single image technology, applied in image communication, color TV with pulse code modulation, television, etc., can solve problems such as slow compression, high frequency component attenuation, JPEG2000 blurring and distortion, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0130] Create at least one flag array, divide the pixels of the scanned image into N categories according to a preset method and store them in at least two arrays, and record the storage position of each pixel in the flag array.
[0131] The specific recording method of the flag array depends on the specific situation, and the principle is to save storage space. For example, if it is divided into two categories, a BOOL array can be used to sequentially store the classification positions of each pixel. For example, if the i-th element of the array is 0, it means that the i-th pixel in the scanned image is stored in the order of first row and second column. In one category, if the i-th element of the array is 1, it means that the i-th pixel in the scanned image is stored in the second category in the order of first row and second column. The reverse is also possible, that is, the i-th element of the array is 1, which means that the i-th pixel in the scanned image is stored in th...
Embodiment 2
[0144] figure 2 It is a flow chart of the method for compressing color scanned images according to the present invention, such as figure 2 As shown, the method for compressing the color scanned image described in this embodiment includes:
[0145] (1) Read the r, g, b value of each pixel in the image, by the formula E=R 2 +G 2 +B 2 , to calculate the energy value of each point. Find the maximum value max_E and the minimum value min_E of the energy value in the image, and calculate their mean_E=(max_E+min_E) / 2.
[0146] (2) Use mean_E as the threshold, scan the original image in the order of row first and then column, and divide it into two categories, that is, two one-dimensional arrays A1 and A2, the data composition style of A1 and A2 is GBRGBRBR..., and obtain the value at the same time Flag1 is a one-dimensional flag array of 0 and 1, such as image 3 shown.
[0147] (3) Classify the classification results A1 and A2 with mean_E as the threshold in step (2) again acc...
Embodiment 3
[0157] Correspondingly, this embodiment provides a method to decompress the compressed file generated in Embodiment 2, and the overall schematic diagram of compression and decompression is as follows Figure 5 shown.
[0158] Figure 6 It is a flow chart of the method for decompressing color scanned images according to the present invention, as Figure 6 As shown, the scanned image decompression method described in this embodiment includes:
[0159] (1) Read in sequentially from the compressed image (according to the order of compression) the length, width, number of color bits of the original image, the length of each flag array, the length and data of the compressed flag array zip_flag, and the number of each type of array Original length, transformed length, DWT transformation series and low frequency component data of Y, U and V.
[0160] (2) The compressed flag array zip_flag is used as input for arithmetic coding decompression, and flag1, flag2, and flag3 are obtained...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com