CN107508967A - A kind of image magnification method, terminal and computer-readable recording medium - Google Patents

A kind of image magnification method, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107508967A
CN107508967A CN201710602143.3A CN201710602143A CN107508967A CN 107508967 A CN107508967 A CN 107508967A CN 201710602143 A CN201710602143 A CN 201710602143A CN 107508967 A CN107508967 A CN 107508967A
Authority
CN
China
Prior art keywords
pixel
original position
image
value
neighborhood
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.)
Pending
Application number
CN201710602143.3A
Other languages
Chinese (zh)
Inventor
胡丽娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710602143.3A priority Critical patent/CN107508967A/en
Publication of CN107508967A publication Critical patent/CN107508967A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a kind of image magnification method, terminal and computer-readable recording medium, according to the multiplication factor to original image, determines each target pixel points corresponding original position in original image in target image;According to the pixel value of each neighbor pixel in the neighborhood of original position, the complexity in original position neighborhood is determined;When complexity is less than or equal to preset value, the pixel value using the average value of the pixel value of each neighbor pixel in original position neighborhood as target pixel points.Pass through the implementation of the present invention, the reference index amplified using the complexity of the original position in artwork as image, the enhanced processing of image is all carried out using bicubic interpolation algorithm without full figure, effectively reduces the resource consumption needed for image amplification, saves the time of image amplification.

Description

A kind of image magnification method, terminal and computer-readable recording medium
Technology neighborhood
, can more specifically to a kind of image magnification method, terminal and computer the present invention relates to terminal technology neighborhood Read storage medium.
Background technology
With the popularization of the mobile terminals such as mobile phone, social network sites are increasingly liked by user, and user also increasingly likes Picture is uploaded in these social networking applications.This kind of application can all provide the preview function of picture, and the enhanced processing of picture is basic All it is that entirety uses bicubic interpolation algorithm, the algorithm carries out same macrooperation amount interpolation to the pixel of entire image, though Good image can so be reached to amplify and distortionless effect, but its substantial amounts of amount of budget adds the operating cost of terminal And the stand-by period of user, Consumer's Experience are poor.
The content of the invention
The technical problem to be solved in the present invention is how to solve in the prior art, and image amplification operand is big, and terminal is born Loading and the problem of time-consuming;For the technical problem, there is provided a kind of image magnification method, including:
According to the multiplication factor to original image, each target pixel points corresponding original position in original image in target image is determined Put;
According to the pixel value of each neighbor pixel in the neighborhood of the original position, the complexity in the original position neighborhood is determined Degree;
When the complexity is less than or equal to preset value, by the pixel value of each neighbor pixel in the original position neighborhood Pixel value of the average value as the target pixel points.
Optionally, in the neighborhood according to original position each neighbor pixel pixel value, determine the original position neighborhood Interior complexity includes:According to the pixel of at least four nearest pixels of original position described in distance in the original position neighborhood Value, calculates its variance or standard deviation.
Optionally, the average value of the pixel value of each neighbor pixel includes in the original position neighborhood:Each neighbor pixel Pixel value arithmetic average, or the weighted average of the pixel value of each neighbor pixel.
Optionally, the basis determines that each target pixel points are in original image in target image to the multiplication factor of original image In corresponding original position include:
The distance slided on a terminal screen according to the finger of user, determine the multiplication factor of the original image;
According to the target pixel points of pixel value to be determined coordinate value in the target image and the multiplication factor, really The coordinate value of original position in original image corresponding to fixed.
Optionally, when the complexity is more than preset value, the target pixel points are determined using bicubic interpolation algorithm Pixel value.
The present invention also provides a kind of terminal, including processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the image amplification procedure stored in memory, to realize:
According to the multiplication factor to original image, each target pixel points corresponding original position in original image in target image is determined Put;
According to the pixel value of each neighbor pixel in the neighborhood of the original position, the complexity in the original position neighborhood is determined Degree;
When the complexity is less than or equal to preset value, by the pixel value of each neighbor pixel in the original position neighborhood Pixel value of the average value as the target pixel points.
Optionally, in the neighborhood according to original position each neighbor pixel pixel value, determine the original position neighborhood Interior complexity includes:According to the pixel of at least four nearest pixels of original position described in distance in the original position neighborhood Value, calculates its variance or standard deviation.
Optionally, the average value of the pixel value of each neighbor pixel includes in the original position neighborhood:Each neighbor pixel Pixel value arithmetic average, or the weighted average of the pixel value of each neighbor pixel.
Optionally, the basis determines that each target pixel points are in original image in target image to the multiplication factor of original image In corresponding original position include:
The distance slided on a terminal screen according to the finger of user, determine the multiplication factor of the original image;
According to the target pixel points of pixel value to be determined coordinate value in the target image and the multiplication factor, really The coordinate value of original position in original image corresponding to fixed.
The present invention also provides a kind of computer-readable recording medium, the computer-readable recording medium storage have one or The multiple programs of person, one program or multiple programs can be by one or more computing devices, to realize following steps:
According to the multiplication factor to original image, each target pixel points corresponding original position in original image in target image is determined Put;
According to the pixel value of each neighbor pixel in the neighborhood of the original position, the complexity in the original position neighborhood is determined Degree;
When the complexity is less than or equal to preset value, by the pixel value of each neighbor pixel in the original position neighborhood Pixel value of the average value as the target pixel points.
Beneficial effect
The invention provides a kind of image magnification method, terminal and computer-readable recording medium, according to original image Multiplication factor, determine each target pixel points corresponding original position in original image in target image;According in the neighborhood of original position The pixel value of each neighbor pixel, determine the complexity in original position neighborhood;When complexity is less than or equal to preset value, by original position Put pixel value of the average value as target pixel points of the pixel value of each neighbor pixel in neighborhood.By the present invention implementation, The reference index amplified using the complexity of the original position in artwork as image, without full figure all using bicubic interpolation algorithm come The enhanced processing of image is carried out, effectively reduces the resource consumption needed for image amplification, saves the time of image amplification.
Brief description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the present invention;
Fig. 2 is the image magnification method flow chart that first embodiment of the invention provides;
Fig. 3 is that the image that first embodiment of the invention provides amplifies pixel schematic diagram;
Fig. 4 is the terminal composition schematic diagram that second embodiment of the invention provides;
Fig. 5 is the image magnification method flow chart that third embodiment of the invention provides.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, this neighborhood technique personnel will be appreciated that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.This neighborhood technique personnel are appreciated that what is shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
It is described in detail below by way of specific embodiment.
First embodiment
Reference picture 2, Fig. 2 are the image magnification method flow chart that first embodiment of the invention provides.
Image magnification method in the present embodiment, including:
S201, basis determine that each target pixel points are corresponding in original image in target image to the multiplication factor of original image Original position;
The pixel value of each neighbor pixel, determines the complexity in original position neighborhood in S202, the neighborhood according to original position;
S203, when complexity is less than or equal to preset value, by original position neighborhood the pixel value of each neighbor pixel it is flat Pixel value of the average as target pixel points.
For the amplification process of the image of a determination size, a certain degree of distortion inevitably occurs, this is All be to determine due to, the number of the pixel of artwork and corresponding pixel value, however after zooming, pixel becomes more , for original image, more pixels then needs to carry out certain pixel value estimation, has estimation just to have deviation, certainly, This deviation is less when the multiplication factor of picture is not high, and the multiplication factor of picture is excessive, then deviation also can be very Greatly, the serious distortion of picture is caused.
In S201, according to the multiplication factor to original image, determine that each target pixel points are right in original image in target image The original position answered.During image amplifies, what the size of original image was to determine, the size of the image after amplification is also to determine , according to the picture size after the size of original image and amplification it is known that the multiplication factor of original image.And after amplifying Pixel in target image, corresponding original position can then be determined by this multiplication factor in original image.Amplification The position of pixel is all to determine in target image afterwards, after the pixel value for determining each pixel, it is possible to complete The amplification process of whole image, therefore, in order to complete the amplification process of whole image, it is necessary to know the pixel in target image Original position in original image.
Target image is made up of target pixel points, and target pixel points are all clear and definite pixels, but these pictures Vegetarian refreshments corresponds to the pixel that original image is then not necessarily original image, because the target pixel points of target image always more crosses artwork Pixel as in.In other words, it is not one-to-one relation between original position and preimage vegetarian refreshments, original position may fall In original image between each pixel.Fig. 3 is refer to, Fig. 3 is shown in target image and original image after amplification, object pixel Corresponding relation between point and original position, it can be seen that original position corresponding to target pixel points, be not the pixel in original image Point.Certainly, target pixel points corresponding original position in original image can also be preimage vegetarian refreshments, and both of these case is to original image All it there may be when being amplified.
Optionally, in the present embodiment, according to the multiplication factor to original image, each target pixel points in target image are determined Corresponding original position in original image can include:The distance slided on a terminal screen according to user's finger, determines artwork The multiplication factor of picture;According to the target pixel points of pixel value to be determined coordinate value in the target image and multiplication factor, it is determined that The coordinate value of original position in corresponding original image.In the amplifieroperation of terminal, the multiplication factor to original image is and user The distance that is moved on screen of finger it is related, this distance can singly refer to slip or double finger foldings come body by user It is existing.The distance of finger movement and the multiplication factor of original image are presented certain proportional relationship, specific proportionality coefficient then basis The screen size of terminal is related.Then, pixel network of the target pixel points in the target image after amplification in target image Position in lattice, that is, the coordinate value of target pixel points, determine that this target pixel points corresponds to the seat of original image Central Plains position Scale value.For target pixel points, its coordinate value is all integer pair;And for the coordinate value of original image Central Plains position, Its coordinate value can then include decimal.For example, refer to Fig. 3, the coordinate of target pixel points is (1,1) in Fig. 3, the amplification of image Multiple is 4/3, then, the coordinate value of original image Central Plains position is calculated according to multiplication factor is then:
X=1 × 3/4=0.75, Y=1 × 3/4=0.75, that is, the coordinate value of original position are (0.75,0.75).And Real pixel is the coordinate of no decimal in original image, and therefore, the coordinate value of original position is also denoted as (i+u, j+ V) form, wherein, i and j represent the integer part for the coordinate value being calculated, and u and v then represent the coordinate value being calculated Fractional part.
In S202, according to the pixel value of each neighbor pixel in the neighborhood of original position, the complexity in original position neighborhood is determined Degree.In the original position contiguous range that complexity refers to, the change size of pixel value, complexity is higher, illustrates in contiguous range, The change of pixel value is bigger, and complexity is lower, illustrates in contiguous range, and the change of pixel value is smaller.If change is small, say The color change of the bright original image in the original position contiguous range is small, when it is small arrived certain degree when, substantially it is considered that It is uniform same color.
Optionally, according to the pixel value of each neighbor pixel in the neighborhood of original position, the complexity in original position neighborhood is determined Degree can include:According to the pixel value of at least four pixels nearest apart from original position in original position neighborhood, its variance is calculated Or standard deviation.Variance and standard deviation are the amounts for weighing the dispersion degree of sample, wherein, variance be data in sample with it is flat The average of the quadratic sum of difference between mean, it is then by formula expressionWherein, s2Represent Variance, xiThe pixel value of pixel is represented,Represent the average value of the pixel value of pixel;Coefficient can take 1/n to represent variance, 1/ (n-1) is taken then to represent sample variance, and standard deviation is then the square root of variance, i.e.,Distance is former in original position neighborhood At least four nearest pixels of position, the complexity of the pixel value to the pixel in original position neighborhood can be lifted as far as possible Spend the degree of accuracy of estimation, that is, more accurately variance or standard deviation valuation.The number of the pixel nearest apart from original position can To take other quantity, such as 8,16 etc., according between original position distance be incremented by select corresponding pixel.Picture Vegetarian refreshments is more, and resulting complexity is more accurate, but pixel is no more than the certain scope of original position, can be by pixel The range of choice of point is limited in, and the pixel in target image around target pixel points is in artwork between corresponding original position.
In S203, when complexity is less than or equal to preset value, by the pixel value of each neighbor pixel in original position neighborhood Pixel value of the average value as target pixel points.The size positive correlation of the size and variance or standard deviation of complexity, when variance or When standard deviation is bigger, complexity is also bigger.When complexity is less than or equal to preset value, that is, variance is less than or equal to preset value Or standard deviation is when being less than or equal to preset value, wherein, the preset value of variance can be different from the preset value of standard deviation.
When complexity meets the condition less than or equal to preset value, illustrate to belong to gray scale in the original position contiguous range flat Region, the then pixel value using the average value of the pixel value of neighbor pixel in original position neighborhood as target pixel points.Adjacent picture Vegetarian refreshments can be selection and at least four pixels nearest in original position neighborhood, and the pixel value of this four pixels is averaged Value, the pixel value as target pixel points.Can also be, to determine the picture of the pixel used in the complexity in original position neighborhood Element value, such as 8 pixels, 16 pixels etc., the pixel value of target pixel points is used as using the average value of these pixels. Wherein, optionally, the average value of the pixel value of each neighbor pixel can include in original position neighborhood:The picture of each neighbor pixel The arithmetic average of element value, or the weighted average of the pixel value of each neighbor pixel.Wherein, the implication of arithmetic average is just Be, the pixel value sum of each adjacent pixel again divided by pixel number;And weighted average, then it is with these pixels The distance between original position is used as weight, and the nearlyer weight of distance is bigger, and the more remote then weight of distance is smaller.Fig. 3 is refer to, to scheme In 3 Central Plains position neighborhoods exemplified by four nearest pixels, the coordinate of four nearest pixels is respectively:(0,0), (0,1), (1,0), (1,1), the pixel value of this four points is then x respectively00, x01, x10, x11, then if if arithmetic mean number, x ' =1/4 (x00+x01+x10+x11);And if if weighted average, then according to four between pixel and original position away from From determining weight according to certain algorithm, then calculate its weighted average x ".Arithmetic mean number or the weighting for calculating gained are flat Mean, the pixel value as respective objects pixel in target image.
Particularly, if target pixel points corresponding original position in original image is the pixel of a determination, then, should The pixel value of target pixel points can then directly select the pixel value of the pixel of the original image correspondence position, without passing through meter The average calculated in neighborhood determines its pixel value.
In addition, when complexity is more than preset value, bicubic interpolation algorithm is then used in the present embodiment, determines target picture The pixel value of vegetarian refreshments.When being responsible for degree and being more than preset value, illustrate changing greatly for pixel in the original location, belong to grain details Abundant region, the pixel value for simply using average value as target pixel points is not accurate enough, therefore herein then using complexity Bicubic interpolation algorithm, to determine the pixel value of target pixel points.
The invention provides a kind of image magnification method, according to the multiplication factor to original image, determines each in target image Target pixel points corresponding original position in original image;According to the pixel value of each neighbor pixel in the neighborhood of original position, it is determined that Complexity in original position neighborhood;When complexity is less than or equal to preset value, by the picture of each neighbor pixel in original position neighborhood Pixel value of the average value of element value as target pixel points.By the implementation of the present embodiment, with the complexity of the original position in artwork The reference index as image amplification is spent, the enhanced processing of image is all carried out using bicubic interpolation algorithm without full figure, has The resource consumption reduced needed for image amplification of effect, save the time of image amplification.
Second embodiment
Fig. 4 is refer to, Fig. 4 is the terminal composition schematic diagram that second embodiment of the invention provides.
Terminal in the present embodiment, including processor 110, memory 109 and communication bus 401;Wherein:
Communication bus 401 is used to realize the connection communication between processor 110 and memory 109;
Processor 110 is used to perform the image amplification procedure stored in memory 109, to realize:
According to the multiplication factor to original image, each target pixel points corresponding original position in original image in target image is determined Put;
According to the pixel value of each neighbor pixel in the neighborhood of original position, the complexity in original position neighborhood is determined;
When complexity is less than or equal to preset value, the average value of the pixel value of each neighbor pixel in original position neighborhood is made For the pixel value of target pixel points.
For the amplification process of the image of a determination size, a certain degree of distortion inevitably occurs, this is All be to determine due to, the number of the pixel of artwork and corresponding pixel value, however after zooming, pixel becomes more , for original image, more pixels then needs to carry out certain pixel value estimation, has estimation just to have deviation, certainly, This deviation is less when the multiplication factor of picture is not high, and the multiplication factor of picture is excessive, then deviation also can be very Greatly, the serious distortion of picture is caused.
In the present embodiment, processor 110 performs image amplification procedure, to realize:According to the multiplication factor to original image, Determine each target pixel points corresponding original position in original image in target image.During image amplifies, original image What size was to determine, what the size of the image after amplification was also to determine, according to the picture size after the size of original image and amplification It is known that the multiplication factor of original image.And the pixel in the target image after amplifying, corresponding in original image Original position can then be determined by this multiplication factor.The position of pixel is all to determine in target image after amplification, After the pixel value for determining each pixel, it is possible to the amplification process of whole image is completed, therefore, in order to complete entirely to scheme The amplification process of picture is, it is necessary to know original position of the pixel in original image in target image.
Target image is made up of target pixel points, and target pixel points are all clear and definite pixels, but these pictures Vegetarian refreshments corresponds to the pixel that original image is then not necessarily original image, because the target pixel points of target image always more crosses artwork Pixel as in.In other words, it is not one-to-one relation between original position and preimage vegetarian refreshments, original position may fall In original image between each pixel.Fig. 3 is refer to, Fig. 3 is shown in target image and original image after amplification, object pixel Corresponding relation between point and original position, it can be seen that original position corresponding to target pixel points, be not the pixel in original image Point.Certainly, target pixel points corresponding original position in original image can also be preimage vegetarian refreshments, and both of these case is to original image All it there may be when being amplified.
Optionally, in the present embodiment, according to the multiplication factor to original image, each target pixel points in target image are determined Corresponding original position in original image can include:The distance slided on a terminal screen according to user's finger, determines artwork The multiplication factor of picture;According to the target pixel points of pixel value to be determined coordinate value in the target image and multiplication factor, it is determined that The coordinate value of original position in corresponding original image.In the amplifieroperation of terminal, the multiplication factor to original image is and user The distance that is moved on screen of finger it is related, this distance can singly refer to slip or double finger foldings come body by user It is existing.The distance of finger movement and the multiplication factor of original image are presented certain proportional relationship, specific proportionality coefficient then basis The screen size of terminal is related.Then, pixel network of the target pixel points in the target image after amplification in target image Position in lattice, that is, the coordinate value of target pixel points, determine that this target pixel points corresponds to the seat of original image Central Plains position Scale value.For target pixel points, its coordinate value is all integer pair;And for the coordinate value of original image Central Plains position, Its coordinate value can then include decimal.For example, refer to Fig. 3, the coordinate of target pixel points is (1,1) in Fig. 3, the amplification of image Multiple is 4/3, then, the coordinate value of original image Central Plains position is calculated according to multiplication factor is then:
X=1 × 3/4=0.75, Y=1 × 3/4=0.75, that is, the coordinate value of original position are (0.75,0.75).And Real pixel is the coordinate of no decimal in original image, and therefore, the coordinate value of original position is also denoted as (i+u, j+ V) form, wherein, i and j represent the integer part for the coordinate value being calculated, and u and v then represent the coordinate value being calculated Fractional part.
In the present embodiment, processor 110 performs image amplification procedure, to realize:According to each phase in the neighborhood of original position The pixel value of adjacent pixel, determine the complexity in original position neighborhood.In the original position contiguous range that complexity refers to, pixel value Change size, complexity is higher, illustrates in contiguous range, and the change of pixel value is bigger, and complexity is lower, illustrates in neighborhood In the range of, the change of pixel value is smaller.If change is small, illustrate the color change of the original image in the original position contiguous range It is small, when it is small arrived certain degree when, substantially may be considered uniform same color.
Optionally, according to the pixel value of each neighbor pixel in the neighborhood of original position, the complexity in original position neighborhood is determined Degree can include:According to the pixel value of at least four pixels nearest apart from original position in original position neighborhood, its variance is calculated Or standard deviation.Variance and standard deviation are the amounts for weighing the dispersion degree of sample, wherein, variance be data in sample with it is flat The average of the quadratic sum of difference between mean, it is then by formula expressionWherein, s2 tables Show variance, xi represents the pixel value of pixel, represents the average value of the pixel value of pixel;Coefficient can take 1/n to represent variance, 1/ (n-1) is taken then to represent sample variance, and standard deviation is then the square root of variance, i.e.,Distance is former in original position neighborhood At least four nearest pixels of position, the complexity of the pixel value to the pixel in original position neighborhood can be lifted as far as possible Spend the degree of accuracy of estimation, that is, more accurately variance or standard deviation valuation.The number of the pixel nearest apart from original position can To take other quantity, such as 8,16 etc., according between original position distance be incremented by select corresponding pixel.Picture Vegetarian refreshments is more, and resulting complexity is more accurate, but pixel is no more than the certain scope of original position, can be by pixel The range of choice of point is limited in, and the pixel in target image around target pixel points is in artwork between corresponding original position.
In the present embodiment, processor 110 performs image amplification procedure, to realize:When complexity is less than or equal to preset value When, the pixel value using the average value of the pixel value of each neighbor pixel in original position neighborhood as target pixel points.Complexity The size positive correlation of size and variance or standard deviation, when variance or bigger standard deviation, complexity is also bigger.When complexity is small When equal to preset value, that is, when variance is less than or equal to preset value or standard deviation and is less than or equal to preset value, wherein, variance Preset value can be different from the preset value of standard deviation.
When complexity meets the condition less than or equal to preset value, illustrate to belong to gray scale in the original position contiguous range flat Region, the then pixel value using the average value of the pixel value of neighbor pixel in original position neighborhood as target pixel points.Adjacent picture Vegetarian refreshments can be selection and at least four pixels nearest in original position neighborhood, and the pixel value of this four pixels is averaged Value, the pixel value as target pixel points.Can also be, to determine the picture of the pixel used in the complexity in original position neighborhood Element value, such as 8 pixels, 16 pixels etc., the pixel value of target pixel points is used as using the average value of these pixels. Wherein, optionally, the average value of the pixel value of each neighbor pixel can include in original position neighborhood:The picture of each neighbor pixel The arithmetic average of element value, or the weighted average of the pixel value of each neighbor pixel.Wherein, the implication of arithmetic average is just Be, the pixel value sum of each adjacent pixel again divided by pixel number;And weighted average, then it is with these pixels The distance between original position is used as weight, and the nearlyer weight of distance is bigger, and the more remote then weight of distance is smaller.Fig. 3 is refer to, to scheme In 3 Central Plains position neighborhoods exemplified by four nearest pixels, the coordinate of four nearest pixels is respectively:(0,0), (0,1), (1,0), (1,1), the pixel value of this four points is then x00, x01, x10, x11 respectively, then if if arithmetic mean number, X '=1/4 (x00+x01+x10+x11);And if if weighted average, then according to four between pixel and original position Distance, determine weight according to certain algorithm, then calculate its weighted average x ".Calculate the arithmetic mean number of gained or add Weight average number, the pixel value as respective objects pixel in target image.
Particularly, if target pixel points corresponding original position in original image is the pixel of a determination, then, should The pixel value of target pixel points can then directly select the pixel value of the pixel of the original image correspondence position, without passing through meter The average calculated in neighborhood determines its pixel value.
In addition, when complexity is more than preset value, bicubic interpolation algorithm is then used in the present embodiment, determines target picture The pixel value of vegetarian refreshments.When being responsible for degree and being more than preset value, illustrate changing greatly for pixel in the original location, belong to grain details Abundant region, the pixel value for simply using average value as target pixel points is not accurate enough, therefore herein then using complexity Bicubic interpolation algorithm, to determine the pixel value of target pixel points.
The invention provides a kind of terminal, according to the multiplication factor to original image, determines each object pixel in target image Point corresponding original position in original image;According to the pixel value of each neighbor pixel in the neighborhood of original position, original position neighbour is determined Complexity in domain;When complexity is less than or equal to preset value, by original position neighborhood the pixel value of each neighbor pixel it is flat Pixel value of the average as target pixel points.By the implementation of the present embodiment, figure is used as using the complexity of the original position in artwork As the reference index of amplification, the enhanced processing of image is all carried out using bicubic interpolation algorithm without full figure, is effectively reduced Resource consumption needed for image amplification, save time of image amplification.
3rd embodiment
Fig. 5 is refer to, Fig. 5 is the image magnification method flow chart that third embodiment of the invention provides, including:
The target pixel points of the pixel value to be determined in target image after S501, determination amplification;
S502, basis determine the target pixel points corresponding original position in original image to the multiplication factor of original image;
During image amplifies, what the size of original image was to determine, what the size of the image after amplification was also to determine, According to the picture size after the size of original image and amplification it is known that the multiplication factor of original image.And the target after amplifying Pixel in image, corresponding original position can then be determined by this multiplication factor in original image.After amplification The position of pixel is all to determine in target image, after the pixel value for determining each pixel, it is possible to is completed whole The amplification process of image, therefore, in order to complete the amplification process of whole image, it is necessary to know pixel in target image in original Original position in image.
Complexity in S503, calculating original position neighborhood;
In the original position contiguous range that complexity refers to, the change size of pixel value, complexity is higher, illustrates in neighborhood model In enclosing, the change of pixel value is bigger, and complexity is lower, illustrates in contiguous range, and the change of pixel value is smaller.Specifically, meter The complexity calculated in original position neighborhood can include:According at least four pixels nearest apart from original position in original position neighborhood Pixel value, calculate its variance or standard deviation.
S504, judge whether complexity is less than or equal to preset value, if so, then going to S505;If it is not, then go to S506;
S505, the average value by the pixel value of four pixels nearest in original position neighborhood, as target pixel points Pixel value;
When complexity meets the condition less than or equal to preset value, illustrate to belong to gray scale in the original position contiguous range flat Region, the then pixel value using the average value of the pixel value of neighbor pixel in original position neighborhood as target pixel points.Adjacent picture The quantity of vegetarian refreshments is chosen as four in the present embodiment, and while enough accuracy are ensured, amount of calculation is without too big.
S506, the pixel value for determining using bicubic interpolation algorithm target pixel points;
S507, judge whether to calculate the pixel value for completing all target pixel points;If it is not, S501 is then gone to, if so, then Go to S508;
S508, completion obtain target image to the amplifieroperation of original image.
Fourth embodiment
A kind of computer-readable recording medium is present embodiments provided, one is stored with the computer-readable recording medium Or multiple programs, one or more program can be by one or more computing devices, to realize:
According to the multiplication factor to original image, each target pixel points corresponding original position in original image in target image is determined Put;
According to the pixel value of each neighbor pixel in the neighborhood of original position, the complexity in original position neighborhood is determined;
When complexity is less than or equal to preset value, the average value of the pixel value of each neighbor pixel in original position neighborhood is made For the pixel value of target pixel points.
For the amplification process of the image of a determination size, a certain degree of distortion inevitably occurs, this is All be to determine due to, the number of the pixel of artwork and corresponding pixel value, however after zooming, pixel becomes more , for original image, more pixels then needs to carry out certain pixel value estimation, has estimation just to have deviation, certainly, This deviation is less when the multiplication factor of picture is not high, and the multiplication factor of picture is excessive, then deviation also can be very Greatly, the serious distortion of picture is caused.
In the present embodiment, according to the multiplication factor to original image, determine that each target pixel points are in artwork in target image The corresponding original position as in.During image amplifies, what the size of original image was to determine, the size of the image after amplification It is to determine, according to the picture size after the size of original image and amplification it is known that the multiplication factor of original image.And amplify The pixel in target image afterwards, corresponding original position then can be by this multiplication factor come really in original image It is fixed.The position of pixel is all to determine in target image after amplification, after the pixel value for determining each pixel, so that it may To complete the amplification process of whole image, therefore, in order to complete the amplification process of whole image, it is necessary to know in target image Original position of the pixel in original image.
Target image is made up of target pixel points, and target pixel points are all clear and definite pixels, but these pictures Vegetarian refreshments corresponds to the pixel that original image is then not necessarily original image, because the target pixel points of target image always more crosses artwork Pixel as in.In other words, it is not one-to-one relation between original position and preimage vegetarian refreshments, original position may fall In original image between each pixel.Fig. 3 is refer to, Fig. 3 is shown in target image and original image after amplification, object pixel Corresponding relation between point and original position, it can be seen that original position corresponding to target pixel points, be not the pixel in original image Point.Certainly, target pixel points corresponding original position in original image can also be preimage vegetarian refreshments, and both of these case is to original image All it there may be when being amplified.
Optionally, in the present embodiment, according to the multiplication factor to original image, each target pixel points in target image are determined Corresponding original position in original image can include:The distance slided on a terminal screen according to user's finger, determines artwork The multiplication factor of picture;According to the target pixel points of pixel value to be determined coordinate value in the target image and multiplication factor, it is determined that The coordinate value of original position in corresponding original image.In the amplifieroperation of terminal, the multiplication factor to original image is and user The distance that is moved on screen of finger it is related, this distance can singly refer to slip or double finger foldings come body by user It is existing.The distance of finger movement and the multiplication factor of original image are presented certain proportional relationship, specific proportionality coefficient then basis The screen size of terminal is related.Then, pixel network of the target pixel points in the target image after amplification in target image Position in lattice, that is, the coordinate value of target pixel points, determine that this target pixel points corresponds to the seat of original image Central Plains position Scale value.For target pixel points, its coordinate value is all integer pair;And for the coordinate value of original image Central Plains position, Its coordinate value can then include decimal.For example, refer to Fig. 3, the coordinate of target pixel points is (1,1) in Fig. 3, the amplification of image Multiple is 4/3, then, the coordinate value of original image Central Plains position is calculated according to multiplication factor is then:
X=1 × 3/4=0.75, Y=1 × 3/4=0.75, that is, the coordinate value of original position are (0.75,0.75).And Real pixel is the coordinate of no decimal in original image, and therefore, the coordinate value of original position is also denoted as (i+u, j+ V) form, wherein, i and j represent the integer part for the coordinate value being calculated, and u and v then represent the coordinate value being calculated Fractional part.
In the present embodiment, according to the pixel value of each neighbor pixel in the neighborhood of original position, determine in original position neighborhood Complexity.In the original position contiguous range that complexity refers to, the change size of pixel value, complexity is higher, illustrates in neighborhood In the range of, the change of pixel value is bigger, and complexity is lower, illustrates in contiguous range, and the change of pixel value is smaller.If change It is small, then explanation in the original position contiguous range color change of original image it is small, when it is small arrived certain degree when, substantially may be used To be considered uniform same color.
Optionally, according to the pixel value of each neighbor pixel in the neighborhood of original position, the complexity in original position neighborhood is determined Degree can include:According to the pixel value of at least four pixels nearest apart from original position in original position neighborhood, its variance is calculated Or standard deviation.Variance and standard deviation are the amounts for weighing the dispersion degree of sample, wherein, variance be data in sample with it is flat The average of the quadratic sum of difference between mean, it is then by formula expressionWherein, s2 is represented Variance, xi represent the pixel value of pixel, represent the average value of the pixel value of pixel;Coefficient can take 1/n to represent variance, take 1/ (n-1) then represents sample variance, and standard deviation is then the square root of variance, i.e.,Distance is in situ in original position neighborhood At least four nearest pixels are put, the complexity of the pixel value to the pixel in original position neighborhood can be lifted as far as possible The degree of accuracy of estimation, that is, more accurately variance or standard deviation valuation.The number of the pixel nearest apart from original position can be with Take other quantity, such as 8,16 etc., according between original position distance be incremented by select corresponding pixel.Pixel Point is more, and resulting complexity is more accurate, but pixel is no more than the certain scope of original position, can be by pixel Range of choice be limited in, the pixel in target image around target pixel points is in artwork between corresponding original position.
In the present embodiment, when complexity is less than or equal to preset value, by the picture of each neighbor pixel in original position neighborhood Pixel value of the average value of element value as target pixel points.The size positive correlation of the size and variance or standard deviation of complexity, when When variance or bigger standard deviation, complexity is also bigger.When complexity is less than or equal to preset value, that is, variance is less than or equal to When preset value or standard deviation are less than or equal to preset value, wherein, the preset value of variance can be different from the preset value of standard deviation 's.
When complexity meets the condition less than or equal to preset value, illustrate to belong to gray scale in the original position contiguous range flat Region, the then pixel value using the average value of the pixel value of neighbor pixel in original position neighborhood as target pixel points.Adjacent picture Vegetarian refreshments can be selection and at least four pixels nearest in original position neighborhood, and the pixel value of this four pixels is averaged Value, the pixel value as target pixel points.Can also be, to determine the picture of the pixel used in the complexity in original position neighborhood Element value, such as 8 pixels, 16 pixels etc., the pixel value of target pixel points is used as using the average value of these pixels. Wherein, optionally, the average value of the pixel value of each neighbor pixel can include in original position neighborhood:The picture of each neighbor pixel The arithmetic average of element value, or the weighted average of the pixel value of each neighbor pixel.Wherein, the implication of arithmetic average is just Be, the pixel value sum of each adjacent pixel again divided by pixel number;And weighted average, then it is with these pixels The distance between original position is used as weight, and the nearlyer weight of distance is bigger, and the more remote then weight of distance is smaller.Fig. 3 is refer to, to scheme In 3 Central Plains position neighborhoods exemplified by four nearest pixels, the coordinate of four nearest pixels is respectively:(0,0), (0,1), (1,0), (1,1), the pixel value of this four points is then x00, x01, x10, x11 respectively, then if if arithmetic mean number, X '=1/4 (x00+x01+x10+x11);And if if weighted average, then according to four between pixel and original position Distance, determine weight according to certain algorithm, then calculate its weighted average x ".Calculate the arithmetic mean number of gained or add Weight average number, the pixel value as respective objects pixel in target image.
Particularly, if target pixel points corresponding original position in original image is the pixel of a determination, then, should The pixel value of target pixel points can then directly select the pixel value of the pixel of the original image correspondence position, without passing through meter The average calculated in neighborhood determines its pixel value.
In addition, when complexity is more than preset value, bicubic interpolation algorithm is then used in the present embodiment, determines target picture The pixel value of vegetarian refreshments.When being responsible for degree and being more than preset value, illustrate changing greatly for pixel in the original location, belong to grain details Abundant region, the pixel value for simply using average value as target pixel points is not accurate enough, therefore herein then using complexity Bicubic interpolation algorithm, to determine the pixel value of target pixel points.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, the those of ordinary skill of this neighborhood Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of image magnification method, including:
According to the multiplication factor to original image, each target pixel points corresponding original position in original image in target image is determined;
According to the pixel value of each neighbor pixel in the neighborhood of the original position, the complexity in the original position neighborhood is determined;
When the complexity is less than or equal to preset value, the pixel value of each neighbor pixel in the original position neighborhood is averaged It is worth the pixel value as the target pixel points.
2. image magnification method as claimed in claim 1, it is characterised in that each adjacent picture in the neighborhood according to original position The pixel value of vegetarian refreshments, determine that the complexity in the original position neighborhood includes:It is former according to distance in the original position neighborhood The pixel value of at least four nearest pixels of position, calculates its variance or standard deviation.
3. image magnification method as claimed in claim 1, it is characterised in that each neighbor pixel in the original position neighborhood The average value of pixel value includes:The arithmetic average of the pixel value of each neighbor pixel, or the pixel value of each neighbor pixel Weighted average.
4. the image magnification method as described in claim any one of 1-3, it is characterised in that amplification of the basis to original image Multiple, determine that corresponding original position of each target pixel points in original image includes in target image:
The distance slided on a terminal screen according to the finger of user, determine the multiplication factor of the original image;
According to the target pixel points of pixel value to be determined coordinate value in the target image and the multiplication factor, it is determined that pair The coordinate value of original position in the original image answered.
5. the image magnification method as described in claim any one of 1-3, it is characterised in that when the complexity is more than preset value When, the pixel values of the target pixel points is determined using bicubic interpolation algorithm.
6. a kind of terminal, it is characterised in that including processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the image amplification procedure stored in memory, to realize:
According to the multiplication factor to original image, each target pixel points corresponding original position in original image in target image is determined;
According to the pixel value of each neighbor pixel in the neighborhood of the original position, the complexity in the original position neighborhood is determined;
When the complexity is less than or equal to preset value, the pixel value of each neighbor pixel in the original position neighborhood is averaged It is worth the pixel value as the target pixel points.
7. terminal as claimed in claim 6, it is characterised in that the picture of each neighbor pixel in the neighborhood according to original position Element value, determines that the complexity in the original position neighborhood includes:It is nearest according to original position described in distance in the original position neighborhood At least four pixels pixel value, calculate its variance or standard deviation.
8. terminal as claimed in claim 6, it is characterised in that the pixel value of each neighbor pixel in the original position neighborhood Average value includes:The arithmetic average of the pixel value of each neighbor pixel, or the weighted average of the pixel value of each neighbor pixel Value.
9. the terminal as described in claim any one of 6-8, it is characterised in that the basis is to the multiplication factor of original image, really Corresponding original position of each target pixel points in original image in image that set the goal includes:
The distance slided on a terminal screen according to the finger of user, determine the multiplication factor of the original image;
According to the target pixel points of pixel value to be determined coordinate value in the target image and the multiplication factor, it is determined that pair The coordinate value of original position in the original image answered.
A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one program or multiple programs can be by one or more computing devices, to realize following steps:
According to the multiplication factor to original image, each target pixel points corresponding original position in original image in target image is determined;
According to the pixel value of each neighbor pixel in the neighborhood of the original position, the complexity in the original position neighborhood is determined;
When the complexity is less than or equal to preset value, the pixel value of each neighbor pixel in the original position neighborhood is averaged It is worth the pixel value as the target pixel points.
CN201710602143.3A 2017-07-21 2017-07-21 A kind of image magnification method, terminal and computer-readable recording medium Pending CN107508967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710602143.3A CN107508967A (en) 2017-07-21 2017-07-21 A kind of image magnification method, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710602143.3A CN107508967A (en) 2017-07-21 2017-07-21 A kind of image magnification method, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107508967A true CN107508967A (en) 2017-12-22

Family

ID=60689324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710602143.3A Pending CN107508967A (en) 2017-07-21 2017-07-21 A kind of image magnification method, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107508967A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05207268A (en) * 1992-01-27 1993-08-13 Shinko Electric Co Ltd Picture element number increasing system
CN1652155A (en) * 2005-03-28 2005-08-10 北京中星微电子有限公司 Method and apparatus for changing digital image size
CN1846229A (en) * 2003-11-19 2006-10-11 夏普株式会社 Image processing apparatus, image processing program, and readable recording medium
CN101436297A (en) * 2007-11-14 2009-05-20 比亚迪股份有限公司 Image scaling method
CN103700062A (en) * 2013-12-18 2014-04-02 华为技术有限公司 Image processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05207268A (en) * 1992-01-27 1993-08-13 Shinko Electric Co Ltd Picture element number increasing system
CN1846229A (en) * 2003-11-19 2006-10-11 夏普株式会社 Image processing apparatus, image processing program, and readable recording medium
CN1652155A (en) * 2005-03-28 2005-08-10 北京中星微电子有限公司 Method and apparatus for changing digital image size
CN101436297A (en) * 2007-11-14 2009-05-20 比亚迪股份有限公司 Image scaling method
CN103700062A (en) * 2013-12-18 2014-04-02 华为技术有限公司 Image processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王会鹏,周利莉,张杰: "一种基于区域的双三次图像插值算法", 《计算机工程》 *

Similar Documents

Publication Publication Date Title
CN107729298A (en) Screen occlusion area processing method, mobile terminal and computer-readable recording medium
CN108055411A (en) Flexible screen display methods, mobile terminal and computer readable storage medium
CN107517494A (en) A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN107645606A (en) Screen luminance adjustment method, mobile terminal and readable storage medium storing program for executing
CN107315673A (en) Power consumption monitoring method, mobile terminal and computer-readable recording medium
CN107832163A (en) A kind of buffering updating method, server and computer-readable recording medium
CN107895143A (en) A kind of finger print information processing method, mobile terminal and computer-readable recording medium
CN107886321A (en) A kind of method of payment and mobile terminal
CN107734281A (en) A kind of image magnification method and mobile terminal
CN107632757A (en) A kind of terminal control method, terminal and computer-readable recording medium
CN108536382A (en) A kind of content display method, wearable terminal and storage medium
CN107463324A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN107067842A (en) Colour method of adjustment, mobile terminal and storage medium
CN107193779A (en) Residue charging duration calculation method, terminal and computer-readable recording medium
CN107845074A (en) A kind of image rendering method and mobile terminal
CN107786751A (en) A kind of method for broadcasting multimedia file and mobile terminal
CN107153500A (en) It is a kind of to realize the method and apparatus that image is shown
CN107196384A (en) A kind of charging method, wireless charging device and computer-readable recording medium
CN110032412A (en) A kind of key-press input control method, terminal and computer readable storage medium
CN108519847A (en) A kind of record screen method and terminal
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN109462732A (en) A kind of image processing method, equipment and computer readable storage medium
CN107749054A (en) A kind of image processing method, device and storage medium
CN108762709A (en) A kind of terminal control method, terminal and computer readable storage medium
CN107743199A (en) Image processing method, mobile terminal and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171222

RJ01 Rejection of invention patent application after publication