CN107743199A - Image processing method, mobile terminal and computer-readable recording medium - Google Patents
Image processing method, mobile terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107743199A CN107743199A CN201711034575.5A CN201711034575A CN107743199A CN 107743199 A CN107743199 A CN 107743199A CN 201711034575 A CN201711034575 A CN 201711034575A CN 107743199 A CN107743199 A CN 107743199A
- Authority
- CN
- China
- Prior art keywords
- pixel value
- image
- image file
- pixel
- target area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N25/00—Circuitry of solid-state image sensors [SSIS]; Control thereof
- H04N25/40—Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled
- H04N25/44—Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled by partially reading an SSIS array
- H04N25/445—Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled by partially reading an SSIS array by skipping some contiguous pixels within the read portion of the array
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N25/00—Circuitry of solid-state image sensors [SSIS]; Control thereof
- H04N25/70—SSIS architectures; Circuits associated therewith
- H04N25/702—SSIS architectures characterised by non-identical, non-equidistant or non-planar pixel layout
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of image processing method, mobile terminal and computer-readable recording medium.Include applied to image processing method described in mobile terminal:It is determined that need to perform the target area of predetermined image operation in the first image based on the generation of the first image file, wherein, the pixel value in the target area is the first pixel value, and the pixel value outside the target area is the second pixel value;Described first image file is the image file stored with the first pixel storage format;The predetermined image operation is carried out based on first pixel value and generates the 3rd pixel value;Pixel arrangement processing is carried out to the 3rd pixel value, generates the 4th pixel value;With reference to the 4th pixel value and second pixel value, the second image file is generated, wherein, second image file is the image file stored with the second pixel storage format.
Description
Technical field
The present invention relates to areas of information technology, more particularly to a kind of image processing method, mobile terminal and computer-readable
Storage medium.
Background technology
When carrying out image taking using All-in-One camera, it is necessary to which the view data gathered to the photo-sensitive cell of camera is entered
Row rearranges processing.View data rearranges, if the pixel being related to is relatively more, can cause sorting time length, mesh
The problems such as file generated speed of response of logo image is slow.
The content of the invention
In view of this, the embodiment of the present invention it is expected to provide a kind of image processing method, mobile terminal and computer-readable, extremely
Small part solves to divide above mentioned problem.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiment of the present invention provides a kind of image processing method, applied in mobile terminal, including:
It is determined that need to perform the target area of predetermined image operation in the first image based on the generation of the first image file, its
In, the pixel value in the target area is the first pixel value, and the pixel value outside the target area is the second picture
Element value;Described first image file is the image file stored with the first pixel storage format;
The predetermined image operation is carried out based on first pixel value and generates the 3rd pixel value;
Pixel arrangement processing is carried out to the 3rd pixel value, generates the 4th pixel value;
With reference to the 4th pixel value and second pixel value, the second image file is generated, wherein, second image
File is the image file stored with the second pixel storage format.
It is described to determine to need the target area for performing predetermined image operation, bag in the first image file based on such scheme
Include:
Determine to need the target area for performing Digital Zoom processing in the first image file;
It is described that the predetermined image operation is carried out based on first pixel value and generates the 3rd pixel value, including:
Digital Zoom is carried out based on first pixel value and generates the 3rd pixel value.
It is described to determine to need the target area for performing predetermined image operation, bag in the first image file based on such scheme
Include:
Determine to need the target area for performing special effect processing in described first image file;
It is described that the predetermined image operation is carried out based on first pixel value and generates the 3rd pixel value, including:
The special effect processing is carried out based on first pixel value and generates the 3rd pixel value.
Based on such scheme, when the target area is human face region, the special effect processing includes beautifying faces processing
And/or face makes a caricature of processing;
And/or
When the target area is the background area of human face region, the special effect processing includes:Stylization processing.
Based on such scheme, the target area is the intermediate region of described first image.
Based on such scheme, second image file, for exporting the second image;
Wherein, the 4th pixel value, for exporting the first area of second image;Second pixel value is used for
Export the second area of second image;
Wherein, the image resolution ratio of the first area is higher than the image resolution ratio of the second area.
Second aspect, the embodiment of the present invention provide a kind of mobile terminal, including:
Determining unit, for determining to need to perform predetermined image operation in the first image based on the generation of the first image file
Target area, wherein, the pixel value in the target area is the first pixel value, the picture outside the target area
Element value is the second pixel value;Described first image file is the image file stored with the first pixel storage format;
Processing unit, for carrying out the predetermined image operation based on first pixel value and generating the 3rd pixel value;
Arrangement units, for carrying out pixel arrangement processing to the 3rd pixel value, generate the 4th pixel value;
File generating unit, for reference to the 4th pixel value and second pixel value, generating the second image file,
Wherein, second image file is the image file stored with the second pixel storage format.
Based on such scheme, the determining unit, specifically for determining to need to perform Digital Zoom in the first image file
The target area of processing;
The processing unit, specifically for carrying out Digital Zoom based on first pixel value and generating the 3rd pixel
Value.
The third aspect, the embodiment of the present invention provide a kind of mobile terminal, including:Memory, processor and it is stored in described
On memory and by the computer program of the computing device;
The memory, stored for information;
The processor, be connected with the memory, for by performing the computer program, realize foregoing one or
The image processing method that multiple technical schemes provide.
Fourth aspect, a kind of computer-readable recording medium of the embodiment of the present invention, the computer-readable recording medium are used
In storage computer program;After the computer program is performed, it can realize what foregoing one or more technical schemes provided
Image processing method.
The embodiment of the present invention provides image processing method, mobile terminal and computer-readable, can determine whether out that needs are held first
The target area of row predetermined image operation, the target area is usually the nucleus that user pays close attention to.In the present embodiment
Enter and predetermined image operation is performed to the first pixel value in the nucleus, generate the 3rd pixel value;And only to the 3rd pixel value
Rearranged, the 4th pixel value of high image resolution after being arranged.In conjunction with the 4th pixel value and the first image text
The second image file is generated in the second pixel outside part target area.Second image file can be used for output user to want the mesh seen
Mark file.Like this, it is clear that during the image file of generation target image, predetermined image behaviour only is carried out to partial pixel
Make and rearrange operation, it is clear that reduce the number of pixels for needing predetermined image to operate and rearrange, it is pre- so as to reduce
Determine time and the computing resource that image manipulation and pixel rearrangement are consumed, so as to reduce response delay, improve response
Speed, and save computing resource;The characteristics of with the computing resource that response delay is small and consumes less.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of schematic flow sheet of image processing method provided in an embodiment of the present invention;
Fig. 4 is target area and the schematic diagram of nontarget area of another first image provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of the second image provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another mobile terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of remosiac processing provided in an embodiment of the present invention.
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, it will be appreciated by those skilled in the art 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.It will be understood by those skilled in the art that 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..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
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 here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can 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 between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can 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 it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal, each embodiment of the inventive method is proposed.
As shown in figure 3, the present embodiment provides a kind of image processing method, applied in mobile terminal, including:
Step S110:It is determined that need to perform the mesh of predetermined image operation in the first image based on the generation of the first image file
Region is marked, wherein, the pixel value in the target area is the first pixel value, the pixel value outside the target area
For the second pixel value;Described first image file is the image file stored with the first pixel storage format;
Step S120:The predetermined image operation is carried out based on first pixel value and generates the 3rd pixel value;
Step S130:Pixel arrangement processing is carried out to the 3rd pixel value, generates the 4th pixel value;
Step S140:With reference to the 4th pixel value and second pixel value, the second image file is generated, wherein, institute
It is the image file stored with the second pixel storage format to state the second image file.
The present embodiment provide mobile terminal can be as shown in Figure 1 mobile terminal.The mobile terminal can be mobile phone, flat board
People's mounted terminal that computer or wearable device etc. are carried by user.The mobile terminal can also be that various vehicles etc. are taken
The car-mounted terminal of load, it can also be that the equipment that various toys or robot carry carries terminal.
The mobile terminal may include in the present embodiment:All-in-One camera.The All-in-One camera can be four conjunctions
One camera.By taking four-in-one camera as an example, camera may include:The photo-sensitive cell of photosensitive N number of pixel, generated after photosensitive
Pixel value is N number of, if carry out the IMAQ of small area size, in order to lift the picture quality (example of small size area-graph picture
Such as, in order to lift pixel intensity or definition etc.) brightness value of 4 adjacent pixels can be weighted after, be considered as a picture
The brightness value of element is defeated.Like this, the image file after output only includes:Pixel value is N/4 pixel;It has been achieved in that image
The diminution of size, the luminance raising of single pixel in image is at the same time realized, improves picture quality.It is directed to 4 unifications
Pixel included by camera can be 16,000,000, i.e., described N is 16,000,000.If export small-sized image, 4,000,000 pictures shown
The image of element.
The All-in-One camera may include:Camera of the M unifications with N number of pixel, the N are the integer not less than 2,
The N is the maximum pixel number that the shooting first time IMAQ can gather.
The image file of such All-in-One camera displaying, can be:First kind image file including N number of pixel, and
Include the second class image file of N/M pixel.In the present embodiment, described first image file can be the First Kind Graph picture
File.In the present embodiment, the N and M is the positive integer not less than 2.
In the present embodiment, the target area in the first image of the first image file that first pixel value refers to
The pixel value of all pixels in domain, it is the set of the pixel value of all pixels in target area.Second pixel value can be
The set of the pixel value of all pixels beyond first objective area in image.Similarly, in embodiments of the present invention, described
Three pixel values and the 4th pixel value are also the set of the pixel value of corresponding pixel value.Fig. 4 show a kind of mesh of first image
Mark the schematic diagram of region and nontarget area.The target area can be described first image intermediate region, the non-target area
Domain is the region beyond target area, for example, can be the fringe region beyond intermediate region.
Pre-set image operation is carried out to the first pixel value in the step s 120, generates the 3rd pixel value.
In certain embodiments, the pre-set image operation, it may include:Digital Zoom.Being handled by Digital Zoom can be with
Amplification target region so that the pixel value increase that target area includes, for example, being handled based on image difference so that target area
Interior pixel increase.Certainly, only it is a kind of optional processing to Digital Zoom herein, concrete implementation mode may refer to existing skill
The method of various Digital Zooms in art.
In further embodiments, the pre-set image operation, may also include:Special efficacy operates.For example, beautifying faces are grasped
Make, the beautifying faces operation can include again:The operation of mill skin, go mole operation, the operation of thin face, whitening operation etc. various so that people
The operation of face beautification.
The special efficacy operation may also include:The funny processing operation of face so that face run counter to the change of normal face
Shape operation etc., for example, carrying out face distortion etc..
The special efficacy operation, may also include:Stylization operation, for example, being operated by stylization so that image-region is presented
Certain style characteristic, for example, older picture processing can cause the image after processing that the sensation of older picture is presented.
In certain embodiments, the special effect processing may also include:Background replacement processing etc..
The special effect processing has many kinds, just no longer schematically illustrates one by one herein.
In summary, therefore in certain embodiments, the step S110 may include:Determine to need to hold in the first image file
The target area of row Digital Zoom processing;The step S120 may include:Digital Zoom is carried out simultaneously based on first pixel value
Generate the 3rd pixel value.In further embodiments, the step S110 may include:Determine in described first image file
Need the target area of execution special effect processing;The step S120 may include:The special efficacy is carried out based on first pixel value
Handle and generate the 3rd pixel value.
Further, when the target area is human face region, the special effect processing include beautifying faces handle and/or
Face makes a caricature of processing;And/or when the target area is the background area of human face region, the special effect processing includes:Wind
Format processing.
The human face region can be the region for showing facial image.In certain embodiments, the human face region can be
A kind of special case of targeted graphical element region.Special effect processing is carried out to targeted graphical element region.The target
Graphic element can be the various regions such as face graphic element, building graphic element.
In certain embodiments, the target area is the intermediate region of described first image.The middle area of piece image
Domain is usually the nucleus that user's sight is paid close attention to, and in the present embodiment, the target area can directly be intermediate region.
In certain embodiments, the intermediate region can be operated the region of determination based on user or based on interior
Put the region that instruction automatically determines.For example, when the target area is intermediate region, it may be based on built-in instruction and automatically determine
Centered on the central point of the first image to the image-region of external expansion preset area.
Further, second image file, for exporting the second image;
Wherein, the 4th pixel value, for exporting the first area of second image;Second pixel value is used for
Export the second area of second image;
Wherein, the image resolution ratio of the first area is higher than the image resolution ratio of the second area.
The pixel storage format of second image file is different from the first image in the present embodiment.In this implementation
In pixel that directly obtained the second image of the second image file of output includes be more than the pixel that the first image includes.
In the present embodiment, second image includes:First area and second area.First area is to be based on the 4th picture
The image-region of element value generation, second area are the image-region based on the generation of the second pixel value.In the present embodiment, the firstth area
The image resolution ratio in domain is higher than the image resolution ratio of second area.Represent, the pixel included in first area in unit area
Number is more than the number of pixels included in second area in unit area.Like this, the image definition of first area is high
In the image definition of second area.But due to second area and the region of non-user concern, therefore scheme for a user
Image sharpness is slightly lower to have no problem, and does not interfere with Consumer's Experience.
As shown in figure 5, the figure in first area is formed based on the 4th pixel value, the figure in second area is base
Formed in the second pixel value.
In a word, the pixel storage format of the first image file and the second image file is different.For example, in the first image file
In some pixel value corresponding to pixel coordinate, be probably different in the second image file.Picture in step s 130
Plain arrangement processing may include:The pixel coordinate of pixel value rearranges.
As shown in fig. 6, the present embodiment provides a kind of mobile terminal, including:
Determining unit 310, for determining to need to perform predetermined image in the first image based on the generation of the first image file
The target area of operation, wherein, the pixel value in the target area is the first pixel value, outside the target area
Pixel value be the second pixel value;Described first image file is the image file stored with the first pixel storage format;
Processing unit 320, for carrying out the predetermined image operation based on first pixel value and generating the 3rd pixel
Value;
Arrangement units 330, for carrying out pixel arrangement processing to the 3rd pixel value, generate the 4th pixel value;
File generating unit 340, for reference to the 4th pixel value and second pixel value, generation the second image text
Part, wherein, second image file is the image file stored with the second pixel storage format.
The determining unit 310, processing unit 320, arrangement units 330 and file generating unit 340, may both correspond to locate
Manage device.The processor can realize the execution of predetermined registration operation, the second image by the execution of computer program or application software
Generation of file etc. operates.
The processor can be central processing unit, microprocessor, digital signal processor, application processor, programmable battle array
Row or application specific integrated circuit etc..
Alternatively, the determining unit 310, specifically for determining to need to perform Digital Zoom processing in the first image file
Target area;The processing unit 320, specifically for carrying out Digital Zoom based on first pixel value and generating described the
Three pixel values.
Alternatively, the determining unit 310, can be specifically used for determining to need to perform at Digital Zoom in the first image file
The target area of reason;The processing unit 320, it is particularly used in based on first pixel value progress Digital Zoom and generates institute
State the 3rd pixel value.
Further, the determining unit 310, it is additionally operable to determine to need to perform special effect processing in described first image file
Target area;The processing unit 320, it may also be used for the special effect processing is carried out based on first pixel value and generates institute
State the 3rd pixel value.
Further, when the target area is human face region, the special effect processing include beautifying faces handle and/or
Face makes a caricature of processing;And/or when the target area is the background area of human face region, the special effect processing includes:Wind
Format processing.
Alternatively, the target area is the intermediate region of described first image.
In certain embodiments, second image file, for exporting the second image;Wherein, the 4th pixel value,
For exporting the first area of second image;Second pixel value is used for the second area for exporting second image;
Wherein, the image resolution ratio of the first area is higher than the image resolution ratio of the second area.
As shown in fig. 7, the present embodiment provides a kind of mobile terminal, including:Memory 420, processor 430 and it is stored in institute
The computer program stated on memory 420 and performed by the processor 430;
The memory 420, for storage information;
The processor 430, it is connected with the memory 420, for by performing the computer program, realizing foregoing
The image processing method that one or more embodiments provide.
In certain embodiments, the electronic equipment also includes display screen;The display screen connects with the processor 420
Connect, can be various types of displays such as LCDs, organic light emitting diode (OLED) display screen, electric ink display screen
Screen.
The memory 420 may include:The memory of all kinds storage medium 420, can be with storage information.
The processor 430, is connected with the touch-screen and the memory 420 respectively, for example, total by integrated circuit
Line etc. is connected with the touch-screen and the memory 420, can be used for by reading and performing the meter on the memory 420
Calculation machine program etc. realizes the image processing method that foregoing one or more technical schemes provide.
In inventive embodiments, the processor 430 may include:Central processing unit, microprocessor, Digital Signal Processing
Device, application processor, programmable array or application specific integrated circuit etc..
The embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable recording medium storage has
Computer program;After the computer program is performed, it can realize at the image that foregoing one or more technical schemes provide
Reason method.
Computer-readable recording medium provided in an embodiment of the present invention can be various types of storage mediums, for example, at random
The various storage mediums such as memory, read-only storage, flash memory or DVD or USB flash disk, it is chosen as non-moment storage medium.
A specific example is provided below based on above-mentioned any embodiment:
In this example, when being shot using four-in-one camera, the figure of 4,000,000 pixels may be obtained
Picture.The image of 4,000,000 pixel substantially comprises 16,000,000 pixels, but due to the merging treatment of 4 pixels, if directly exporting
The image file of generation is gathered, is only capable of exporting the image of 4,000,000 pixels.The remosiac processing may be based on software calculation
The pixel rearrangement processing of method.For example, the pixel value that will be sorted according to pseudo- Bel's module (pseudo Bayer pattern)
The Bayer pattern (Bayer pattern) of standard is converted to, pixel is completed and resets.In specific implementation, at the remosiac
Reason may also include:Some picture quality liftings handle, for example, perform bad pixel correct (Bad Pixel Correction,
BPC), the bad pixel is corrected and may include:Removal of noise point etc..
In fig. 8, a grid can represent a pixel;The grid of identical filling before remosiac processing is carried out,
Same pixel available for the first image provides pixel-parameters, for example, brightness value.The grid of difference filling is at remosiac
Before reason, pixel-parameters are provided available for different pixels in the first image.
After remosiac processing is completed, the grid of identical filling is broken up, and is provided equivalent to for same pixel
The pixel value of pixel-parameters is broken up, and is rearranged.
Fig. 8 show the arrangement change schematic diagram of the pixel value after remosiac processing.Obvious remosiac before processings
Pixel storage format (i.e. pixel arrangement) afterwards is different.
If necessary to shoot the image of 16,000,000 pixels, then terminal needs the preview image by camera shooting to enter
Row remosiac processing, i.e., rearranged pixel, then obtain target image.
The remosiac processing may include:It will can only export the pixel of 16,000,000 pixels of the image of 4,000,000 pixels
Value, carry out rearrangement processing of the pixel value such as Coordinate Conversion and/or coordinate mapping in image file.
Under the application scenarios, if necessary to carry out Digital Zoom, after prior art can be to carrying out remosiac processing
The intermediate region of target image carries out Digital Zoom processing, i.e., first carries out remosiac and carry out Digital Zoom again.In this programme,
Terminal chooses the intermediate region (region is related to zoom size) for the image that four-in-one camera is shot according to the size of zoom,
Then Digital Zoom processing is carried out to the intermediate region, then remosiac processing is carried out to the region after Digital Zoom processing,
I.e., it has no all images are carried out with remosiac processing, remosiac processing only is carried out to the region after Digital Zoom,
So as to improve processing speed.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only
A kind of division of logic function, there can be other dividing mode when actually realizing, such as:Multiple units or component can combine, or
Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion
Point mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, equipment or unit
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can positioned at a place, can also be distributed to multiple network lists
In member;Partly or entirely unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing module, also may be used
To be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned
Integrated unit can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:It is movable storage device, read-only
Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
- A kind of 1. image processing method, it is characterised in that applied in mobile terminal, including:It is determined that need to perform the target area of predetermined image operation in the first image based on the generation of the first image file, wherein, Pixel value in the target area is the first pixel value, and the pixel value outside the target area is the second pixel Value;Described first image file is the image file stored with the first pixel storage format;The predetermined image operation is carried out based on first pixel value and generates the 3rd pixel value;Pixel arrangement processing is carried out to the 3rd pixel value, generates the 4th pixel value;With reference to the 4th pixel value and second pixel value, the second image file is generated, wherein, second image file For the image file stored with the second pixel storage format.
- 2. according to the method for claim 1, it is characterised in thatIt is described to determine to need the target area for performing predetermined image operation in the first image file, including:Determine to need the target area for performing Digital Zoom processing in the first image file;It is described that the predetermined image operation is carried out based on first pixel value and generates the 3rd pixel value, including:Digital Zoom is carried out based on first pixel value and generates the 3rd pixel value.
- 3. according to the method for claim 1, it is characterised in thatIt is described to determine to need the target area for performing predetermined image operation in the first image file, including:Determine to need the target area for performing special effect processing in described first image file;It is described that the predetermined image operation is carried out based on first pixel value and generates the 3rd pixel value, including:The special effect processing is carried out based on first pixel value and generates the 3rd pixel value.
- 4. according to the method for claim 3, it is characterised in thatWhen the target area is human face region, the special effect processing includes that beautifying faces are handled and/or face makes a caricature of place Reason;And/orWhen the target area is the background area of human face region, the special effect processing includes:Stylization processing.
- 5. according to the method described in any one of Claims 1-4, it is characterised in thatThe target area is the intermediate region of described first image.
- 6. according to the method described in any one of Claims 1-4, it is characterised in thatSecond image file, for exporting the second image;Wherein, the 4th pixel value, for exporting the first area of second image;Second pixel value is used to export The second area of second image;Wherein, the image resolution ratio of the first area is higher than the image resolution ratio of the second area.
- A kind of 7. mobile terminal, it is characterised in that including:Determining unit, for determining to need the mesh for performing predetermined image operation in the first image based on the generation of the first image file Region is marked, wherein, the pixel value in the target area is the first pixel value, the pixel value outside the target area For the second pixel value;Described first image file is the image file stored with the first pixel storage format;Processing unit, for carrying out the predetermined image operation based on first pixel value and generating the 3rd pixel value;Arrangement units, for carrying out pixel arrangement processing to the 3rd pixel value, generate the 4th pixel value;File generating unit, for reference to the 4th pixel value and second pixel value, generating the second image file, its In, second image file is the image file stored with the second pixel storage format.
- 8. mobile terminal according to claim 7, it is characterised in thatThe determining unit, specifically for determining to need the target area for performing Digital Zoom processing in the first image file;The processing unit, specifically for carrying out Digital Zoom based on first pixel value and generating the 3rd pixel value.
- A kind of 9. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and by described The computer program of computing device;The memory, stored for information;The processor, it is connected with the memory, for by performing the computer program, realizing claim 1 to 6 times The image processing method of one offer.
- 10. a kind of computer-readable recording medium, the computer-readable recording medium is used to store computer program;The meter After calculation machine program is performed, the image processing method that any one of claim 1 to 6 provides can be realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711034575.5A CN107743199B (en) | 2017-10-30 | 2017-10-30 | Image processing method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711034575.5A CN107743199B (en) | 2017-10-30 | 2017-10-30 | Image processing method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107743199A true CN107743199A (en) | 2018-02-27 |
CN107743199B CN107743199B (en) | 2020-05-15 |
Family
ID=61233101
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711034575.5A Active CN107743199B (en) | 2017-10-30 | 2017-10-30 | Image processing method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107743199B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110956679A (en) * | 2018-09-26 | 2020-04-03 | Oppo广东移动通信有限公司 | Image processing method and device, electronic equipment and computer readable storage medium |
CN111028137A (en) * | 2018-10-10 | 2020-04-17 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic equipment and computer readable storage medium |
CN111294905A (en) * | 2020-02-03 | 2020-06-16 | RealMe重庆移动通信有限公司 | Image processing method, image processing apparatus, storage medium, and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105096241A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Face image beautifying device and method |
CN105321147A (en) * | 2014-06-25 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Image processing method and apparatus |
CN106507067A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method, control device and electronic installation |
CN106507068A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Image processing method and device, control method and device, imaging and electronic installation |
CN106506984A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Image processing method and device, control method and device, imaging and electronic installation |
CN106507019A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method, control device, electronic installation |
-
2017
- 2017-10-30 CN CN201711034575.5A patent/CN107743199B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105321147A (en) * | 2014-06-25 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Image processing method and apparatus |
CN105096241A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Face image beautifying device and method |
CN106507067A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method, control device and electronic installation |
CN106507068A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Image processing method and device, control method and device, imaging and electronic installation |
CN106506984A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Image processing method and device, control method and device, imaging and electronic installation |
CN106507019A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method, control device, electronic installation |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110956679A (en) * | 2018-09-26 | 2020-04-03 | Oppo广东移动通信有限公司 | Image processing method and device, electronic equipment and computer readable storage medium |
CN110956679B (en) * | 2018-09-26 | 2023-07-14 | Oppo广东移动通信有限公司 | Image processing method and device, electronic equipment and computer readable storage medium |
CN111028137A (en) * | 2018-10-10 | 2020-04-17 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic equipment and computer readable storage medium |
CN111028137B (en) * | 2018-10-10 | 2023-08-15 | Oppo广东移动通信有限公司 | Image processing method, apparatus, electronic device, and computer-readable storage medium |
CN111294905A (en) * | 2020-02-03 | 2020-06-16 | RealMe重庆移动通信有限公司 | Image processing method, image processing apparatus, storage medium, and electronic device |
CN111294905B (en) * | 2020-02-03 | 2023-04-25 | RealMe重庆移动通信有限公司 | Image processing method, image processing device, storage medium and electronic apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN107743199B (en) | 2020-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108052302A (en) | Association display methods, terminal and the computer readable storage medium of double-sided screen | |
CN107507007A (en) | One kind pays 2 D code verification method, terminal and computer-readable recording medium | |
CN107885474A (en) | Multi-screen terminal mobile payment control method, terminal and computer-readable recording medium | |
CN108055411A (en) | Flexible screen display methods, mobile terminal and computer readable storage medium | |
CN107729298A (en) | Screen occlusion area processing method, mobile terminal and computer-readable recording medium | |
CN107194963A (en) | A kind of dual camera image processing method and terminal | |
CN107592460A (en) | A kind of video recording method, equipment and computer-readable storage medium | |
CN108345426A (en) | A kind of terminal control method, terminal and computer readable storage medium | |
CN109739602A (en) | A kind of mobile terminal wallpaper setting method and device, mobile terminal and storage medium | |
CN107730303A (en) | A kind of advertisement sending method, equipment and computer-readable recording medium | |
CN107315515A (en) | Color change method, terminal and the computer-readable recording medium of status bar icon | |
CN107749919A (en) | A kind of application program page display method and equipment | |
CN107404618A (en) | A kind of image pickup method and terminal | |
CN107181865A (en) | Processing method, terminal and the computer-readable recording medium of unread short messages | |
CN107705247A (en) | A kind of method of adjustment of image saturation, terminal and storage medium | |
CN108196777A (en) | A kind of flexible screen application process, equipment and computer readable storage medium | |
CN107239205A (en) | A kind of photographic method, mobile terminal and storage medium | |
CN107483804A (en) | A kind of image pickup method, mobile terminal and computer-readable recording medium | |
CN107506163A (en) | Adjust method, terminal and the computer-readable recording medium of screen display | |
CN107861663A (en) | Dock display methods and device under a kind of screen comprehensively | |
CN107678625A (en) | Information Sharing menu display method, mobile terminal and computer-readable recording medium | |
CN107390856A (en) | A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption | |
CN107743199A (en) | Image processing method, mobile terminal and computer-readable recording medium | |
CN107368241A (en) | A kind of information processing method, equipment and computer-readable recording medium | |
CN107566608A (en) | A kind of system air navigation aid, equipment 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |