CN109919842A - Image amplification control method, terminal and computer readable storage medium - Google Patents

Image amplification control method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109919842A
CN109919842A CN201910082115.2A CN201910082115A CN109919842A CN 109919842 A CN109919842 A CN 109919842A CN 201910082115 A CN201910082115 A CN 201910082115A CN 109919842 A CN109919842 A CN 109919842A
Authority
CN
China
Prior art keywords
pixel
image
unit area
blank
pixel point
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
CN201910082115.2A
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 CN201910082115.2A priority Critical patent/CN109919842A/en
Publication of CN109919842A publication Critical patent/CN109919842A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of image amplification control method, terminal and computer readable storage mediums, when amplifying processing to image, source images are amplified after obtaining enlarged drawing according to amplification factor, by in enlarged drawing at least partly due to image amplifies caused by blank pixel point be divided into pixel unit area independent, and determine corresponding source image vegetarian refreshments in each comfortable source images in each pixel unit area;Then the pixel value for extracting each source image vegetarian refreshments sets the pixel value that the blank pixel in each pixel unit area is selected to the pixel value of the corresponding source image vegetarian refreshments in each pixel unit area;The invention also discloses a kind of terminal and computer readable storage mediums, by implementing above scheme, for at least partly because image amplify due to caused by blank pixel point, the pixel value that corresponding source image vegetarian refreshments can be directly used directly fills it, calculation amount can be largely reduced, resource utilization is promoted.

Description

Image amplification control method, terminal and computer readable storage medium
Technical field
The present invention relates to terminal control fields, more specifically to a kind of image amplification control method, terminal and calculating Machine readable storage medium storing program for executing.
Background technique
With the fast development of mobile communication, the function of smart terminal product is not simply as communication tool, more Be as people amusement tool.Currently, people can use intelligent terminal either in which type of place, or Reading or game, or chat.In life and work, people are exactly than a more frequently function using intelligent terminal Picture can be amplified the part details for removing specifically to check picture by image amplification, user, but due to definition pixel, So that, there is white filling square (namely white pixel point) one by one, influences user experience in amplified picture distortion.Needle To the problem, existing way all carries out pixel to each white filling square generated by image amplification using various interpolation arithmetics Value filling, there are computationally intensive, the more problems of occupancy resource for this mode.
Summary of the invention
The technical problem to be solved in the present invention is that: interpolation is used to each white pixel point generated by image amplification at present Algorithm carries out pixel value filling, and there are computationally intensive, the more problems of occupancy resource.For the technical problem, a kind of image is provided Amplification control method, terminal and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of image amplification control method, described image amplifies controlling party Method includes:
Source images are amplified according to amplification factor to obtain enlarged drawing;
By in the enlarged drawing at least partly because image amplify due to caused by blank pixel point be divided into respective independence Pixel unit area, and determine corresponding source image vegetarian refreshments in each each leisure source images in pixel unit area, one It include at least one described blank pixel point in the pixel unit area;
Extract the pixel value of each source image vegetarian refreshments;
Each pixel cellular zone is set by the pixel value of the blank pixel point in each pixel unit area The pixel value of the corresponding source image vegetarian refreshments in domain.
Optionally, it is described by the enlarged drawing at least partly because image amplify due to caused by blank pixel point divide Include: at pixel unit area independent
All blank pixel points in the enlarged drawing are divided into pixel unit area independent.
Optionally, it is described by the enlarged drawing at least partly because image amplify due to caused by blank pixel point divide Include: at pixel unit area independent
By other all described skies in the enlarged drawing in addition to the blank pixel point in image edge area White pixel point is divided into pixel unit area independent.
Optionally, it is described by the enlarged drawing at least partly because image amplify due to caused by blank pixel point divide It include: the blank pixel that will be removed in the enlarged drawing in image edge area at pixel unit area independent When other all described blank pixel points except point are divided into pixel unit area independent, the method is also wrapped It includes:
For the blank pixel point in image edge area in the enlarged drawing, its picture is filled using interpolation algorithm Element value.
Optionally, each blank pixel for including in the pixel unit area, which is selected, amplifies it for its corresponding source image vegetarian refreshments Generated blank pixel point afterwards.
Optionally, each pixel is set by the pixel value of the blank pixel point in each pixel unit area After the pixel value of the corresponding source image vegetarian refreshments in unit area, further includes:
The boundary pixel point between neighbor pixel unit area is obtained, the boundary pixel point is pixel unit area The interior pixel near adjacent another pixel unit area;
Transition amendment is carried out to the pixel value of the boundary pixel point.
Optionally, it includes at least one of that the pixel value to the boundary pixel point, which carries out transition amendment:
The average pixel value for obtaining described two neighbor pixel unit areas all pixels point, by the boundary pixel point Pixel value be set as the average pixel value;
Reduce the brightness of the boundary pixel point;
Reduce the saturation degree of the boundary pixel point.
Optionally, it is described by the enlarged drawing at least partly because image amplify due to caused by blank pixel point divide Before pixel unit area independent, further includes:
Judge whether the amplification factor is less than or equal to default amplification factor threshold value, if so, again will be in the enlarged drawing At least partly because image amplify due to caused by blank pixel point be divided into pixel unit area independent;Otherwise, it adopts With interpolation algorithm in the enlarged drawing at least partly because image amplify due to caused by blank pixel point carry out pixel filling.
Further, the present invention also provides a kind of terminal, the terminal includes that processor, memory and communication are total Line;
The communication bus is for realizing the communication connection between the processor and the memory;
The processor is for executing one or more program stored in memory, to realize image as described above The step of amplification control method.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize The step of image amplification control method as described above.
Beneficial effect
The present invention provides a kind of image amplification control method, terminal and computer readable storage medium, carries out to image When enhanced processing, source images are amplified after obtaining enlarged drawing according to amplification factor, by enlarged drawing at least partly Blank pixel point caused by due to image amplification is divided into pixel unit area independent, and determines each pixel dot element Corresponding source image vegetarian refreshments in each comfortable source images in region, including at least one described blank in one of pixel unit area Pixel;Then the pixel value for extracting each source image vegetarian refreshments sets the pixel value of the blank pixel point in each pixel unit area It is set to the pixel value of the corresponding source image vegetarian refreshments in each pixel unit area;Image amplification control method needle provided by the invention To at least partly because image amplify due to caused by blank pixel point, the pixel value of corresponding source image vegetarian refreshments can be directly used to it It is directly filled, without using interpolation algorithm, therefore can largely reduce calculation amount, promote resource utilization; The rate of image enhanced processing can be promoted simultaneously, promote satisfaction of users.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the terminal image amplification control method flow diagram that first embodiment of the invention provides;
Fig. 4 is the pixel unit area exemplary diagram one that first embodiment of the invention provides;
Fig. 5 is the pixel unit area exemplary diagram two that first embodiment of the invention provides;
Fig. 6 is the pixel unit area exemplary diagram three that first embodiment of the invention provides;
Fig. 7 is the boundary pixel point transition correcting process flow diagram that first embodiment of the invention provides;
Fig. 8 is the boundary pixel point schematic diagram that first embodiment of the invention provides;
Fig. 9 is that the boundary pixel point average pixel value that first embodiment of the invention provides obtains flow diagram;
Figure 10 is the image amplification control method flow diagram one that second embodiment of the invention provides;
Figure 11 is the image amplification control method flow diagram two that second embodiment of the invention provides;
Figure 12 is the image amplification control method flow diagram three that second embodiment of the invention provides;
Figure 13 is the terminal structure schematic diagram that third embodiment of the invention provides.
Specific 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 subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer, and the terminal in the present invention can be obtained using flexible screen Various flexible terminals.
It will be illustrated by taking flexible mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that Other than being used in particular for the element of mobile purpose, the construction of embodiment according to the present invention can also apply to fixed type Flexible terminal.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined, and mobile terminal can be according to the bending property of itself to each component The change that position, material and function are adapted to.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless 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, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex 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, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the 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 received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent 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 (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further 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 sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of 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 sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, various flexible screens and non-flexible screen (namely ordinary screen), such as organic light emission two can be used Pole pipe (Organic Light-Emitting Diode, OLED), active matrix organic light-emitting diode (Active-matrix Organic light emitting diode, AMOLED) etc. forms configure display panel 1061.An end in the present embodiment The display panel that can have is held, may also set up multiple display panels, such as each display panel of front and back, as The first display screen and second display screen of terminal.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include flexible touch surface Plate 1071 and other input equipments 1072.Flexible touch panel 1071, also referred to as flexible touch screen are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch surface Operation on plate 1071 or near touch panel 1071), and corresponding attachment device is driven according to preset formula.Touching Controlling panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects user's Touch orientation, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch detection Touch information is received on device, and is converted into contact coordinate, then gives processor 110, and can be received processor 110 and be sent Order and executed.Furthermore, it is possible to be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically Ground, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, switch key Deng), trace ball, mouse, one of operating stick etc. or a variety of, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it 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, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, 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 storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it 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 entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless 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) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.It should be understood that Be, the mobile terminal 100 in the present embodiment can for using flexible screen be worth can arbitrarily be bent or according to ad hoc fashion it is curved Terminal.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
Image amplification control method provided in this embodiment, can at least partly because image amplify due to caused by blank picture Vegetarian refreshments, the pixel value that corresponding source image vegetarian refreshments can be directly used directly fill it, without using interpolation algorithm, therefore Calculation amount can be largely reduced, resource utilization is promoted.
In order to make it easy to understand, the present embodiment is described further below with reference to a kind of image amplification control method for example, It is shown in Figure 3, comprising:
S301: source images are amplified according to amplification factor to obtain enlarged drawing.
It should be understood that the step in S301 can be executed by various terminals.Terminal in the present embodiment can be mobile phone, Tablet computer, laptop, palm PC, PDA, portable media player, Intelligent bracelet, smartwatch etc. move class intelligence Energy terminal, is also possible to the fixed class intelligent terminals such as number TV, desktop computer, vehicle-mounted computer.
In the present embodiment, amplification factor can be inputted in real time at the terminal according to terminal user, using according to user Amplifying gesture operation on a terminal screen determines specific amplification factor.Fixed amplification can also be pre-set in terminal Multiple then directly amplifies processing when needing to amplify detecting.
S302: by obtained enlarged drawing at least partly because image amplify due to caused by blank pixel point be divided into respectively From independent pixel unit area, and determine corresponding source image vegetarian refreshments in each comfortable source images in each pixel unit area.
It should be understood that including at least one blank pixel point in a pixel unit area in the present embodiment.And The blank pixel point for including in the specific division mode of pixel unit area and pixel unit area in the present embodiment Number then can flexible setting.In order to make it easy to understand, the present embodiment is illustrated below with reference to a kind of division example.
In this example, each blank pixel for including in pixel unit area, which is selected, amplifies it for its corresponding source image vegetarian refreshments Generated blank pixel point afterwards.
For example, with reference to shown in Fig. 4, it is assumed that by source images quadruplication in the present embodiment, be directed to a certain source image after amplification Vegetarian refreshments 40 square of filled black (namely in Fig. 4) is because producing three blank pixel points after amplification, then these three blank pictures Vegetarian refreshments constitutes a pixel unit area.
In another example shown in Figure 5, it is assumed that put source images in the present embodiment six times greater, a certain source is directed to after amplification Pixel 50 square of filled black (namely in Fig. 5) is because producing five blank pixel points after amplification, then this five blank Pixel constitutes a pixel unit area.
In another example shown in Figure 6, it is assumed that source images are amplified nine times in the present embodiment, are directed to a certain source after amplification Pixel 60 square of filled black (namely in Fig. 6) is because producing nine blank pixel points after amplification, then this nine blank Pixel constitutes a pixel unit area.
In addition, it is to be understood that for some pixel unit areas comprising blank pixel point number not It is centainly corresponding with amplification factor.Such as certain pixel unit areas positioned at image border, by image display area ruler Very little size limits, and the number of the blank pixel point in these pixel unit areas is then likely less than amplification factor corresponding Number.
S303: the pixel value of each source image vegetarian refreshments is extracted.
The pixel value that each source image vegetarian refreshments is extracted in this step, which refers to, obtains the corresponding source image vegetarian refreshments in each pixel unit area Pixel value.And various pixel value acquisition modes then can be used in the pixel value extracting mode of pixel, details are not described herein.
S304: it is each that each pixel unit area is set by the pixel value of the blank pixel point in each pixel unit area The pixel value of self-corresponding source image vegetarian refreshments.
This sample embodiment achieves that in amplified image, to its at least partly due to image amplifies caused by Blank pixel point, the pixel value that corresponding source image vegetarian refreshments can be directly used directly fill it, without being calculated using interpolation Method, therefore calculation amount can be largely reduced, promote resource utilization;The speed of image enhanced processing can be promoted simultaneously Rate promotes satisfaction of users.
In a kind of example of the present embodiment, in order to promote the efficiency of image completion as far as possible, by enlarged drawing extremely Small part because image amplify due to caused by blank pixel point be divided into pixel unit area independent when, may include: All blank pixel points generated by amplification in enlarged drawing are directly divided into pixel unit area independent; Corresponding source image can be all directlyed adopt for the pixel value of all blank pixel points generated by amplification in enlarged drawing in this way The pixel value of vegetarian refreshments is filled.
In another embodiment of the present embodiment, in order to promoted image amplification display effect, by enlarged drawing at least Part due to image amplification caused by blank pixel point be divided into pixel unit area independent and may also include that and will amplify Other all blank pixel points generated by image amplification in image in addition to the blank pixel point in image edge area It is divided into pixel unit area independent.The blank pixel point generated to part by image amplification can have both been realized in this way Pixel value can all directly adopt the pixel value of corresponding source pixel and be filled.In this example, for scheming in enlarged drawing As the blank pixel point in fringe region, interpolation algorithm optionally can be used and fill its pixel value, and should be understood that this reality Applying the interpolation algorithm in example can be using the various interpolation algorithm for being able to achieve pixel value filling.Such as it can use but be not limited to each Kind edge interpolation algorithm.
It in the present embodiment, may be because of two regions between neighbor pixel unit area in enlarged drawing The pixel value of block is different and causes visual lofty sense.Therefore, in order to avoid the problem, in a kind of example of the present embodiment In, each corresponding source in pixel unit area is set by the pixel value of the blank pixel point in each pixel unit area It is shown in Figure 7 after the pixel value of pixel, further includes:
S701: obtaining the boundary pixel point between neighbor pixel unit area, which is pixel dot element Near the pixel of adjacent another pixel unit area in region.
For example, with reference to shown in Fig. 8, two adjacent pixel unit areas, wherein this pixel cellular zone above Three pixels that the boundary pixel point in domain is covered by dotted line frame 81;The boundary pixel of this pixel unit area below Three pixels that point is covered by dotted line frame 91.For the method for determination class of the boundary pixel point of other pixel unit areas Seemingly, details are not described herein.
S702: transition amendment is carried out to the pixel value of boundary pixel point.Transition amendment in the present embodiment refers to boundary Pixel value smooth transition processing between pixel.And this it should be understood that, between boundary pixel point in the present embodiment The mode that pixel value carries out smooth transition processing can be with flexible setting.For example, in the present embodiment, to the pixel of boundary pixel point It may include at least one of following manner that value, which carries out the modified processing mode of transition:
Mode one: shown in Figure 9, comprising:
S901: the average pixel value of two neighbor pixel unit area all pixels points is obtained.
It in this step, can first obtain in two neighbor pixel unit areas, in one of pixel unit area Then first average pixel value of each pixel is obtained in neighbor pixel unit area again in one other pixel dot element region Then second average pixel value of each pixel takes the average value of the first average pixel value and the second average pixel value as two The average pixel value of neighbor pixel unit area all pixels point.
S902: average pixel value is set by the pixel value of boundary pixel point.
Mode two: the brightness of boundary pixel point is reduced.Wherein specifically reducing mode can be with flexible setting.For example, a kind of In example, a luminance threshold can be set, when the brightness of boundary pixel point is greater than the luminance threshold, is reduced to and is less than or equal to The luminance threshold.The setting of luminance threshold can carry out the factors such as the susceptibility of brightness according to personnel flexible in the present embodiment Setting.In another example in another example, can be set one and need reduced brightness value, will reduce in the brightness of boundary pixel point The brightness value of setting.
Mode three: the saturation degree of boundary pixel point is reduced.Wherein saturation degree specifically reduce mode can be with flexible setting.Example Such as, in a kind of example, a saturation degree threshold value can be set, when the saturation degree of boundary pixel point is greater than the saturation degree threshold value, It is reduced to and is less than or equal to the saturation degree threshold value.In another example in another example, can be set one and need reduced intensity value, The saturation degree being arranged in the desaturation of boundary pixel point.
It should be understood that aforesaid way flexibly can be used in combination according to demand in the present embodiment.Such as one Aforesaid way two and mode three can be combined in kind example, obtain following manner four:
Mode four: average pixel value is set by the pixel value of boundary pixel point, and reduces the saturation degree of boundary pixel point.
It is provided in this embodiment directly according to the setting pair of source image vegetarian refreshments in order to combine in another embodiment of the present embodiment The advantages of pixel value for the blank pixel point generated later by amplification answered and interpolation algorithm carry out blank pixel point pixel value The advantages of filling.In the present embodiment, by enlarged drawing at least partly because image amplify due to caused by blank pixel click and sweep It is divided into before pixel unit area independent, may also include that
Judge whether the amplification factor of enlarged drawing is less than or equal to default amplification factor threshold value, if so, again by enlarged drawing In at least partly because image amplify due to caused by blank pixel point be divided into pixel unit area independent;Otherwise, Using interpolation algorithm in enlarged drawing at least partly because image amplify due to caused by blank pixel point carry out pixel filling.
Adoptable interpolation algorithm can be flexibly using setting in the present embodiment.For example, may include but be not limited to most two-wire Property interpolation, high-order moment interpolation, fractal interpolation and method based on wavelet transformation etc..Specifically can according to current demand and The characteristic flexible choice of various interpolation algorithms is arranged.Such as neighbouring around source image vegetarian refreshments 4 are utilized in bilinear interpolation rule The linear averaging weight of pixel calculates the values of target pixel points, and available preferable overall effect eliminates blocking artifact.
Image amplification control method provided in this embodiment, can at least partly because image amplify due to caused by blank picture Vegetarian refreshments, the pixel value that corresponding source image vegetarian refreshments can be directly used directly fill it, flexibly interpolation can also be combined to calculate Method, because the pixel value of the blank pixel point of amplification generation is filled, can promote filling speed to image, reduce resource occupation Rate, and can guarantee image completion effect, it brings user and preferably experiences.
Second embodiment
In order to make it easy to understand, the present embodiment is on that basi of the above embodiments, amplify control process with several exemplary images To be illustrated.
Example one:
Image amplification control method in this example is shown in Figure 10 comprising:
S1001: source images and amplification factor to be amplified are obtained.
Source images in the present embodiment can be the image of various formats or type.
S1002: source images are amplified to obtain enlarged drawing by amplification factor.
S1003: judging whether amplification factor is less than or equal to amplification factor threshold value, if so, going to S1004;Otherwise, it goes to S1007。
Assuming that the amplification factor in the present embodiment is 5 times, amplification factor threshold value is set as 10.
S1004: by obtained enlarged drawing it is all because image amplify due to caused by blank pixel point be divided into respectively Independent pixel unit area, and determine corresponding source image vegetarian refreshments in each comfortable source images in each pixel unit area.
S1005: the pixel value of the corresponding source image vegetarian refreshments in each pixel unit area is extracted.
S1006: each pixel unit area is set by the pixel value of the blank pixel point in each pixel unit area The pixel value of corresponding source image vegetarian refreshments.
S1007: the pixel value of blank pixel point caused by due to image amplifies is filled using interpolation algorithm.
Example two:
Image amplification control method in this example is shown in Figure 11 comprising:
S1101: source images and amplification factor to be amplified are obtained.
S1102: source images are amplified to obtain enlarged drawing by amplification factor.
S1103: judging whether amplification factor is less than or equal to amplification factor threshold value, if so, going to S1104;Otherwise, it goes to S1108。
Assuming that the amplification factor in the present embodiment is 6 times, amplification factor threshold value is set as 8.
S1104: by all in addition to fringe region in obtained enlarged drawing due to image amplifies caused by blank picture Vegetarian refreshments is divided into pixel unit area independent, and determines corresponding in each comfortable source images in each pixel unit area Source image vegetarian refreshments.
S1105: the pixel value of the corresponding source image vegetarian refreshments in each pixel unit area is extracted.
S1106: each pixel unit area is set by the pixel value of the blank pixel point in each pixel unit area The pixel value of corresponding source image vegetarian refreshments.
S1107: in the fringe region in enlarged drawing it is all because image amplify due to caused by blank pixel point use Edge interpolation algorithm carries out pixel value filling.
S1108: the pixel value of blank pixel point caused by due to image amplifies is filled using interpolation algorithm.
Example three:
Image amplification control method in this example is shown in Figure 12 comprising:
S1201: source images and amplification factor to be amplified are obtained.
S1202: source images are amplified to obtain enlarged drawing by amplification factor.
S1203: judging whether amplification factor is less than or equal to amplification factor threshold value, if so, going to S1204;Otherwise, it goes to S1209。
Assuming that the amplification factor in the present embodiment is 4 times, amplification factor threshold value is set as 5.
S1204: by all in addition to fringe region in obtained enlarged drawing due to image amplifies caused by blank picture Vegetarian refreshments is divided into pixel unit area independent, and determines corresponding in each comfortable source images in each pixel unit area Source image vegetarian refreshments.
S1205: the pixel value of the corresponding source image vegetarian refreshments in each pixel unit area is extracted.
S1206: each pixel unit area is set by the pixel value of the blank pixel point in each pixel unit area The pixel value of corresponding source image vegetarian refreshments.
S1207: in the fringe region in enlarged drawing it is all because image amplify due to caused by blank pixel point use Edge interpolation algorithm carries out pixel value filling.
S1208: the pixel value of the boundary pixel point in neighbor pixel unit area is subjected to transition correcting process.
S1209: the pixel value of blank pixel point caused by due to image amplifies is filled using interpolation algorithm.
3rd embodiment
Present embodiments provide a kind of terminal, the terminal can be mobile phone, tablet computer, laptop, palm PC, PDA, portable media player, Intelligent bracelet, smartwatch etc. move class intelligent terminal, are also possible to such as number TV, platform The fixed class intelligent terminal such as formula computer, vehicle-mounted computer;Shown in Figure 13, the terminal in the present embodiment further includes processor 1301, memory 1302 and communication bus 1303;
Communication bus 1303 is for realizing the communication connection between processor 1301 and memory 1302;
Processor 1301 is for executing one or more program stored in memory 1302, to realize as above each implement The step of terminal image amplification control method shown in example.
The present embodiment additionally provides a kind of computer readable storage medium, which can be applied to respectively In kind electric terminal, it is stored with one or more program, which can be handled by one or more Device executes, the step of to realize as above terminal image amplification control method shown in each embodiment.
It should be noted that, in this document, term " includes ", " comprising " or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of image amplification control method, which is characterized in that described image amplification control method includes:
Source images are amplified according to amplification factor to obtain enlarged drawing;
By in the enlarged drawing at least partly because image amplify due to caused by blank pixel point be divided into picture independent Vegetarian refreshments unit area, and determine corresponding source image vegetarian refreshments in each each leisure source images in pixel unit area, described in one It include at least one described blank pixel point in pixel unit area;
Extract the pixel value of each source image vegetarian refreshments;
It is each that each pixel unit area is set by the pixel value of the blank pixel point in each pixel unit area The pixel value of self-corresponding source image vegetarian refreshments.
2. image amplification control method as described in claim 1, which is characterized in that it is described by the enlarged drawing at least Part due to image amplification caused by blank pixel point be divided into pixel unit area independent and include:
All blank pixel points in the enlarged drawing are divided into pixel unit area independent.
3. image amplification control method as described in claim 1, which is characterized in that it is described by the enlarged drawing at least Part due to image amplification caused by blank pixel point be divided into pixel unit area independent and include:
By other all described blank pictures in the enlarged drawing in addition to the blank pixel point in image edge area Vegetarian refreshments is divided into pixel unit area independent.
4. image amplification control method as claimed in claim 3, which is characterized in that it is described by the enlarged drawing at least Part due to image amplification caused by blank pixel point to be divided into pixel unit area independent include: by the amplification Other all described blank pixel points in image in addition to the blank pixel point in image edge area are divided into respectively When independent pixel unit area, the method also includes:
For the blank pixel point in image edge area in the enlarged drawing, its pixel is filled using interpolation algorithm Value.
5. image amplification control method according to any one of claims 1-4, which is characterized in that the pixel unit area Each blank pixel for inside including is selected as generated blank pixel point after its corresponding source image vegetarian refreshments amplification.
6. image amplification control method according to any one of claims 1-4, which is characterized in that by each pixel dot element The pixel value that blank pixel in region is selected is set as the pixel of the corresponding source image vegetarian refreshments in each pixel unit area After value, further includes:
Obtain neighbor pixel unit area between boundary pixel point, the boundary pixel point be pixel unit area in most Pixel close to adjacent another pixel unit area;
Transition amendment is carried out to the pixel value of the boundary pixel point.
7. image amplification control method as claimed in claim 6, which is characterized in that the pixel to the boundary pixel point It includes at least one of that value, which carries out transition amendment:
The average pixel value for obtaining described two neighbor pixel unit areas all pixels point, by the picture of the boundary pixel point Plain value is set as the average pixel value;
Reduce the brightness of the boundary pixel point;
Reduce the saturation degree of the boundary pixel point.
8. image amplification control method according to any one of claims 1-4, which is characterized in that described by the enlarged drawing In at least partly due to image amplifies caused by before blank pixel point is divided into pixel unit area independent, also Include:
Judge whether the amplification factor is less than or equal to default amplification factor threshold value, if so, again by the enlarged drawing extremely Small part because image amplify due to caused by blank pixel point be divided into pixel unit area independent;Otherwise, using slotting Value-based algorithm in the enlarged drawing at least partly because image amplify due to caused by blank pixel point carry out pixel filling.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the communication connection between the processor and the memory;
The processor is for executing one or more program stored in memory, to realize as claim 1-8 is any The step of image amplification control method described in item.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize that claim 1-8 such as appoints The step of image amplification control method described in one.
CN201910082115.2A 2019-01-28 2019-01-28 Image amplification control method, terminal and computer readable storage medium Pending CN109919842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910082115.2A CN109919842A (en) 2019-01-28 2019-01-28 Image amplification control method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910082115.2A CN109919842A (en) 2019-01-28 2019-01-28 Image amplification control method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109919842A true CN109919842A (en) 2019-06-21

Family

ID=66960902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910082115.2A Pending CN109919842A (en) 2019-01-28 2019-01-28 Image amplification control method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109919842A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676630A (en) * 2021-08-09 2021-11-19 Oppo广东移动通信有限公司 Image processing method and device, terminal and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484434A (en) * 2002-09-17 2004-03-24 ���ǵ�����ʽ���� Method of pantography according to scale for digital image in embedded system
CN1633161A (en) * 2004-12-31 2005-06-29 北京中星微电子有限公司 A method for realizing integral multiple amplification of image
JP2006262306A (en) * 2005-03-18 2006-09-28 Seiko Epson Corp Pixel interpolator and pixel interpolation program
CN102568443A (en) * 2010-12-29 2012-07-11 无锡华润矽科微电子有限公司 Digital image scaling method
US20130077887A1 (en) * 2011-01-18 2013-03-28 Dimension, Inc. Methods and systems for up-scaling a standard definition (sd) video to high definition (hd) quality
CN106780340A (en) * 2016-12-27 2017-05-31 Tcl集团股份有限公司 A kind of image magnification method and device
CN107734281A (en) * 2017-09-22 2018-02-23 维沃移动通信有限公司 A kind of image magnification method and mobile terminal
CN108182668A (en) * 2017-12-29 2018-06-19 努比亚技术有限公司 A kind of enlarged drawing processing method, terminal and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484434A (en) * 2002-09-17 2004-03-24 ���ǵ�����ʽ���� Method of pantography according to scale for digital image in embedded system
CN1633161A (en) * 2004-12-31 2005-06-29 北京中星微电子有限公司 A method for realizing integral multiple amplification of image
JP2006262306A (en) * 2005-03-18 2006-09-28 Seiko Epson Corp Pixel interpolator and pixel interpolation program
CN102568443A (en) * 2010-12-29 2012-07-11 无锡华润矽科微电子有限公司 Digital image scaling method
US20130077887A1 (en) * 2011-01-18 2013-03-28 Dimension, Inc. Methods and systems for up-scaling a standard definition (sd) video to high definition (hd) quality
CN106780340A (en) * 2016-12-27 2017-05-31 Tcl集团股份有限公司 A kind of image magnification method and device
CN107734281A (en) * 2017-09-22 2018-02-23 维沃移动通信有限公司 A kind of image magnification method and mobile terminal
CN108182668A (en) * 2017-12-29 2018-06-19 努比亚技术有限公司 A kind of enlarged drawing processing method, terminal and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676630A (en) * 2021-08-09 2021-11-19 Oppo广东移动通信有限公司 Image processing method and device, terminal and computer readable storage medium
CN113676630B (en) * 2021-08-09 2024-01-09 Oppo广东移动通信有限公司 Image processing method and device, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106961706A (en) Method, mobile terminal and the computer-readable recording medium of communication pattern switching
CN107507007A (en) One kind pays 2 D code verification method, terminal and computer-readable recording medium
CN110175062A (en) A kind of screen-refresh frame per second method, mobile terminal and the storage medium of mobile terminal
CN109144440A (en) A kind of display refresh control method, terminal and computer readable storage medium
CN107645606A (en) Screen luminance adjustment method, mobile terminal and readable storage medium storing program for executing
CN109711226A (en) Two-dimensional code identification method, device, mobile terminal and readable storage medium storing program for executing
CN109963204A (en) Watermark adding method, device, mobile terminal and readable storage medium storing program for executing
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107885448A (en) Using the control method of touch operation, mobile terminal and readable storage medium storing program for executing
CN107734281A (en) A kind of image magnification method and mobile terminal
CN108196777A (en) A kind of flexible screen application process, equipment and computer readable storage medium
CN108198150A (en) A kind of removing method of dead pixel points of images, terminal and storage medium
CN107705247A (en) A kind of method of adjustment of image saturation, terminal and storage medium
CN107230065A (en) A kind of two-dimensional code display method, equipment and computer-readable recording medium
CN109040468A (en) Incoming display method, device and computer readable storage medium
CN108921859A (en) Image processing method, program and computer-readable storage media
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN107368241A (en) A kind of information processing method, equipment and computer-readable recording medium
CN109683797A (en) A kind of viewing area control method, equipment and computer readable storage medium
CN110213444A (en) Display methods, device, mobile terminal and the storage medium of mobile terminal message
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN109710159A (en) A kind of flexible screen response method, equipment and computer readable storage medium
CN109491577A (en) A kind of gripping exchange method, equipment and computer readable storage medium
CN107743199A (en) Image processing method, mobile terminal and computer-readable recording medium
CN107390855A (en) Control method, mobile terminal and the storage medium of mobile terminal split screen regional luminance

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: 20190621

RJ01 Rejection of invention patent application after publication