CN1925543A - Weight adjusting module and weight adjusting method - Google Patents
Weight adjusting module and weight adjusting method Download PDFInfo
- Publication number
- CN1925543A CN1925543A CN 200610104373 CN200610104373A CN1925543A CN 1925543 A CN1925543 A CN 1925543A CN 200610104373 CN200610104373 CN 200610104373 CN 200610104373 A CN200610104373 A CN 200610104373A CN 1925543 A CN1925543 A CN 1925543A
- Authority
- CN
- China
- Prior art keywords
- value
- weight
- pixel
- image
- adjustment
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 101000712600 Homo sapiens Thyroid hormone receptor beta Proteins 0.000 description 6
- 102100033451 Thyroid hormone receptor beta Human genes 0.000 description 6
- 238000007792 addition Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 230000001737 promoting effect Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
Landscapes
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
The invention provides a weight adjusting module and a weight adjusting method, which are suitable for adjusting weights in an image zooming technology. First, an absolute difference is obtained by taking an absolute difference between a first pixel value of an image and a second pixel value of the image. Then, the absolute difference is compared with a plurality of threshold values, so as to output a weight adjustment value corresponding to an interval in which the absolute difference is positioned. Then, a first pixel weight value and a second pixel weight value are adjusted according to the weight adjustment value. Finally, the product of the first pixel value and the adjusted first pixel weight value is added with the product of the second pixel value and the adjusted second pixel weight value to output a weighted pixel value. The weight adjusting module and the method thereof adjust the first pixel weight value and the second pixel weight value, and the image can avoid the edge blur of objects in the picture after being zoomed, so that the image still keeps sharp, thereby improving the quality of the image.
Description
Technical field
The invention relates to a kind of weight method of adjustment, particularly in order to adjust the method and the weight adjusting module of the weight in the image-zooming technology.
Background technology
Along with the arriving in information and audio-visual epoch, image processing technique is also flourish thereupon.Wherein the image-zooming technology is the image processing technique that is widely used for a kind of, and it can be according to user's demand, an image is amplified or dwindles with the usefulness as follow-up image demonstration.Below will narrate the method that prior art is amplified image or dwindle.
In general, image is made up of many pixel columns, and every pixel column comprises a plurality of pixels, and available its pixel value of each pixel (pixel) is represented.With full color mode, each pixel can be represented by the red, green, blue three-primary colours, so the pixel value of each pixel can store red, green, blue chromatic number certificate with 6 respectively.The size of pixel value is the depth corresponding to color, if the big more then representative color of pixel value is black more, if more little then representative color is white more.When the prior art desire is amplified image, then original pixel column is produced more pixel column in the mode (as shown in Equation 1) of interpolation (interpolation), to reach the purpose that image amplifies.When yet desire is dwindled image, original pixel column is produced less pixel column in the mode of interpolation, to reach the purpose that image dwindles.
Yi=RA * Ai+RB * Bi (formula 1)
In formula 1, Yi by after treatment i pixel value of generation pixel column, Ai and Bi are respectively i the pixel value that produces the required two neighbouring pixel columns of Yi, and each pixel value in the pixel column at generation Yi place all uses same weight RA and weight RB.Wherein produce two required pixel columns of Yi, weight RA and weight RB and be according to the pixel columns C at Yi place with desire scaling S and decide.For instance, earlier the pixel columns C with the Yi place deducts 1, be multiplied by the inverse of desiring scaling S again and a product.If the pure integer part of this product is N, therefore producing two required pixel columns of Yi is original N+1 pixel column and N+2 pixel column, and Ai and Bi are respectively at original N+1 pixel column and i pixel value of N+2 pixel column.RA is the proper fraction part SA/B of this product, and RB is (1-SA/B).
For instance, the 7th pixel value in the 4th pixel column of wishing to get the image after amplifying 4/3 times, this moment, C was 4 and to desire scaling S be 4/3.(promptly 3) is multiplied by the inverse of desiring scaling S (promptly 3/4) and must 2 1/4 at first C to be deducted 1.The pure integer part N of this product be 2 and proper fraction part SA/B be 1/4, so RA is 1/4, RB is 3/4.Then with 1/4 with original the 3rd pixel column in the product of i pixel value, add 3/4 with original the 4th pixel column in the product of i pixel value, and obtain amplifying i pixel value in back the 4th pixel column.The rest may be inferred down, can obtain amplifying each pixel value in the 4th pixel column of back.When raw video comprises 15 pixel columns, obtain 20 pixel columns according to preceding method, then raw video is just amplified 4/3.In addition, with the method that image dwindles, promptly be to be made as mark less than 1 (as be made as 1/2 promptly be that image is dwindled 2 times) with desiring scaling, again according to preceding method, just can reach the purpose that image dwindles, do not repeat them here.
Yet, owing to bigger neighbor (for example in the marginal portion of certain figure or the picture between the edge and background of object) is caused the edge blurry of object in the picture easily when handling with prior art in the image or image is sharp keen inadequately, thereby causes the reduction of image quality.For instance, when a black object a background be white image in the time, then the weight of using in the prior art can make the black object after the processing still be black, have only the edge of object after processing, to become grey, the object edge that will make grey looks like fuzzy in the white background after the processing and between the black object after handling.Therefore how to provide a kind of weight adjusting module and method thereof that can address the above problem, real one of the current important topic that belongs to.
Summary of the invention
Because above-mentioned problem the invention provides a kind of weight adjusting module that can adjust according to image characteristics and its method.
The invention provides a kind of weight adjusting module, in order to adjust the weight in the image-zooming technology.The weight adjusting module comprises an arithmetic element, an adjustment unit.Arithmetic element at first the difference between one second pixel of one first pixel of an image and image is taken absolute value and behind the absolute difference, again absolute difference and several threshold values are compared, so as to the weight adjusted value of output corresponding to an interval at absolute difference place, wherein the interval at absolute difference place is separated out by these threshold values.At last, adjustment unit then can be adjusted one first pixel weight value and one second pixel weight value according to the weight adjusted value.
Weight adjusting module of the present invention, it is to connect a weight generation module, wherein this weight generation module is according to the desire scaling of image and pixel column once weighted pixel value place, so as to producing this first pixel weight value and this second pixel weight value.
Weight adjusting module of the present invention, it is to connect a weighting block, wherein this weighting block is that this first pixel value and is adjusted the long-pending of the back first pixel weight value, adds the long-pending of this second pixel value and an adjustment back second pixel weight value, so as to exporting once the weighted pixel value.
Weight adjusting module of the present invention, wherein this adjustment unit is to set a weight corrected value according to this weight adjusted value, and this first pixel weight value and this weight corrected value addition adjusted the back first pixel weight value as this, this second pixel weight value and this weight corrected value are subtracted each other as the back second pixel weight value of this adjustment.
Weight adjusting module of the present invention, wherein this adjustment unit is relatively this first pixel weight value and this second pixel weight value, less to select as a reference data value, and according to this weight adjusted value select this weight corrected value for this reference data value, this reference data value half or zero.
The present invention also provides a kind of weight method of adjustment, in order to adjust the weight in the image-zooming technology.The weight method of adjustment at first the difference between one second pixel of one first pixel of an image and image is taken absolute value and an absolute difference.Then, absolute difference and several threshold values are compared, so as to the weight adjusted value of output corresponding to the interval at absolute difference place, wherein the interval at absolute difference place is separated out by these threshold values.At last, adjust one first pixel weight value and one second pixel weight value according to the weight adjusted value.
Weight method of adjustment of the present invention more comprises: this first pixel value and is adjusted the long-pending of the back first pixel weight value, add the long-pending of this second pixel value and an adjustment back second pixel weight value, so as to exporting once the weighted pixel value.
Weight method of adjustment of the present invention, wherein adjust the step of this first pixel weight value and this second pixel weight value according to this weight adjusted value, be according to the desire scaling of image and pixel column, so as to producing this first pixel weight value and this second pixel weight value through weighted pixel value place.
Weight method of adjustment of the present invention wherein comprises according to the step that this weight adjusted value is adjusted this first pixel weight value and this second pixel weight value: set a weight corrected value according to this weight adjusted value; This first pixel weight value and this weight corrected value addition are adjusted the back first pixel weight value as this; And this second pixel weight value and this weight corrected value subtracted each other as this adjustment back second pixel weight value.
Weight method of adjustment of the present invention wherein comprises: relatively this first pixel weight value and this second pixel weight value, and less to select as a reference data value; And according to this weight adjusted value set this weight corrected value for this reference data value, this reference data value half or zero.
From the above, weight adjusting module of the present invention and weight method of adjustment, difference according to first pixel and second pixel, adjust the first pixel weight value and the second pixel weight value, make the pixel value after weighting suitably to adjust in response to image characteristics, therefore image can be avoided the edge blurry of object in the picture after convergent-divergent, makes image still keep sharp keen, so as to promoting the quality of image.
Description of drawings
Fig. 1 is the block diagram according to an image zoom device of the embodiment of the invention;
Fig. 2 is another block diagram according to a weight adjusting module of the embodiment of the invention;
Fig. 3 is the flow chart according to a weight method of adjustment of the embodiment of the invention.
Embodiment
Hereinafter with reference to correlative type, weight adjusting module and method thereof according to the embodiment of the invention are described.
Please refer to shown in Figure 1ly, it is an image zoom device 2 of the embodiment of the invention, the image that it is made up of several pixels in order to convergent-divergent.Image zoom device 2 comprises a weight generation module 21, a weight adjusting module 22 and a weighting block 23, wherein weight generation module 21, weight adjusting module 22 and weighting block 23 can utilize Digital Logical Circuits to realize, weight adjusting module 22 is difference connection weight generation module 21 and weighting block 23.The pixel columns C at its place of pixel that weight generation module 21 at first produces according to desire with desire scaling S and produce the first weighted value RA and the second weighted value RB.Then, weight adjusting module 22 is according to the difference between the first pixel value A and the second pixel value B, produce one and adjust the back first weighted value WA and and adjust the second weighted value WB afterwards so as to adjusting the first weighted value RA and the second weighted value RB respectively, wherein the first pixel value A and the second pixel value B are respectively the pixel value of neighbouring first pixel and second pixel.At last, weighting block 23 is adjusted the long-pending of the back first pixel weight value WA with the first pixel value A and, adds that the second pixel value B and adjusts the long-pending of the back second pixel weight value WB, shows so as to exporting once weighted pixel value Y to a display module 1.
In order to describe the present invention in detail, please refer to shown in Figure 2.Weight adjusting module 22 comprises arithmetic element 220 and adjustment unit 221.Arithmetic element 220 is in order to calculate the difference between the first pixel value A and the second pixel value B, and wherein difference can be luminance difference or chroma is poor.Then, difference taken absolute value and behind the absolute difference DIF, the size of absolute difference DIF and several threshold values relatively again.Can learn the interval at absolute difference place at last, in order to judge the brightness between the first pixel value A and the second pixel value B or the size of chroma difference.Therefore arithmetic element 220 is exported a weight adjusted value ADJ corresponding to the interval at absolute difference place according to the result who compares, and wherein the interval at absolute difference place is separated out by these threshold values.
For instance, these threshold values can comprise one first threshold value THR1 and one second threshold value THR2, or even more a plurality of threshold value, and wherein the first threshold value THR1 is greater than the second threshold value THR2.As shown in Equation 2, when arithmetic element 220 compares absolute difference DIF greater than the first threshold value THR1, then setting weight adjusted value ADJ is one first value D1.Or compare absolute difference DIF between the first threshold value THR1 and the second threshold value THR2, then setting weight adjusted value ADJ is one second value D2.Or compare absolute difference DIF less than the second threshold value THR2, then setting weight adjusted value ADJ is 0.
If?DIF>THR1
ADJ=D1
Else?if?THR1>DIF>THR2
ADJ=D2
Else?if?THR2>DIF
ADJ=0 (formula 2)
Then, 221 of adjustment units receive weight adjusted value ADJ and set a weight corrected value D, so as to adjusting the first weighted value RA and the second weighted value RB.Adjustment unit 221 carries out following processing to set weight corrected value D.At first, adjustment unit 221 is the first weighted value RA and the second weighted value RB relatively, and is less as a reference data value Wm to select.Then, adjustment unit 221 is set weight corrected value D according to weight adjusted value ADJ.The recanalization value of holding power ADJ is the first value D1, the second value D2 or 0 o'clock, then adjustment unit 221 set weight corrected value D be respectively reference data value Wm, reference data value Wm half or zero, as shown in Equation 3:
If?ADJ=D1
D=Wm
Else?if?ADJ=D2
D=Wm/2
Else?if?ADJ=0
D=0 (formula 3)
Then, adjustment unit 221 as adjusting the back first pixel weight value WA, and subtracts each other the first weighted value RA and weight corrected value D addition as one with the second weighted value RB and weight corrected value D and to adjust the back second pixel weight value WB, suc as formula 4 and formula 5 shown in:
WA=RA+D (formula 4)
WB=RB-D (formula 5)
Therefore, the weight corrected value is set according to weight adjusted value ADJ.When the difference of the first pixel value A and the second pixel value B is big, it is identical with reference data value Wm that weight corrected value D is set, or half of reference data value Wm, thereby make and adjust the back first pixel weight value WA and adjust the back second pixel weight value WB in the also increase and decrease to some extent respectively of weighting degree that produces through weighted pixel value Y.At last, after adjusting the first pixel weight value RA and adjusting the second pixel weight value RB, then adjustment unit 221 outputs are adjusted the back first pixel weight value WA and are adjusted the back second pixel weight value WB to weighting block 23, and weighting block 23 then produces through weighted pixel value Y with the method for formula 6.
Y=WA * A+WB * B (formula 6)
For general image, if first pixel and second pixel are the both sides pixel at the edge of object in the picture, then this two color of pixel changes or contrasts usually greatly.If the contrast degree of this two pixel is greater than second threshold value, even greater than first threshold value, after aforesaid processing, the first pixel weight value WA or the second pixel weight value WB will be by additions, make through the pixel intensity of weighted pixel or chroma more near first pixel or the brightness or the chroma of second pixel, thereby the fuzzy or sharp keen inadequately phenomenon that can avoid prior art to cause.If first pixel and second pixel are in the picture on the same object, then this two color of pixel changes or contrasts less usually.If the contrast degree is less than second threshold value, after aforesaid processing, then the first pixel weight value WA or the second pixel weight value WB will can be by additions.Because first pixel or second color of pixel are original just very approaching, so the brightness of the pixel after weighting or chroma also approach first pixel value or second pixel value, the image after therefore handling seems it also is very natural.
Please refer to shown in Figure 3ly, it is the flow chart according to a weight method of adjustment of the embodiment of the invention, and it comprises step S1 to step S3, in order to adjust the weight in the image-zooming technology.In step S1, the difference between one second pixel value of one first pixel value of an image and image taken absolute value and an absolute difference, wherein one first pixel and one second pixel are to be two neighbouring pixels.Then in step S2, absolute difference and several threshold values are compared, so as to the weight adjusted value of output corresponding to an interval at absolute difference place, wherein the interval of this correspondence is separated out by these threshold values.Then in step S3, adjust one first pixel weight value and one second pixel weight value according to the weight adjusted value, wherein be according to the desire scaling of image and pixel column, so as to producing the first pixel weight value and the second pixel weight value once weighted pixel value place.At last, with amassing of first pixel value and an adjustment back first pixel weight value, add amassing with output of second pixel value and adjustment back second a pixel weight value through the weighted pixel value.
In one embodiment of this invention, can be with the first pixel weight value and a weight corrected value addition as adjusting the back first pixel weight value, and the second pixel weight value and weight corrected value subtracted each other as adjusting the back second pixel weight value, and the weight corrected value be according to the weight adjusted value be set at a reference data value, reference data value half or zero, wherein the reference data value is by the relatively first pixel weight value and the second pixel weight value, to select less the generation.
In sum, adjust the first pixel weight value and the second pixel weight value according to weight adjusting module of the present invention and its method according to the difference between first pixel value and second pixel value, thereby can adjust the pixel weight value in response to the difference degree of brightness between pixel or chroma, make that the pixel value after weighting can suitably be adjusted in response to image characteristics.Therefore image can be avoided the edge blurry of object in the picture after convergent-divergent, makes the edge of object still keep sharp keen, so as to promoting the quality of image.
The above only is preferred embodiment of the present invention; so it is not in order to limit scope of the present invention; any personnel that are familiar with this technology; without departing from the spirit and scope of the present invention; can do further improvement and variation on this basis, so the scope that claims were defined that protection scope of the present invention is worked as with the application is as the criterion.
Being simply described as follows of symbol in the accompanying drawing:
1: display module
2: image zoom device
21: the weight generation module
22: the weight adjusting module
220: arithmetic element
221: adjustment unit
23: weighting block
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101043739A CN100401741C (en) | 2006-08-10 | 2006-08-10 | Weight adjusting device and weight adjusting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101043739A CN100401741C (en) | 2006-08-10 | 2006-08-10 | Weight adjusting device and weight adjusting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1925543A true CN1925543A (en) | 2007-03-07 |
CN100401741C CN100401741C (en) | 2008-07-09 |
Family
ID=37817989
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101043739A Active CN100401741C (en) | 2006-08-10 | 2006-08-10 | Weight adjusting device and weight adjusting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100401741C (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101399030B (en) * | 2007-09-25 | 2011-06-01 | 奇景光电股份有限公司 | Display parameter adjustment device and method for compensating scene changes |
CN107317959A (en) * | 2016-04-26 | 2017-11-03 | 瑞昱半导体股份有限公司 | Image filtering device and image filtering method thereof |
CN107563279A (en) * | 2017-07-22 | 2018-01-09 | 复旦大学 | The model training method adjusted for the adaptive weighting of human body attributive classification |
CN108124483A (en) * | 2017-12-01 | 2018-06-05 | 深圳市汇顶科技股份有限公司 | Fingermark image Enhancement Method and fingermark image module |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744119B (en) * | 2014-12-08 | 2020-01-24 | 扬智科技股份有限公司 | Video playback device and method for eliminating afterimage thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100594073B1 (en) * | 2002-09-17 | 2006-07-03 | 삼성전자주식회사 | Digital Image Scaling Method for Embedded System |
JP2006078552A (en) * | 2004-09-07 | 2006-03-23 | Fujitsu Ten Ltd | Image magnification device |
CN100365660C (en) * | 2004-12-13 | 2008-01-30 | 北京中星微电子有限公司 | Method for image amplifying interpolation |
CN1297940C (en) * | 2004-12-27 | 2007-01-31 | 北京中星微电子有限公司 | Image zooming method |
-
2006
- 2006-08-10 CN CNB2006101043739A patent/CN100401741C/en active Active
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101399030B (en) * | 2007-09-25 | 2011-06-01 | 奇景光电股份有限公司 | Display parameter adjustment device and method for compensating scene changes |
CN107317959A (en) * | 2016-04-26 | 2017-11-03 | 瑞昱半导体股份有限公司 | Image filtering device and image filtering method thereof |
CN107317959B (en) * | 2016-04-26 | 2020-01-14 | 瑞昱半导体股份有限公司 | Image filtering device and image filtering method thereof |
CN107563279A (en) * | 2017-07-22 | 2018-01-09 | 复旦大学 | The model training method adjusted for the adaptive weighting of human body attributive classification |
CN107563279B (en) * | 2017-07-22 | 2020-12-22 | 复旦大学 | A Model Training Method for Adaptive Weight Adjustment for Human Attribute Classification |
CN108124483A (en) * | 2017-12-01 | 2018-06-05 | 深圳市汇顶科技股份有限公司 | Fingermark image Enhancement Method and fingermark image module |
CN108124483B (en) * | 2017-12-01 | 2022-06-07 | 深圳市汇顶科技股份有限公司 | Fingerprint image enhancement method and fingerprint image module |
Also Published As
Publication number | Publication date |
---|---|
CN100401741C (en) | 2008-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017152398A1 (en) | Method and device for processing high dynamic range image | |
TWI352955B (en) | ||
CN111885312B (en) | HDR image imaging method, system, electronic device and storage medium | |
CN1519620A (en) | Displaying method, displaying device, and data write circuit for such displaying device | |
CN1545327A (en) | System and method for quality enhancement of video images | |
TWI320914B (en) | Weight-adjusted apparatus and method thereof | |
CN1959803A (en) | Moving image display device and method for moving image display | |
CN1612615A (en) | Image processing circuit, image displaying device and image processing method | |
CN1770847A (en) | Adaptive Contrast Enhancement | |
CN1975855A (en) | Image display device, driving circuit and driving method used in same | |
CN1925543A (en) | Weight adjusting module and weight adjusting method | |
CN100556071C (en) | image processing method | |
CN1279764C (en) | System and method for color saturation enhancement of video image | |
CN1263313C (en) | System and method for promoting marginal definition of video image | |
CN1893548A (en) | Image processing apparatus, image processing method and program | |
CN1375813A (en) | Method and apparatus for using low-brightness to treat non-natural signal of reducing glint | |
CN1365568A (en) | N-dimensional filter and method for N-dimensionally filtering an original image | |
CN1279755C (en) | Method of interleave and line by line conversion of mixing two dimensional and three dimensional | |
CN1610380A (en) | Image processing device, method thereof, and display device | |
TW200913730A (en) | Method and apparatus for processing image and electronic device using the same | |
TWI327868B (en) | Image processing method | |
CN1545329A (en) | A color transient enhancement system and method for video images | |
CN101052096A (en) | Method and device for adjusting image contrast | |
CN1932752A (en) | Image data dithering method and device | |
TW583634B (en) | Method and apparatus for sparkle reduction by reactive and anticipatory slew rate limiting |
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 |