CN1614635A - Method for image amplifying interpolation - Google Patents
Method for image amplifying interpolation Download PDFInfo
- Publication number
- CN1614635A CN1614635A CN 200410098467 CN200410098467A CN1614635A CN 1614635 A CN1614635 A CN 1614635A CN 200410098467 CN200410098467 CN 200410098467 CN 200410098467 A CN200410098467 A CN 200410098467A CN 1614635 A CN1614635 A CN 1614635A
- Authority
- CN
- China
- Prior art keywords
- interpolation
- adjacent lines
- row
- pixel value
- image
- 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 45
- 230000003321 amplification Effects 0.000 claims description 18
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 18
- 238000009499 grossing Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 235000013350 formula milk Nutrition 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000008030 elimination Effects 0.000 description 2
- 238000003379 elimination reaction Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000003292 diminished effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
An interpolation method for image enlargement includes confirming interpolation line position, using picture element values of the first adjacent line and the second adjacent line of the interpolation line to confirm picture element value of interpolation line for making interpolation, carrying out smooth processing for the first adjacent line, the second adjacent line and interpolation line.
Description
Technical field
The present invention relates to the method for a kind of method of Digital Image Processing, particularly a kind of image amplification interpolation.
Technical background
Interpolation is also referred to as " replacement sample ", it is a kind of method that under the situation that does not generate pixel, increases image pixel size, lose the color of pixel with mathematical formulae calculating on the basis of pixel color around, just simulate the method for neighboring pixel value according to the color parameter of central pixel point.Interpolation is the basis that image zoom is handled, the method that multiple interpolation is arranged at present, they respectively have relative merits on computing complexity, amplification speed and picture quality, if generally speaking the velocity ratio of interpolation processing is very fast, the mass ratio of the image after then amplifying is relatively poor, opposite speed is slow, and then quality is better relatively.As wherein a kind of method simply fast is if how many images amplifies, and what just inserts go in new image, reaches needed size.At this moment, the new row that inserts often is exactly on average to obtain according to new previous row and the back delegation that inserts row.Though it is fast that this method interpolation is amplified speed, the sawtooth that the image that produces often has clearly occurs, and badly influences the quality of image.Therefore requiring under the fireballing applied environment of image amplification interpolation at present, the image effect after it amplifies is all very poor, can not satisfy user's needs.
Summary of the invention
The objective of the invention is:, provide the method for the image amplification interpolation that a kind of method is simple, speed is fast, image interpolation is effective at the deficiencies in the prior art.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is: a kind of method of image amplification interpolation comprises the steps:
Step 1, determine the position of interpolation row;
The pixel values of adjacent two row of interpolation row are got in the position of step 2, the interpolation row in original image, and promptly the pixel value of first adjacent lines and second adjacent lines is used for determining the pixel value of described interpolation row, thereby carries out interpolation;
Step 3, described first adjacent lines, second adjacent lines and interpolation row are carried out smoothing processing.
Describedly first adjacent lines, second adjacent lines and interpolation row are carried out smoothing processing can be meant, the pixel value according to described interpolation row and another row adjacent with first adjacent lines calculates the new pixel value that obtains first adjacent lines; Equally, according to described interpolation row and another pixel value of going adjacent, calculate the new pixel value that obtains second adjacent lines with second adjacent lines.
The pixel value of described interpolation row=(pixel values of the pixel value of first adjacent lines+second adjacent lines)/2.
The new pixel value of described first adjacent lines=(pixel values of another adjacent lines of the pixel value of interpolation row+first adjacent lines)/2.
The new pixel value of described second adjacent lines=(pixel values of another adjacent lines of the pixel value of interpolation row+second adjacent lines)/2.
Described definite line number of interpolation that needs can be meant, the size of the size of enlarged image and original image as required need to determine the line number of interpolation and the position of each interpolation row.
In technique scheme, the present invention is behind the pixel value of determining the interpolation row, in order to eliminate the sawtooth between interpolation row and the adjacent lines, adjacent lines are carried out smoothing processing, make the variation between the pixel value of the pixel value of adjacent lines and interpolation row smooth-out, thereby reach the elimination sawtooth, improve the purpose of the precision of new image line that inserts or image column.In addition, the present invention determines that the method for the pixel value of interpolation row and new adjacent lines is the method for asking average, and its computing method are simple, realize easily, thereby can guarantee to have interpolation calculation speed fast.Therefore, the relative prior art of the present invention has characteristics such as simple, quick, that image processing effect is good.
Description of drawings
Accompanying drawing 1 is the synoptic diagram of a kind of image amplification interpolation method in the prior art;
Accompanying drawing 2 is the process flow diagram of a kind of image amplification interpolation method of the present invention;
Accompanying drawing 3 is the method flow diagram of a kind of preferred embodiment of the present invention;
Accompanying drawing 4 is the synoptic diagram of a kind of preferred embodiment of the present invention.
Embodiment
Below in conjunction with Figure of description and specific embodiment the present invention is described in further detail.
Fig. 1 is the synoptic diagram of a kind of method of image amplification interpolation in the prior art.Among the figure, left-hand component is original image, and right-hand component is the image after interpolation is amplified, and L1~L4 is the image line/row in the original image, and Lnew is the interpolation row.When needs insert the Lnew of delegation between image line/row, prior art is to adopt the method for directly asking average, the pixel value of average back as Lnew asked in the pixel value addition that is about to adjacent two row L2, the L3 of Lnew, thus the image after the interpolation on the right of obtaining is amplified.This method is quite simple, quick, but but has major defects such as image effect is poor, sawtooth is obvious.
Though a variety of interpolation methods are also arranged at present, can obtain the image effect after good interpolation is amplified, as cube method of interpolation or the like.But these methods generally all are the mathematical formulaes according to more complicated to calculate.For equipment such as IP Camera, mobile communication terminals, its system CPU inadequate resource, and its image data transmission speed requires again comparatively fast, when reaching 60 frames/second when the Flame Image Process frame per second, has only 1/60 second for every two field picture processing time, obviously, system resource is difficult to finish those complicated loaded down with trivial details computings in the so short time.Therefore, need searching a kind of both simple, quick, can obtain the method for the amplification interpolation of better image quality again.
The present invention just provides a kind of method that satisfies the image amplification interpolation of above-mentioned condition, and it comprises the steps:
Step 1, determine the position of interpolation row;
The pixel values of adjacent two row of interpolation row are got in the position of step 2, the interpolation row in original image, and promptly the pixel value of first adjacent lines and second adjacent lines is used for determining the pixel value of described interpolation row, thereby carries out interpolation;
Step 3, described first adjacent lines and second adjacent lines are carried out smoothing processing.
As seen, the present invention utilizes first adjacent lines and second adjacent lines in the step 3 pair original image to carry out repair process, and the pixel value variable gradient between first adjacent lines, second adjacent lines and the interpolation row is diminished, and is smooth-out in above-mentioned steps.Thereby reach the elimination sawtooth, improve the purpose of quality of image processing.Wherein, the method for the method of the pixel value of calculating interpolation row and smoothing processing all can adopt simple interpolation computing method such as nearest method of interpolation of the prior art, linear interpolation method.
Accompanying drawing 3 is depicted as a kind of preferred embodiment of the present invention.The present invention includes but be not limited to present embodiment.
In the present embodiment, the method for the pixel value of calculating interpolation row and the method for smoothing processing have adopted the method for averaging in the prior art, and concrete steps are:
A1, the size of enlarged image and the size of original image as required need to determine the line number of interpolation and the position of each interpolation row; As one 320 * 240 original image, need be amplified to 352 * 288, then its image line needs per 10 row to insert delegation, and its image column needs per 8 row to insert 1 row.
A2, get one of them interpolation row Lnew;
Adjacent successively four lines L1, the L2 of described interpolation row Lnew, the pixel value of L3, L4 are got in the position of A3, the interpolation row Lnew in original image, and wherein L2 is first adjacent lines, and L3 is second adjacent lines, and L1 and L2 are adjacent, and L4 and L3 are adjacent;
A4, calculate interpolation row pixel value with formula " Lnew=(L2+L3)/2 ";
A5, calculate the new pixel value of the first adjacent lines L2, thereby finish smoothing processing first adjacent lines with formula " L2new=(L1+Lnew)/2 ";
A6, calculate the new pixel value of the second adjacent lines L3, thereby finish smoothing processing second adjacent lines with formula " L3new=(L4+Lnew)/2 ";
Whether A7, detection have finished all interpolation row, if do not finish, then return steps A 2, and circular treatment finishes after the interpolation processing of finishing all image line/row.
Shown in Figure 4ly be the synoptic diagram that the present embodiment method is implemented, the left side is an original image among the figure, and is middle for obtaining the image behind the interpolation row Lnew, and the right is the image of finishing after the smoothing processing.
Present embodiment adopts asks average method quite simple, even the system CPU inadequate resource also can be finished these steps fast, thereby has guaranteed the high efficiency of handling.And,, also can obtain the image effect after the goodish amplification interpolation through the smoothing processing process.
Claims (6)
1, a kind of method of image amplification interpolation comprises the steps:
Step 1, determine the position of interpolation row;
The pixel values of adjacent two row of interpolation row are got in the position of step 2, the interpolation row in original image, and promptly the pixel value of first adjacent lines and second adjacent lines is used for determining the pixel value of described interpolation row, thereby carries out interpolation;
Step 3, described first adjacent lines, second adjacent lines and interpolation row are carried out smoothing processing.
2, the method for image amplification interpolation according to claim 1, it is characterized in that: describedly first adjacent lines, second adjacent lines and interpolation row are carried out smoothing processing be meant, according to described interpolation row and another pixel value of going adjacent, calculate the new pixel value that obtains first adjacent lines with first adjacent lines; Equally, according to described interpolation row and another pixel value of going adjacent, calculate the new pixel value that obtains second adjacent lines with second adjacent lines.
3, the method for image amplification interpolation as claimed in claim 1 or 2 is characterized in that: the pixel value of described interpolation row=(pixel values of the pixel value of first adjacent lines+second adjacent lines)/2.
4, as the method for image amplification interpolation as described in the claim 3, it is characterized in that: the new pixel value of described first adjacent lines=(pixel values of another adjacent lines of the pixel value of interpolation row+first adjacent lines)/2.
5, as the method for image amplification interpolation as described in the claim 3, it is characterized in that: the new pixel value of described second adjacent lines=(pixel values of another adjacent lines of the pixel value of interpolation row+second adjacent lines)/2.
6, as the method for image amplification interpolation as described in the claim 3, it is characterized in that: described definite line number of interpolation that needs is meant, the size of the size of enlarged image and original image as required need to determine the line number of interpolation and the position of each interpolation row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100984670A CN100365660C (en) | 2004-12-13 | 2004-12-13 | Method for image amplifying interpolation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100984670A CN100365660C (en) | 2004-12-13 | 2004-12-13 | Method for image amplifying interpolation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1614635A true CN1614635A (en) | 2005-05-11 |
CN100365660C CN100365660C (en) | 2008-01-30 |
Family
ID=34766646
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100984670A Expired - Fee Related CN100365660C (en) | 2004-12-13 | 2004-12-13 | Method for image amplifying interpolation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100365660C (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100401741C (en) * | 2006-08-10 | 2008-07-09 | 威盛电子股份有限公司 | Weight adjusting module and weight adjusting method |
CN100563295C (en) * | 2007-11-01 | 2009-11-25 | 四川虹微技术有限公司 | A kind of image magnification method based on estimation error in the linear interpolation arithmetic |
WO2010051719A1 (en) * | 2008-11-04 | 2010-05-14 | 深圳市融创天下科技发展有限公司 | Method for magnifying video image 4/3 times |
CN102831574A (en) * | 2011-12-19 | 2012-12-19 | 中国航空工业集团公司洛阳电光设备研究所 | Non-integral-multiple amplification method for infrared images based on FPGA (field programmable gata array) |
CN103456255A (en) * | 2012-05-31 | 2013-12-18 | 奇菱科技股份有限公司 | Display pixel driving system and display sub-pixel driving procedure |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3647487B2 (en) * | 1994-12-02 | 2005-05-11 | 株式会社ソニー・コンピュータエンタテインメント | Texture mapping device |
CN1269079C (en) * | 2000-12-14 | 2006-08-09 | 松下电工株式会社 | Image processor and pattern recognition apparatus using the image processor |
JP2002183713A (en) * | 2000-12-14 | 2002-06-28 | Matsushita Electric Works Ltd | Method and device for processing image |
-
2004
- 2004-12-13 CN CNB2004100984670A patent/CN100365660C/en not_active Expired - Fee Related
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100401741C (en) * | 2006-08-10 | 2008-07-09 | 威盛电子股份有限公司 | Weight adjusting module and weight adjusting method |
CN100563295C (en) * | 2007-11-01 | 2009-11-25 | 四川虹微技术有限公司 | A kind of image magnification method based on estimation error in the linear interpolation arithmetic |
WO2010051719A1 (en) * | 2008-11-04 | 2010-05-14 | 深圳市融创天下科技发展有限公司 | Method for magnifying video image 4/3 times |
CN102831574A (en) * | 2011-12-19 | 2012-12-19 | 中国航空工业集团公司洛阳电光设备研究所 | Non-integral-multiple amplification method for infrared images based on FPGA (field programmable gata array) |
CN102831574B (en) * | 2011-12-19 | 2015-01-07 | 中国航空工业集团公司洛阳电光设备研究所 | Non-integral-multiple amplification method for infrared images based on FPGA (field programmable gata array) |
CN103456255A (en) * | 2012-05-31 | 2013-12-18 | 奇菱科技股份有限公司 | Display pixel driving system and display sub-pixel driving procedure |
CN103456255B (en) * | 2012-05-31 | 2016-06-15 | 欣德洺企业有限公司 | Display picture element drive system and display sub-pixel drive flow process |
Also Published As
Publication number | Publication date |
---|---|
CN100365660C (en) | 2008-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018209968A1 (en) | Camera calibration method and system | |
US20150256772A1 (en) | Systems and Methods for Reducing Noise in Video Streams | |
WO2009101798A1 (en) | Compound eye imaging device, distance measurement device, parallax calculation method and distance measurement method | |
CN1220365C (en) | Screen correcting method and imaging device | |
CN105635559B (en) | Camera control method and device for terminal | |
US6959117B2 (en) | Method and apparatus for deblurring and re-blurring image segments | |
US8693783B2 (en) | Processing method for image interpolation | |
KR101140953B1 (en) | Method and apparatus for correcting distorted image | |
CN102236790B (en) | Image processing method and device | |
CN115334254A (en) | Method for realizing special effect of rotating and twisting video transition and related equipment | |
CN1614635A (en) | Method for image amplifying interpolation | |
TWI549096B (en) | Image processing device and processing method thereof | |
CN113706393A (en) | Video enhancement method, device, equipment and storage medium | |
EP3206387B1 (en) | Image dynamic range adjustment method, terminal, and storage media | |
TW201536029A (en) | Image downsampling apparatus and method | |
CN1317884C (en) | A method for realizing integral multiple amplification of image | |
CN110738625B (en) | Image resampling method, device, terminal and computer readable storage medium | |
JP2003169255A (en) | Shading correction method | |
US7777803B2 (en) | Anti-shading method and apparatus for image sensor | |
JP2004102904A (en) | Filtering device and filtering method | |
KR20080099490A (en) | Method for enhancing contrast of image | |
RU2332716C2 (en) | Method and device for anisotropic filtering of dynamic video picture | |
CN113099143B (en) | Image processing method and device, electronic equipment and storage medium | |
JP4167469B2 (en) | Motion vector detection device | |
CN109636759B (en) | Image processing method |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080130 Termination date: 20111213 |