CN103297773B - Based on the method for encoding images of JND model - Google Patents
Based on the method for encoding images of JND model Download PDFInfo
- Publication number
- CN103297773B CN103297773B CN201310164495.7A CN201310164495A CN103297773B CN 103297773 B CN103297773 B CN 103297773B CN 201310164495 A CN201310164495 A CN 201310164495A CN 103297773 B CN103297773 B CN 103297773B
- Authority
- CN
- China
- Prior art keywords
- dct
- jnd
- image
- coefficient
- inverse
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Patent of the present invention relates to a kind of method for encoding images based on JND model, complete after the dct transform of image, the module being made up of quantification, inverse quantization reconstruct, JND threshold estimation and four parts of enhancement quantized device further increases quantization step, remove visual redundancy, in the situation that keeping visual quality of images constant, reduce compression bit rate, improve code efficiency. The method can accurately be followed the tracks of according to user the quality of compressed image to the needs of compression bit rate, provide accurate JND threshold value to design and quantize enhancing value. In addition, the improved JND threshold estimation of the present invention method makes coding side not need to increase extra overhead bit, and the code stream that the encoder of design produces keeps the compatibility with JPEG coding standard.
Description
Technical field
Patent of the present invention relates to a kind of based on JND (JustNoticeableDifference, JND) modelMethod for encoding images, relates in particular to a kind of method for encoding images based on visual characteristic.
Background technology
In image is processed and transmitted, Joint Photographic Experts Group is a kind of widely used image storage and transformat,It is International Organization for Standardization subordinate's the JPEG(JointPhotographic of JPEGExpertsGroup) JPEG of formulating.
Joint Photographic Experts Group coding method as shown in Figure 1, mainly comprised image input, dct transform, quantification withAnd entropy coding module. Although this coding techniques has obtained the extensive accreditation of industry, it is based upon Shannon letterOn breath opinion basis, taking classical sets opinion as instrument, describe information source with probability statistics model, it compresses thoughtStill mainly rest on the aspect of Digital Signal Processing, mainly start with from removing data redundancy aspect, less consideration is lookedRedundancy properties in feel, the raising of code efficiency mainly depends on the skill that significantly increases to cost with computational complexityThe fine setting of art details. Along with the progressively development of Image Coding standard, promote compression effect to improve computation complexityThe room for improvement of rate is more and more less, and this has become the root making a breakthrough in restriction Vision information processing fieldThis bottleneck, the urgently innovation in theory and method.
The basic goal of coding is can provide high-quality visual effect in reducing code check, a kind of directly perceivedEfficient coding thinking should be from the mankind's visual characteristic, under the condition that keeps visual quality as much as possibleReduce code check. In recent years, along with to human vision research gradually deeply, it is found that the angle from human visionDegree sets out, and will have very large compression stroke. JND model is to set up perception by exploring all kinds of visual signaturesThe threshold value of error, distinguishes that can perceive and the not perceived signal of people, and then it is superfluous to remove visually-perceptibleMore than. When image change value is during lower than threshold value, human eye will can not perceive this variation. In order to overcome current imageThe shortcoming of coding standard, patent of the present invention in conjunction with JND algorithm, through adjustment after JND models coupling to figureIn picture cataloged procedure, improve code efficiency.
Summary of the invention
Patent of the present invention proposes a kind of method for encoding images based on JND model, the JND after adjustingModels coupling, in quantizing process, increases quantify strength, removes more visual redundancy, in equal vision matterUnder amount, improve code efficiency, reduced compression bit rate, and the compatibility of maintenance and JPEG coding standard.
A kind of method for encoding images based on JND model of the present invention, is characterized in that: image input module is provided,Dct transform device, quantizer, inverse DCT, DCT inverse transform block, JND computing module, enhancement quantized deviceAnd entropy coding module is undertaken by following flow process:
Raw image files is read by image input module and image is carried out to piecemeal;
Dct transform device carries out DCT direct transform and exports DCT coefficient each 8x8 piecemeal of input picture;
The quantization step Q that quantizer meets Joint Photographic Experts Group to DCT coefficients by using quantizes in advance, and amountChange result and export to inverse DCT;
Inverse DCT uses identical quantization step Q to complete the coefficient of inverse quantization work acquisition reconstruct;
DCT inverse transform block is carried out the image of DCT inverse transformation acquisition reconstruct to the coefficient of reconstruct;
JND computing module is to the non maximum JND threshold value of the image calculation human eye of reconstruct;
Enhancement quantized device is according to the △ Q that gains in strength of JND threshold calculations quantization step, and obtains final enhancingQuantization step QstepDCT coefficient is carried out to the enhancement quantized based on visual characteristic;
After entropy coding module uses the entropy encryption algorithm that meets JPEG coding standard to enhancement quantized, data are furtherCompression, realizes the compatibility with JPEG code stream.
The present invention can accurately follow the tracks of according to user the quality of compressed image to the needs of compression bit rate, provide accurateJND threshold value design and quantize enhancing value. In addition, the improved JND threshold estimation of the present invention method makes codingEnd does not need to increase extra overhead bit, and the code stream that the encoder of design produces keeps and JPEG coding standardCompatibility.
Brief description of the drawings
Fig. 1 is the method for encoding images structured flowchart of Joint Photographic Experts Group.
Fig. 2 is the method for encoding images FB(flow block) based on JND model.
Detailed description of the invention
Set forth with specific embodiment the technical scheme that patent of the present invention relates to below in conjunction with accompanying drawing.
The present invention has adopted and has quantized in advance to estimate the JND threshold value of compressed images, and enters one in conjunction with JND modelStep increases quantization step, in the situation that keeping picture quality constant, improves by removing more visual redundancyCode efficiency, the code stream of gained of the present invention keeps the compatibility with JPEG coding standard, this method for based onThe Video coding of JND model is applicable equally.
As shown in Figure 2. Raw image files is read by image input module 11 and image is carried out to piecemeal; DCTConverter 12 carries out DCT direct transform and exports DCT coefficient each 8x8 piecemeal of input picture; QuantizeThe quantization step Q that device 13 meets Joint Photographic Experts Group to DCT coefficients by using quantizes in advance, and quantized resultExport to inverse DCT; Inverse DCT 14 uses identical quantization step Q to complete inverse quantization work and obtains reconstructCoefficient; DCT inverse transform block 15 is carried out the image of DCT inverse transformation acquisition reconstruct to reconstruction coefficients; JNDComputing module 16 calculates the non maximum JND threshold value of human eye to reconstructed image; Enhancement quantized device 17 basesThe △ Q that gains in strength of JND threshold calculations quantization step, and obtain final enhancement quantized step-length QstepTo DCTCoefficient carries out the enhancement quantized based on visual characteristic; Entropy coding module 18 uses the entropy that meets JPEG coding standardEncryption algorithm further compresses data, realizes the compatibility with JPEG code stream.
JND computing module 16 calculates the non maximum JND threshold value of human eye to reconstructed image. Based on DCTThe JND model description of transform domain is that spatial contrast degree sensitivity function, brightness self adaptation and contrast are covered three'sLong-pending, as shown in Equation (1):
JNDDCT(i,j)=JCSF(i,j)×Alum×Fcontrast(i,j)(1)
Wherein, (i, j) is the call number of DCT coefficient, wherein spatial contrast degree sensitivity function JCSF(i, j) and imageContent irrelevant, decoding end can obtain in advance, therefore JCSF(i, j) do not need to add code stream; Brightness self adaptationFactors AlumRelevant with mean flow rate, and the DC component DC of DCT coefficient has directly embodied the water of mean flow rateFlat, formula (2) has shown the relation of JPEG encoding D CT DC coefficient and mean flow rate, wherein N=8, forThe size of image block. In order to reduce the transmission of supplementary, when DC coefficient is quantized, JND only adoptsJCSFThe value of (i, j) part, formula for decoder (2) calculates after mean flow rate, and recycling formula (3) is justCan obtain brightness adaptive factor Alum, wherein DC represents DC component; N is the size of piecemeal, hereN=8;Represent mean flow rate.
Contrast is covered weighted factor Fcontrast(i, j) is relevant to the susceptibility in different images region with human eye, whereinThe weighted value 1 of level and smooth and fringe region; Human eye is relatively little to the susceptibility of texture region low frequency coefficient, thereforeWeight coefficient is 2.25, and high frequency coefficient be weighted to 1.25. Each only needs extra increase in the time of codingAn area type information just can make decoding end obtain Fcontrast(i, j). In JPEG coding standard, eachPiece all can end up with EOB (the EOB end of block character) after Huffman encoding, luminance factor in standard scaleEOB be 1010, in fact partition information can judge together with EOB, compiles according to Huffman hereinThe uniqueness principle of code has been chosen another code value 1001 and has been combined judgement with 1010, and wherein 1010 expressions are currentPiece is edge or flat site, and 1001 represent that current block is texture region. This coding method makes to compileCode end is embedded into code stream area type information in not needing to increase any bit number, has improved coding effectRate, produced simultaneously code stream keeps the compatibility with JPEG coding standard. The enhancement quantized step-length Q finally obtainingstepAs shown in Equation (4), wherein Q is the original quantization step of JPEG coding standard; △ Q represents quantization stepGain in strength, JNDDCT(i, j) is JND threshold value.
Qstep=Q+△Q=Q+2JNDDCT(i,j)(4)。
Claims (2)
1. the method for encoding images based on JND model, is characterized in that: provide image input module, dct transform device, amountChanging device, inverse DCT, DCT inverse transform block, JND computing module, enhancement quantized device and entropy coding module enters by following flow processOK:
Raw image files is read by image input module and image is carried out to piecemeal;
Dct transform device carries out DCT direct transform and exports DCT coefficient each 8x8 piecemeal of input picture;
The quantization step Q that quantizer meets Joint Photographic Experts Group to DCT coefficients by using quantizes in advance, and quantized result is exportedGive inverse DCT;
Inverse DCT uses identical quantization step Q to complete the coefficient of inverse quantization work acquisition reconstruct;
DCT inverse transform block is carried out the image of DCT inverse transformation acquisition reconstruct to the coefficient of reconstruct;
JND computing module is to the non maximum JND threshold value of the image calculation human eye of reconstruct;
Enhancement quantized device is according to the △ Q that gains in strength of JND threshold calculations quantization step, and obtains final enhancement quantized step-lengthQstepDCT coefficient is carried out to the enhancement quantized based on visual characteristic;
Data after entropy coding module uses the entropy encryption algorithm that meets JPEG coding standard to enhancement quantized are further compressed,Realize the compatibility with JPEG code stream;
Described JND model description is that spatial contrast degree sensitivity function, brightness self adaptation and contrast are covered the long-pending of three, as shown in formula (1):
JNDDCT(i,j)=JCSF(i,j)×Alum×Fcontrast(i,j)(1)
Wherein spatial contrast degree sensitivity function JCSF(i, j) is irrelevant with the content of image, can obtain in advance by decoding end, thereforeJCSF(i, j) do not need to add code stream; Brightness adaptive factor AlumRelevant with mean flow rate, and the DC component of DCT coefficientDC has directly embodied the level of mean flow rate, and formula (2) has shown the pass of JPEG encoding D CT DC coefficient and mean flow rateSystem, wherein N=8, is the size of image block; In order to reduce the transmission of supplementary, when DC coefficient is quantized, JND only adoptsJCSFThe value of (i, j) part, formula for decoder (2) calculates after mean flow rate, and recycling formula (3) just can obtain brightnessAdaptive factor Alum;
Contrast is covered weighted factor Fcontrast(i, j) is relevant to the susceptibility in different images region with human eye, wherein level and smooth withThe weighted value 1 of fringe region; Human eye is relatively little to the susceptibility of texture region low frequency coefficient, and therefore weight coefficient is 2.25,And high frequency coefficient be weighted to 1.25; Each only needs area type information of extra increase just can make to separate in the time of codingCode end obtains Fcontrast(i,j);
In described JPEG coding standard, each can end up with EOB after Huffman encoding, this EOB choose 1001 with1010 combine judgement, and wherein 1010 represent that current block is edge or flat site, and 1001 represent that current block isTexture region.
2. the method for encoding images based on JND model according to claim 1, is characterized in that: described enhancement quantizedStep-length QstepAs shown in formula (4):
Qstep=Q+△Q=Q+2JNDDCT(i,j)(4)。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310164495.7A CN103297773B (en) | 2013-05-07 | 2013-05-07 | Based on the method for encoding images of JND model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310164495.7A CN103297773B (en) | 2013-05-07 | 2013-05-07 | Based on the method for encoding images of JND model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103297773A CN103297773A (en) | 2013-09-11 |
CN103297773B true CN103297773B (en) | 2016-05-04 |
Family
ID=49098005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310164495.7A Expired - Fee Related CN103297773B (en) | 2013-05-07 | 2013-05-07 | Based on the method for encoding images of JND model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103297773B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105491391A (en) * | 2014-09-15 | 2016-04-13 | 联想(北京)有限公司 | Image compression method and electronic equipment |
TWI727968B (en) * | 2015-09-02 | 2021-05-21 | 美商內數位Vc控股公司 | Method and apparatus for quantization in video encoding and decoding |
CN110740316A (en) * | 2019-09-09 | 2020-01-31 | 西安万像电子科技有限公司 | Data coding method and device |
CN113160342B (en) * | 2021-05-14 | 2023-08-25 | 杭州网易智企科技有限公司 | Encoding method and device based on feedback, storage medium and electronic equipment |
CN115967806B (en) * | 2023-03-13 | 2023-07-04 | 阿里巴巴(中国)有限公司 | Data frame coding control method, system and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060215893A1 (en) * | 2005-03-25 | 2006-09-28 | Johnson Jeffrey P | Unified visual measurement of blur and noise distortions in digital images |
CN1968419A (en) * | 2005-11-16 | 2007-05-23 | 三星电子株式会社 | Image encoding method and apparatus and image decoding method and apparatus using characteristics of the human visual system |
CN101621708A (en) * | 2009-07-29 | 2010-01-06 | 武汉大学 | Method for computing perceptible distortion of color image based on DCT field |
-
2013
- 2013-05-07 CN CN201310164495.7A patent/CN103297773B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060215893A1 (en) * | 2005-03-25 | 2006-09-28 | Johnson Jeffrey P | Unified visual measurement of blur and noise distortions in digital images |
CN1968419A (en) * | 2005-11-16 | 2007-05-23 | 三星电子株式会社 | Image encoding method and apparatus and image decoding method and apparatus using characteristics of the human visual system |
CN101621708A (en) * | 2009-07-29 | 2010-01-06 | 武汉大学 | Method for computing perceptible distortion of color image based on DCT field |
Non-Patent Citations (2)
Title |
---|
基于视觉感知的H_264视频编码关键技术研究;王辉;《万方学位论文》;20110803;第8页图2.1 * |
改进的JND模型及其在图像编码中的应用;刘静;《电视技术》;20110702;第35卷(第13期);第15页第2段13-16行,第16页第3段-第17页第2段 * |
Also Published As
Publication number | Publication date |
---|---|
CN103297773A (en) | 2013-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103297773B (en) | Based on the method for encoding images of JND model | |
CN1303820C (en) | Quality based image compression | |
Padmaja et al. | Analysis of various image compression techniques | |
WO2007104265A1 (en) | A method and device for realizing quantization in coding-decoding | |
WO2020237646A1 (en) | Image processing method and device, and computer-readable storage medium | |
CN102138326B (en) | Method and apparatus for inverse quantizing image, and method and apparatus for decoding image | |
CN102281446B (en) | Visual-perception-characteristic-based quantification method in distributed video coding | |
JP2001298366A (en) | Method for compressing image data, and method and device for quantizing data | |
JP2013507083A5 (en) | ||
RU2013145526A (en) | METHOD AND DEVICE FOR CODING AND METHOD AND DEVICE FOR DECODING | |
JP2003319185A (en) | Image encoding apparatus and method, image decoding apparatus and method | |
CN102970536B (en) | A kind of method for video coding with prediction residual adjustment of improvement | |
WO2012079237A1 (en) | Wavelet coefficient quantization method applying human -eye visual model in image compression | |
WO2010077325A2 (en) | Method and apparatus for adaptive quantization of subband/wavelet coefficients | |
CN106488241A (en) | A kind of area-of-interest method to set up | |
CN113438481B (en) | Training method, image encoding method, image decoding method and device | |
CN104488266A (en) | AVS video compressing and coding method, and coder | |
CN1332576A (en) | Quantization and code stream control method for image compressing transmission | |
CN107205151B (en) | Coding and decoding device and method based on mixed distortion measurement criterion | |
CN102572426A (en) | Method and apparatus for data processing | |
CN106559668B (en) | A kind of low code rate image compression method based on intelligent quantization technology | |
CN103096081B (en) | The processing method of conversion coefficient, Coding with Wavelets method and module and encoder | |
CN112564713B (en) | High-efficiency low-time delay kinescope signal coder-decoder and coding-decoding method | |
CN108600750A (en) | Multiple description coded, coding/decoding method based on KSVD and system | |
CN103533351A (en) | Image compression method for multi-quantization table |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160504 Termination date: 20200507 |
|
CF01 | Termination of patent right due to non-payment of annual fee |