CN100418347C - Method for removing cob-webbing of digital image - Google Patents
Method for removing cob-webbing of digital image Download PDFInfo
- Publication number
- CN100418347C CN100418347C CNB2005101027318A CN200510102731A CN100418347C CN 100418347 C CN100418347 C CN 100418347C CN B2005101027318 A CNB2005101027318 A CN B2005101027318A CN 200510102731 A CN200510102731 A CN 200510102731A CN 100418347 C CN100418347 C CN 100418347C
- Authority
- CN
- China
- Prior art keywords
- channel
- pixel
- coordinate
- reticulate pattern
- digital picture
- 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
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000010586 diagram Methods 0.000 description 3
- 230000004075 alteration Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 239000012467 final product Substances 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000035807 sensation Effects 0.000 description 1
Images
Abstract
This invention provides one method to remove digital image print, which comprises the following steps: converting each pixel RGB coordinate into YUV one; orderly computing each pixel different values; finding out qualified one channel gate value with its difference value larger than U channel gate value; orderly using each net pixel element compensation as YUV; converting each pixel YUV coordinates into RGB coordinates values.
Description
Technical field
The present invention relates to a kind of method of removing the reticulate pattern of digital picture, particularly a kind of by calculating determination number word image voluntarily reticulate pattern and with the method for the reticulate pattern of the removal digital picture of its elimination.
Background technology
Present digital camera and digital camera are very general, price is also cheap, main still digital camera and digital camera all have the characteristic that can at once can view and admire achievement by display screen immediately, compared to traditional in the past camera, really convenient many, the interest that causes the consumer mostly to have height is used digital camera and digital camera.
But, digital camera or digital camera are in use, if when running into the object that is taken and having certain set form, roof of Western-style clothes overcoat, identical repetition form or the like for example, because the relation of the sampling frequency of the image capturing device in digital camera and the digital camera, tend to occur reticulate pattern (moire) phenomenon in the digital picture that is captured, this is very big with respect to the quality of digital images image, like this, the method of eliminating the reticulate pattern phenomenon must be arranged, to guarantee quality of digital images in digital camera and the digital camera.
Summary of the invention
The invention provides a kind of method of removing the reticulate pattern of digital picture, can in a digital picture, find out pixel automatically, and with behind its correction-compensation, it is more attractive in appearance that digital picture has been seen with reticulate pattern phenomenon.
The invention provides a kind of method of removing the reticulate pattern of digital picture, its step comprises:
Convert the RGB coordinate figure of each pixel of a digital picture to the YUV coordinate figure; Calculate the YUV difference value of each pixel and its neighborhood pixels one by one;
Find out meet in the pixel its Y channel difference value less than a Y threshold channel value, U channel difference value greater than a U threshold channel value, V channel difference value pixel greater than a V threshold channel value, simultaneously it is denoted as the reticulate pattern pixel;
One by one with the YUV coordinate figure of neighborhood pixels by way of compensation with each reticulate pattern pixel;
Convert the YUV coordinate figure of each pixel of digital picture to the RGB coordinate figure.
Describedly one by one YUV coordinate figure by way of compensation the step of each reticulate pattern pixel with neighborhood pixels comprised:
U channel coordinate figure and V channel coordinate figure with eight pixels of the vicinity of each reticulate pattern pixel sorts one by one;
Remove maximum and minimum U channel coordinate figure, and with the U channel coordinate figure of the average back of remaining a plurality of U channel coordinate figures as described reticulate pattern pixel;
Remove maximum and minimum V channel coordinate figure, and with the V channel coordinate figure of the average back of remaining a plurality of V channel coordinate figures as described reticulate pattern pixel.
Describedly one by one YUV coordinate figure by way of compensation the step of each reticulate pattern pixel with neighborhood pixels comprised:
U channel coordinate figure and V channel coordinate figure with eight pixels of the vicinity of each reticulate pattern pixel sorts one by one;
Remove the U channel coordinate figure of two maximums and two minimums, and with the U channel coordinate figure of the average back of remaining four U channel coordinate figures as described reticulate pattern pixel;
Remove the V channel coordinate figure of two maximums and two minimums, and with the V channel coordinate figure of the average back of remaining four V channel coordinate figures as described reticulate pattern pixel.
Wherein, the Y channel coordinate figure of described reticulate pattern pixel remains unchanged.
Wherein, described Y threshold channel value, U threshold channel value and V threshold channel value are respectively certain value, are used to adjust the degree of the reticulate pattern of removing digital picture.
The difference of the difference of the Y channel coordinate figure that described Y channel difference value is a described pixel pixel adjacent thereto or the Y channel coordinate figure of described pixel pixel adjacent thereto is divided by the Y channel coordinate figure of described pixel.
The difference of the difference of the U channel coordinate figure that described U channel difference value is a described pixel pixel adjacent thereto or the U channel coordinate figure of described pixel pixel adjacent thereto is divided by the U channel coordinate figure of described pixel.
The difference of the difference of the V channel coordinate figure that described V channel difference value is a described pixel pixel adjacent thereto or the V channel coordinate figure of described pixel pixel adjacent thereto is divided by the V channel coordinate figure of described pixel.
Each described pixel has eight neighborhood pixels.
The method of the reticulate pattern of described removal digital picture is applied in digital camera or the digital camera.
Can in a digital picture, find out pixel automatically by the present invention, and with behind its correction-compensation, it is more attractive in appearance that digital picture has been seen with reticulate pattern phenomenon.
Description of drawings
Fig. 1 is a method flow schematic diagram of the present invention;
Fig. 2 be in the method for the present invention about how with YUV coordinate figure by way of compensation the detail functional diagram of each reticulate pattern pixel with neighborhood pixels;
Fig. 3 be each pixel described in the method for the present invention with and the schematic diagram of neighborhood pixels.
Embodiment
In the technical field of digital picture, there are a variety of modes to write down the content of its view data, modal nothing more than being to write down its DID with the RGB coordinate figure, this mode is with each pixel in the digital picture, with R (redness), G (green) and the trichromatic value of B (blueness) are come record, then can have full gamut (R256 * G256 * B256=16777216 if write down each pixel with the kenel of 8 (8-bit), approximate more than 100,006,000 ten thousand color ranges) color can show, make digital picture have more enough colors and show, seeming can more approaching actual image.
But, general people are higher for the sensitiveness of brightness usually, so there is a kind of YUV of utilization coordinate figure to come the mode of record digital image to be suggested in addition, its principle is the brightness (Brighteness with each pixel, Luminance, Y) independently show, then (R-Y) is expressed as U, and (B-Y) is expressed as V, U and V promptly are so-called aberration terminal Cr and Cb in the image processing field, so promptly can be so that (V) coordinate figure comes the value of each pixel in the record digital image for Y, U.
The present invention for eliminate the reticulate pattern of digital picture, need find out earlier have the reticulate pattern phenomenon in the digital picture pixel where, with a kind of specific compensation way it is repaired again; Wherein, because it is also not obvious compared to the brightness variation of other adjacent pixel that the reticulate pattern phenomenon has a certain pixel, its color partly changes but very significantly characteristic simultaneously, described pixel can present the reticulate pattern phenomenon, and at this, we claim that this pixel is the reticulate pattern pixel, find out after the reticulate pattern pixel, after its correction, the reticulate pattern pixel no longer has above-mentioned characteristic, makes the overall digital image seem more attractive in appearance.
Based on above-mentioned conception, the invention provides a kind of method of removing the reticulate pattern of digital picture, please refer to Fig. 1, at first, convert the RGB coordinate figure of each pixel of a digital picture to the YUV coordinate figure, that is to say with the YUV coordinate figure and come the value of each pixel in the record digital image (to see step 11);
(see step 12), wherein the neighborhood pixels of each pixel supposes between pixel and the pixel it is that array with a marshalling is formed as shown in Figure 3, and wherein said pixel for example is P (Y to calculate the YUV difference value of each pixel and its neighborhood pixels one by one, U, V), its contiguous pixel then is P1 (Y1, U1, V1), P2 (Y2, U2, V2), P3 (Y3, U3, V3), P4 (Y4, U4, V4), P5 (Y5, U5, V5), P6 (Y6, U6, V6), P7 (Y7, U7, V7), P8 (Y8, U8, V8); Described YUV difference value refers to its Y channel difference value, U channel difference value and V channel difference value, wherein Y channel difference value can be the difference of the Y channel coordinate figure of described pixel pixel adjacent thereto, with above-mentioned example, the Y channel difference value of the neighborhood pixels of its pixel P can be respectively (Y1-Y), (Y2-Y), (Y3-Y), (Y4-Y), (Y5-Y), (Y6-Y), (Y7-Y) and (Y8-Y), and the U of the neighborhood pixels of its pixel P and V channel difference value are then by that analogy; But the design of its difference value is not as limit, Y channel difference value also can be that the difference of Y channel coordinate figure of described pixel pixel adjacent thereto is divided by the Y channel coordinate figure of described pixel, with above-mentioned example, the Y channel difference value of the neighborhood pixels of its pixel P is respectively (Y1-Y)/Y, (Y2-Y)/Y, (Y3-Y)/Y, (Y4-Y)/Y, (Y5-Y)/Y, (Y6-Y)/Y, (Y7-Y)/Y and (Y8-Y)/Y;
In all pixels of described digital picture, find out which pixel and meet its Y channel difference value less than a Y threshold channel value, U channel difference value is greater than a U threshold channel value, V channel difference value is greater than a V threshold channel value, simultaneously it is denoted as the reticulate pattern pixel and (sees step 13), Y threshold channel value wherein, U threshold channel value and V threshold channel value are respectively certain value, can be used to adjust the degree of the reticulate pattern of removing digital picture, its value size there is no certain restriction, the designer can adjust Y threshold channel value according to demand, the numerical value of U threshold channel value and V threshold channel value is desired the feature of finding out that pixel was had to meet;
One by one with each reticulate pattern pixel with the YUV coordinate figure of neighborhood pixels by way of compensation (with step 14);
Convert the YUV coordinate figure of each pixel of digital picture to the RGB coordinate figure and (see step 15);
The YUV coordinate figure of each pixel of digital picture is converted to after the RGB coordinate figure, can eliminate the reticulate pattern phenomenon of its certain partial pixel in the digital picture that is presented.
Above-mentioned about (step 14) can further be presented below: as shown in Figure 2 with the YUV coordinate figure step by way of compensation of neighborhood pixels with each reticulate pattern pixel one by one, one by one the U channel coordinate figure of eight pixels of the vicinity of each reticulate pattern pixel and V channel coordinate figure are sorted (seeing step 141), for above-mentioned example, promptly be that U channel coordinate figure and V channel coordinate figure with P1 to P8 sorts respectively, just sort with U1 to U8 ordering and with V1 to V8 respectively;
Remove the U channel coordinate figure of two maximums and two minimums, and with the U channel coordinate figure of the average back of remaining four U channel coordinate figures as described reticulate pattern pixel, for example residue is U2, U4, four values of U5, U8, and then the U channel coordinate figure of pixel P promptly is (U2+U4+U5+U8)/4;
In like manner, remove the V channel coordinate figure of two maximums and two minimums, and will remain the V channel coordinate figure (see step 143) of the average back of four V channel coordinate figures as described reticulate pattern pixel, for example residue is V1, V4, V6, four values of V8, then the V channel coordinate figure of pixel P promptly is (V1+V4+V6+V8)/4, such practice principle is that the color-values of the neighborhood pixels of this pixel is done a compensation, make the color-values of described pixel P seem to reduce with the difference of neighborhood pixels, and the Y channel coordinate figure of described reticulate pattern pixel remains unchanged, the brightness value of described pixel is remained unchanged, because human eye is comparatively sharp for the sensation of brightness, it is very lofty to avoid making human eye perceives revise pixel later like this.
Above-mentioned with each reticulate pattern pixel with the YUV coordinate figure step by way of compensation of neighborhood pixels not as limit, can be according to user's demand, getting the U of its available neighborhood pixels and V channel coordinate figure compensates and gets final product, for example only remove maximum and minimum U and V channel coordinate figure, or directly the U and the V channel coordinate figure mean value of neighborhood pixels is compensated, all can reach similar effects.
In sum, the invention provides above-mentioned method, with The built-in in digital camera or the firmware of digital camera or hardware, after digital camera or digital camera acquisition image becomes a digital picture, promptly can eliminate the step of reticulate pattern, make digital picture seem more attractive in appearance, or repair a certain specific digital picture, also can obtain identical effect in the mode of software.
Present embodiment only is used to illustrate the present invention, and is not to be used to limit the present invention.
Claims (14)
1. a method of removing the reticulate pattern of digital picture is characterized in that, may further comprise the steps:
Convert the RGB coordinate figure of each pixel of a digital picture to the YUV coordinate figure;
Calculate the YUV difference value of each described pixel and its neighborhood pixels one by one;
Find out meet in the described pixel its Y channel difference value less than a Y threshold channel value, U channel difference value greater than a U threshold channel value, V channel difference value pixel greater than a V threshold channel value, simultaneously it is denoted as the reticulate pattern pixel;
One by one with the YUV coordinate figure of neighborhood pixels by way of compensation with each reticulate pattern pixel;
Convert the YUV coordinate figure of each pixel of described digital picture to the RGB coordinate figure.
2. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, describedly one by one YUV coordinate figure by way of compensation the step of each reticulate pattern pixel with neighborhood pixels is comprised:
U channel coordinate figure and V channel coordinate figure with eight pixels of the vicinity of each reticulate pattern pixel sorts one by one;
Remove maximum and minimum U channel coordinate figure, and with the U channel coordinate figure of the average back of remaining a plurality of U channel coordinate figures as described reticulate pattern pixel;
Remove maximum and minimum V channel coordinate figure, and with the V channel coordinate figure of the average back of remaining a plurality of V channel coordinate figures as described reticulate pattern pixel.
3. the method for the reticulate pattern of removal digital picture according to claim 2 is characterized in that, the Y channel coordinate figure of described reticulate pattern pixel remains unchanged.
4. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, describedly one by one YUV coordinate figure by way of compensation the step of each reticulate pattern pixel with neighborhood pixels is comprised:
U channel coordinate figure and V channel coordinate figure with eight pixels of the vicinity of each reticulate pattern pixel sorts one by one;
Remove the U channel coordinate figure of two maximums and two minimums, and with the U channel coordinate figure of the average back of remaining four U channel coordinate figures as described reticulate pattern pixel;
Remove the V channel coordinate figure of two maximums and two minimums, and with the V channel coordinate figure of the average back of remaining four V channel coordinate figures as described reticulate pattern pixel.
5. the method for the reticulate pattern of removal digital picture according to claim 4 is characterized in that, the Y channel coordinate figure of described reticulate pattern pixel remains unchanged.
6. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, described Y threshold channel value, U threshold channel value and V threshold channel value are respectively certain value, is used to adjust the degree of the reticulate pattern of removing digital picture.
7. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, the difference of the Y channel coordinate figure that described Y channel difference value is a described pixel pixel adjacent thereto.
8. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, the difference of the Y channel coordinate figure that described Y channel difference value is a described pixel pixel adjacent thereto is divided by the Y channel coordinate figure of described pixel.
9. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, the difference of the U channel coordinate figure that described U channel difference value is a described pixel pixel adjacent thereto.
10. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, the difference of the U channel coordinate figure that described U channel difference value is a described pixel pixel adjacent thereto is divided by the U channel coordinate figure of described pixel.
11. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, the difference of the V channel coordinate figure that described V channel difference value is a described pixel pixel adjacent thereto.
12. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, the difference of the V channel coordinate figure that described V channel difference value is a described pixel pixel adjacent thereto is divided by the V channel coordinate figure of described pixel.
13. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, each described pixel has eight neighborhood pixels.
14. the method for the reticulate pattern of removal digital picture according to claim 1 is characterized in that, the method for the reticulate pattern of described removal digital picture is applied in digital camera or the digital camera.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101027318A CN100418347C (en) | 2005-09-09 | 2005-09-09 | Method for removing cob-webbing of digital image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101027318A CN100418347C (en) | 2005-09-09 | 2005-09-09 | Method for removing cob-webbing of digital image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1929541A CN1929541A (en) | 2007-03-14 |
CN100418347C true CN100418347C (en) | 2008-09-10 |
Family
ID=37859313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005101027318A Expired - Fee Related CN100418347C (en) | 2005-09-09 | 2005-09-09 | Method for removing cob-webbing of digital image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100418347C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567957B (en) * | 2010-12-30 | 2014-06-25 | 北京大学 | Method and system for removing reticulate pattern from image |
CN108108685B (en) * | 2017-12-15 | 2022-02-08 | 北京小米移动软件有限公司 | Method and device for carrying out face recognition processing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000106630A (en) * | 1998-09-28 | 2000-04-11 | Matsushita Electric Ind Co Ltd | Noise eliminating method for digital image |
CN1303071A (en) * | 1999-12-15 | 2001-07-11 | 罗技电子股份有限公司 | Detection and calibration of dynamic abnormal picture element |
US6671401B1 (en) * | 1999-09-08 | 2003-12-30 | Eastman Kodak Company | Removing color moire patterns from digital images having known chromaticities |
JP2004207896A (en) * | 2002-12-24 | 2004-07-22 | Sony Corp | Pixel defect detecting/correcting apparatus and method therefor |
JP2004215141A (en) * | 2003-01-08 | 2004-07-29 | Seiko Epson Corp | Moire elimination device, moire elimination method and program |
-
2005
- 2005-09-09 CN CNB2005101027318A patent/CN100418347C/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000106630A (en) * | 1998-09-28 | 2000-04-11 | Matsushita Electric Ind Co Ltd | Noise eliminating method for digital image |
US6671401B1 (en) * | 1999-09-08 | 2003-12-30 | Eastman Kodak Company | Removing color moire patterns from digital images having known chromaticities |
CN1303071A (en) * | 1999-12-15 | 2001-07-11 | 罗技电子股份有限公司 | Detection and calibration of dynamic abnormal picture element |
JP2004207896A (en) * | 2002-12-24 | 2004-07-22 | Sony Corp | Pixel defect detecting/correcting apparatus and method therefor |
JP2004215141A (en) * | 2003-01-08 | 2004-07-29 | Seiko Epson Corp | Moire elimination device, moire elimination method and program |
Non-Patent Citations (2)
Title |
---|
数字图像处理基础. 阮秋琪,132-133,中国铁道出版社. 1988 |
数字图像处理基础. 阮秋琪,132-133,中国铁道出版社. 1988 * |
Also Published As
Publication number | Publication date |
---|---|
CN1929541A (en) | 2007-03-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4024323A1 (en) | Image processing method and apparatus | |
CN107680056B (en) | Image processing method and device | |
CN100366053C (en) | Method for compensating bad dots on digital images | |
CN110910333B (en) | Image processing method and image processing apparatus | |
CN101742338B (en) | Sharpness enhancing apparatus and method | |
KR20050042699A (en) | Method and apparatus for enhancing local luminance of image, and computer-readable recording media for storing computer program | |
CN112614060A (en) | Method and device for rendering human face image hair, electronic equipment and medium | |
CN111161188B (en) | Method for reducing image color noise, computer device and readable storage medium | |
CN108806638B (en) | Image display method and device | |
CN101556791B (en) | Method for converting and processing format of YCbCr data captured and driven by DSP video | |
CN100556071C (en) | Image processing method | |
CN101923455B (en) | Method for displaying and analyzing digital image in YUV format | |
CN111429371A (en) | Image processing method and device and terminal equipment | |
CN111179370A (en) | Picture generation method and device, electronic equipment and storage medium | |
CN100418347C (en) | Method for removing cob-webbing of digital image | |
CN103489427B (en) | YUV converts the method and system that RGB and RGB converts YUV to | |
WO2019090580A1 (en) | System and method for image dynamic range adjusting | |
CN113112428A (en) | Image processing method and device, electronic equipment and readable storage medium | |
CN106408617B (en) | Interactive single image material obtaining system and method based on YUV color space | |
US8655064B2 (en) | Image compression circuit for compressing pieces of image data of four adjacent pixels, image compression method, semiconductor device, and smartphone | |
CN104505053B (en) | Show signal conversion method and device | |
CN112911366A (en) | Saturation adjusting method and device and display equipment | |
TW202021330A (en) | Image zooming method and device | |
CN101729884B (en) | Image acquiring device and image preprocessing method | |
WO2008036850A2 (en) | Chroma supression features |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20070209 Address after: Delaware Applicant after: Hongyou Science & Technology Co., Ltd. Address before: Hsinchu city of Taiwan Province Applicant before: Hongyou Science and Technology Co., Ltd. |
|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080910 Termination date: 20110909 |