JPEG can use lossy compression to remove redundant image datadisk spaceGet betterImage quality。Moreover, JPEG is a very flexible format with adjustmentimage qualityWhich allows differentCompression ratioFor example, file compression supports multiple compression levels. The compression ratio is usually 10:1 to 40:1. The higher the compression ratio, the lower the image quality;On the contrary, the smaller the compression ratio, the higher the image quality.For the same image, the file stored in JPEG format is 1/10~1/20 of other types of files, usually only dozensKB,mass loss It is small and can hardly be seen.JPEG format mainly compresses high-frequency information, and retains color information well, which is suitable for Internet applications;It can reduce image transmission time and support 24 bitsTrue color;It is also widely used in images requiring continuous tone.[2]
JPEG format can be divided into standard JPEG, progressive JPEG and JPEG2000.[2]
1. Standard JPEG format;This type can only be downloaded from top to bottomDisplay Image, until all the image data are downloaded, you can see the full picture of the image.[2]
2. Progressive JPEG;When downloading a web page, this type first presents the rough appearance of the image, then slowly presents the complete content. Moreover, documents saved in progressive JPG format are smaller than those saved in standard JPG format. Therefore, if you want to use images on a web page, you can use this format more often.[2]
3. JPEG2000;It is a new generation of image compression method, with higher compression quality, and can improve theWireless transmissionIt is often caused by unstable signalMosaic phenomenonAnd disordered location to improve the transmission quality.[2]
performance
Announce
edit
JPEG performance, using quality andBit rateBy comparison, it is quite superior.Its advantages are:[4]
It supports a very high compression rate, so the download speed of JPEG images is greatly accelerated;[4]
It can easily process 16.8M colors, and can reproduce full-color images well;[4]
In the process of image compression, the image format can be freely selected between the minimum file size (minimum image quality) and the maximum file size (maximum image quality);[4]
The file size of this format is relatively small and the download speed is fast, which is conducive to transmission when the bandwidth is not "rich".[4]
The disadvantages of JPEG are:[4]
Not all browsers support inserting various JPEG images into web pages;[4]
When compressing, the quality of the image may be lost, so it is not suitable to use this format to display high-resolution images.[4]
JPEG is impressive for its low complexity and long usage time.The following are the criteria for measuring the compression coding effect of images of 8 bit/pixel moderately complex pictures:[4]
0.25 bit/pixel~0.5 bit/pixel;Medium to good, enough to meet some applications;[4]
0.5 bit/pixel~0.75 bit/pixel;Good~very good, enough to meet many applications;[4]
0.75 bit/pixel~1.5 bit/pixel;Excellent enough to meet most applications;[4]
1.5 bits/pixel~2.0 bits/pixel;It is difficult to distinguish from the original image, enough to meet most applications;[4]
>2.0 bits/pixel;Almost perfect, meeting almost all applications.[4]
Where bit/pixel is defined as compressed image (includingchromaComponent) divided by the number of samples of the luminance component.[4]
Compression standard
Announce
edit
JPEG standard
JPEG was established in 1986, and the standard was formally adopted in 1992Official nameIt is "information technology digital compression coding of continuous tone still images".stayJPEG algorithmIncluding 4 typesOperation mode, one of which is DPCM basedlossless compressionThe other three are lossy compression algorithms based on DCT.The key points are as follows:[3]
·Sequential coding mode based on DCT.According to the principle of DCT transform, the image data is compressed and encoded from top to bottom and from left to right.When the information is transmitted to the receiving end, it is first decoded according to the above rules to restore the image.There is information loss in this process, so it is a lossImage compression coding。[3]
Progressive coding mode based on DCT.It is also based on DCT transformation, but its scanning process is different.It scans an image for several timesdata compression。The description process adopts the method of gradual accumulation from coarse to fine.When restoring an image, you will first see the general situation of the image on the screen, and then gradually refine it until it is completely restored.[3]
Hierarchical coding mode based on DCT.This mode is based onImage resolutionFor referenceimage encodingOf.It starts from the low resolution and gradually improves the resolution until it is the same as the original image resolution.image reconstruction The same is true when.It can be seen that its effect is similar to the progressive coding mode based on DCT, but its processing is more complex and the compression ratio obtained is also higher.[3]
Since the JPEG standard was adopted in 1992, it has achieved great success in just a few years due to its excellent quality.However, with the continuous expansion of multimedia applications, traditional JPEGcompression technique It has been unable to meet people's requirements for multimedia video materials.JPEG uses discrete cosine transform to compress the image into small pieces of 8 × 8, and then put them into the file in turn. This algorithm realizes compression by discarding frequency information, so the higher the compression rate of the image, the more frequency information is discarded.In extreme cases, JFEG images only retain the basic information reflecting the image appearance, and fine image details are lost. For this reason, JPEG has developed a new generation of still imagesCompression standardJPEG2000。[3]
The biggest difference between JPEG2000 and traditional JPEG is that it abandons the block coding method dominated by discrete cosine transform (DCT) adopted by JPEG, and adoptswavelet transform The main purpose of the multi resolution coding method is to extract the frequency components of the image.Wavelet transformAn image is transformed and encoded as a whole line, and therelevance, achieving better compression coding effect.[3]
JPEG2000 has the following characteristics:[3]
1. High compression ratio
Because onDiscrete wavelet transformIn the algorithm, the image can be converted into a series of "wavelets" that can store pixel modules more effectively. Therefore, the compression ratio of JPEG2000 format images can be increased by 10%~30% on the basis of current JPEGs, and the compressed images appear more delicate and smooth, which is a feature of Internet and remote sensingimage transmission The field has a wide range of applications.[3]
2. Lossless compression and lossy compression
JPEG2000 provides lossless and lossy compression methods. Lossless compression is necessary in many fields, such as medical images and archive imagesquality requirementThe situation is relatively high.At the same time, JPEG2000 provides embeddedBitstream, allowing progressive decompression from lossy to lossless.[3]
Now JPEG images on the network are downloaded as "blocks", so they can only be displayed one line at a time. JPEG2000 format images are supportedProgressive transmission, transmit firstImage contourData, and then gradually transfer other data to continuously improve image quality.The Internet, printers and image documents are the main applications of this feature.[3]
This feature can specify regions of interest on the image, and then specify these regions during compressioncompression quality, or specify decompression requirements for certain areas during recovery.This is because wavelet transformFrequency domainIn order to completely restore a part of the image, it does not need all the codes to be accurately reserved, as long as there is no error in the corresponding part of the code.In this way, we can easily highlight the key points.[3]
5. Random access and processing of code stream
This feature allows the user to randomly defineRegion of InterestTo make the image quality of this area higher than that of other image areas. The random processing of the code stream allows the user to rotate, move, filter andfeature extraction And so on.[3]
JPEG2000 provides fault tolerance measures in the code stream, such as wireless transmissionError codeVery highcommunication channel In order to achieve a certain quality of reconstructed images, fault tolerance measures must be taken for the transmitted images.[3]
8. Content based description
Image documents, image indexing, and search inimage processingMPEG7 is an important field that supports users to search various "materials" they are interested in quickly and effectivelyinternational standard。Content based description is one of the characteristics of JPEG2000 compression system.[3]
application
Announce
edit
JPEGcompression ratioIt is the highest of all image file formats.It usesLossy compressionTo remove theredundant data, but there is some distortion.Due to its high compression efficiency and standardization requirements, it has been widely used in color fax, still imagesTeleconferencing, printing andNews picturesTransmission of.Since various browsers support JPEGImage format, so it is also widely used for image preview and productionHTMWebpage.[5]