CN101751660A - Picture zooming method - Google Patents
Picture zooming method Download PDFInfo
- Publication number
- CN101751660A CN101751660A CN200910312262A CN200910312262A CN101751660A CN 101751660 A CN101751660 A CN 101751660A CN 200910312262 A CN200910312262 A CN 200910312262A CN 200910312262 A CN200910312262 A CN 200910312262A CN 101751660 A CN101751660 A CN 101751660A
- Authority
- CN
- China
- Prior art keywords
- horizontal
- point
- rectangular area
- vertical
- 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.)
- Granted
Links
Landscapes
- Image Processing (AREA)
Abstract
The invention relates to the picture processing technology, in particular to a picture zooming method. The invention discloses a high-quality picture zooming method, which solves the problems of easy detail loss and poor amplification quality in the traditional picture zooming process. The invention has the main technical scheme that a horizontal amplification factor and a vertical amplification factor are obtained through the ratio of the breadth and height of a target rectangular region to be zoomed to the breadth and height of an original rectangular region of the picture, then, a mapping source point of a target point to be generated on the original picture is obtained through the horizontal amplification factor and the vertical amplification factor, a square adoption region with the edge length of 4 is taken around the mapping point, weight factors of sixteen sampling points are calculated, and finally, the color values of the sixteen sampling points are overlapped according to the weight factors to obtain the color value of the target point. The invention has the advantages that the picture zooming quality is improved, the occurrence of phenomena of detail loss and mosaic is avoided, and the invention is applicable for picture zooming.
Description
Technical field
The present invention relates to graph processing technique, relate to a kind of method for graphical scaling specifically.
Background technology
Traditional method for graphical scaling mainly contains following two kinds: 1. neighbour's method of interpolation, this method convergent-divergent figure is very fast, but loses details easily when dwindling, and can produce mosaic during amplification, especially poor quality when big multiple amplifies makes this method seldom be used.2. bilinear interpolation value method, this method has been eliminated in neighbour's method of interpolation the mosaic problem when amplifying and the details when dwindling is eliminated problem, but the low-frequency filter characteristics of this method has point fuzziness after by the picture convergent-divergent, especially local all the more so at the edge, and this method generally uses floating-point coordinate and floating-point scaled vectors to carry out computings such as multiplication and division, causes this method processing procedure slower.
Summary of the invention
Technical matters to be solved by this invention is: propose a kind of high-quality method for graphical scaling, solve in the traditional graph convergent-divergent process and lose details easily or amplify ropy problem.
The present invention solves the problems of the technologies described above the technical scheme that is adopted: a kind of method for graphical scaling may further comprise the steps:
A. try to achieve the horizontal amplification coefficient and vertical amplification coefficient of figure: the width of purpose rectangular area is obtained horizontal amplification coefficient divided by the width of the former rectangular area of figure, the height of purpose rectangular area is obtained vertical amplification coefficient divided by the height of the former rectangular area of figure at the convergent-divergent of purpose rectangular area;
B. for the impact point D that will generate, the horizontal ordinate of this point is obtained this source point S in the mapping of the former rectangular area of figure divided by horizontal amplification coefficient and vertical amplification coefficient respectively with ordinate in the purpose rectangular area;
C. getting one around the source point S comprises 4 of 16 sampled points and takes advantage of 4 sample area;
D. in 16 sampled points, the weights that calculate to the horizontal range of source point S according to 4 points on the horizontal direction are formed one 4 successively and are taken advantage of 1 horizontal coefficients matrix, the weights that calculate to the vertical range of source point S according to 4 points on the vertical direction are formed one 1 successively and are taken advantage of 4 Vertical factor matrix, the color value of 16 sampled points is formed one 4 take advantage of 4 color matrix;
E. the horizontal coefficients matrix that obtains in the steps d be multiply by color matrix and multiply by the color value that the Vertical factor matrix obtains impact point D again;
F. repeating step b is to step e, until finishing the convergent-divergent of figure in the purpose rectangular area.
In the steps d, described weights adopt sin (π x)/(π x) to calculate, and wherein π is a circular constant, and x is the distance that sampled point departs from source point S.
The invention has the beneficial effects as follows: improve the pantography quality, avoid occurring loss in detail and mosaic phenomenon.
Embodiment
The present invention proposes a kind of high-quality method for graphical scaling, solves in the traditional graph convergent-divergent process to lose details easily or amplify ropy problem.Its scheme adopts following steps to realize:
(1), the source rectangle zone of any one figure, zoom to a purpose rectangular area, the wide height in purpose zone is obtained horizontal enlargement factor and vertical enlargement factor divided by source region field width height.
(2), for the impact point D that will generate the target area, the horizontal ordinate of this point and ordinate respectively divided by horizontal enlargement factor and vertical enlargement factor obtain the former rectangular area of figure source point S, the coordinate figure of source point S is a floating number, around source point S, get one 4 and take advantage of 4 sample area, 16 points are arranged in this zone, and we are exactly the color value that will generate impact point D by the color value of these 16 sampled points.
(3), to generate 16 sampled points the color value of point D, be to calculate the weights coefficient respectively to mapping point S distance according to these 16 points, the color value of 16 sampled points is superposeed by the weights coefficient obtains the color value of a D again.
(4), the computing method of weights coefficient are such, the near power of distance is big, the power of distance is little, the concrete calculating of power is calculated by formula sin (π x)/(π x), wherein π is a circular constant, x is the distance that sampled point departs from source point S, sin asks sine value.
(5), in 16 points of sampling, the weights that calculate to the horizontal range of source point S according to 4 points on the horizontal direction are formed one 4 successively and are taken advantage of 1 horizontal coefficients matrix, and the weights that calculate to the vertical range of source point S according to 4 points on the vertical direction are formed one 1 successively and taken advantage of 4 Vertical factor matrix.The color value of 16 points of sampling is formed one 4 take advantage of 4 color matrix.
(6), the horizontal coefficients matrix that obtains in (5) be multiply by color matrix, multiply by the color value that the Vertical factor matrix just obtains a D again.Wherein three kinds of color component value of RGB will be calculated respectively, three kinds of color components of the RGB that obtains are combined into the color value of a D again.
Claims (2)
1. method for graphical scaling is characterized in that: may further comprise the steps:
A. try to achieve the horizontal amplification coefficient and vertical amplification coefficient of figure: the width of purpose rectangular area is obtained horizontal amplification coefficient divided by the width of the former rectangular area of figure, the height of purpose rectangular area is obtained vertical amplification coefficient divided by the height of the former rectangular area of figure at the convergent-divergent of purpose rectangular area;
B. for the impact point D that will generate, the horizontal ordinate of this point is obtained this source point S in the mapping of the former rectangular area of figure divided by horizontal amplification coefficient and vertical amplification coefficient respectively with ordinate in the purpose rectangular area;
C. getting one around the source point S comprises 4 of 16 sampled points and takes advantage of 4 sample area;
D. in 16 sampled points, the weights that calculate to the horizontal range of source point S according to 4 points on the horizontal direction are formed one 4 successively and are taken advantage of 1 horizontal coefficients matrix, the weights that calculate to the vertical range of source point S according to 4 points on the vertical direction are formed one 1 successively and are taken advantage of 4 Vertical factor matrix, the color value of 16 sampled points is formed one 4 take advantage of 4 color matrix;
E. the horizontal coefficients matrix that obtains in the steps d be multiply by color matrix and multiply by the color value that the Vertical factor matrix obtains impact point D again;
F. repeating step b is to step e, until finishing the convergent-divergent of figure in the purpose rectangular area.
2. a kind of method for graphical scaling as claimed in claim 1 is characterized in that: in the steps d, described weights adopt sin (π x)/(π x) to calculate, and wherein π is a circular constant, and x is the distance that sampled point departs from source point S.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009103122620A CN101751660B (en) | 2009-12-25 | 2009-12-25 | Picture zooming method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009103122620A CN101751660B (en) | 2009-12-25 | 2009-12-25 | Picture zooming method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101751660A true CN101751660A (en) | 2010-06-23 |
CN101751660B CN101751660B (en) | 2012-06-27 |
Family
ID=42478605
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009103122620A Expired - Fee Related CN101751660B (en) | 2009-12-25 | 2009-12-25 | Picture zooming method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101751660B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9823835B2 (en) | 2013-02-28 | 2017-11-21 | International Business Machines Corporation | Controlling display object on display screen |
CN107422953A (en) * | 2017-06-19 | 2017-12-01 | 南京巨鲨显示科技有限公司 | A kind of image local for medical display protrudes Zoom method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100541604C (en) * | 2006-09-12 | 2009-09-16 | 普诚科技股份有限公司 | Image treatment method and panntographic system |
CN100590656C (en) * | 2008-01-17 | 2010-02-17 | 四川虹微技术有限公司 | Image amplification method based on spline function interpolation algorithm |
CN101420508B (en) * | 2008-12-02 | 2011-06-01 | 西安交通大学 | Content related image scaling method |
-
2009
- 2009-12-25 CN CN2009103122620A patent/CN101751660B/en not_active Expired - Fee Related
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9823835B2 (en) | 2013-02-28 | 2017-11-21 | International Business Machines Corporation | Controlling display object on display screen |
US10346032B2 (en) | 2013-02-28 | 2019-07-09 | International Business Machines Corporation | Controlling display object on display screen |
US10585581B2 (en) | 2013-02-28 | 2020-03-10 | International Business Machines Corporation | Controlling display object on display screen |
CN107422953A (en) * | 2017-06-19 | 2017-12-01 | 南京巨鲨显示科技有限公司 | A kind of image local for medical display protrudes Zoom method |
Also Published As
Publication number | Publication date |
---|---|
CN101751660B (en) | 2012-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101751660B (en) | Picture zooming method | |
WO2011079040A3 (en) | Workpiece patterning with plasma sheath modulation | |
CN104701451A (en) | Preparation process of superconductive Josephson junction covered by edge of in-situ three-layer film | |
CN106564855A (en) | Deep silicon etching method | |
CN103136752A (en) | Image magnification method based on edge extraction | |
Zhu et al. | Aluminium doped zinc oxide sputtered from rotatable dual magnetrons for thin film silicon solar cells | |
CN110334752A (en) | A kind of irregular-shaped objects detection method based on trapezoidal convolution | |
CN103618316A (en) | High compensation precision method for controlling static synchronization compensator for power distribution network in electric system | |
CN115272068A (en) | Efficient interpolation method for image upsampling | |
CN206672951U (en) | A kind of SiC avalanche photodides | |
CN104020472A (en) | Real-time processing facilitated azimuth NCS high-squint SAR imaging method | |
CN101914753A (en) | Method for preparing NbTi film by utilizing magnetron sputtering method | |
CN109255097B (en) | 3.3471 power function-shaped open channel water delivery section and optimal section solving method | |
CN206736351U (en) | A kind of rectangle magnetic control sputtering cathode of high target utilization ratio | |
CN103220476B (en) | Image processing apparatus and method | |
TWI353722B (en) | ||
EP3498881A2 (en) | Sputter coating device and method for solar cell | |
CN103014623A (en) | Ceramic target material preparation method for CIGS (copper indium gallium selenide) based solar film battery light absorption layer | |
CN106756668B (en) | A kind of surface modifying method of tungsten aluminium composite material | |
CN104900503A (en) | Fabrication method of T type gate of high-ion mobility transistor | |
CN106529091B (en) | A kind of 3D scaling method of the line-structured light based on finite element | |
CN108020708A (en) | A kind of offset voltage detection method of dynamic electric voltage recovery device | |
WO2011068330A3 (en) | Apparatus and method for generating an inter-prediction frame, and apparatus and method for interpolating a reference frame used therein | |
Liu et al. | The performance of silicon solar cell with selective pillars fabricated by Cesium Chloride self-assembly lithography and UV-lithography | |
CN204289364U (en) | A kind of for the ionogenic magnetic field device of heavy caliber parallel beam |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120627 Termination date: 20211225 |