CN107993269A - A kind of image processing method and mobile terminal - Google Patents
A kind of image processing method and mobile terminal Download PDFInfo
- Publication number
- CN107993269A CN107993269A CN201711013139.XA CN201711013139A CN107993269A CN 107993269 A CN107993269 A CN 107993269A CN 201711013139 A CN201711013139 A CN 201711013139A CN 107993269 A CN107993269 A CN 107993269A
- Authority
- CN
- China
- Prior art keywords
- picture
- lattice file
- mobile terminal
- target treatment
- obtains
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/56—Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Image Processing (AREA)
Abstract
The present invention provides a kind of image processing method and mobile terminal, this method includes:The first picture is obtained, the first picture is converted into lattice file, afterwards according to the pending area of the first picture, determines the target treatment of lattice file, and is mixed colours target treatment, obtains second picture.The present invention shows the first picture by lattice file, the processing of the target treatment to lattice file can be passed through, reach and hue adjustment is carried out to the local location of the first picture, obtain amended second picture, so as to targetedly carry out toning processing to picture, treatment effect is improved, improves user experience.
Description
Technical field
The present invention relates to picture Processing Technique field, more particularly to a kind of image processing method and mobile terminal.
Background technology
Higher and higher with the utilization rate of photographing function of mobile phone, user is to a series of also higher and higher, the U.S.s of sheet of requirement
The filter toning for changing picture is done something for the occasion and is given birth to, and carrying out certain parameter preset to picture color adjusts, or is superimposed by filter
Upper original picture, makes user obtain desired picture effect.
In first technology, be superimposed for the filter of picture and toning, both for whole picture or some color come into
Row toning, for example, adjusting the contrast of whole picture, gray scale etc., the specific practice is:The pixel-parameters of whole picture are changed, or
Whole original picture is covered by a picture superimposed layer.
However, current filter superposition or mixing colours and both for the whole picture of picture or some color locate
Reason so that treatment effect shows slightly dull, really can not carry out color adjustment according to the actual conditions per pictures, reduce user's body
Degree of testing.
The content of the invention
The present invention provides a kind of image processing method, mobile terminal and computer-readable recording medium, to solve at present
Filter is superimposed or toning can only be directed to whole picture or the problem of handle of some color of picture.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of image processing method, applied to mobile whole
End, including:
Obtain the first picture;
First picture is converted into lattice file;
According to the pending area of first picture, the target treatment of the lattice file is determined;
Mix colours the target treatment, obtain second picture.
In a first aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, which includes:
First acquisition module, for obtaining the first picture;
Conversion module, for first picture to be converted into lattice file, the resolution ratio of the lattice file with it is described
The resolution match of first picture;
Determining module, for the pending area according to first picture, determines the target processing of the lattice file
Region;
Toning module, for mixing colours the target treatment, obtains second picture.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, which includes processor, memory
And the computer program that can be run on the memory and on the processor is stored in, the computer program is by the place
The step of reason device realizes image processing method of the present invention when performing.
The third aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, the computer-readable storage
Computer program is stored on medium, the step of image processing method of the present invention is realized when computer program is executed by processor
Suddenly.
The embodiment of the present invention shows the first picture by lattice file, can pass through the target treatment to lattice file
Processing, reach and hue adjustment carried out to the local location of the first picture, amended second picture is obtained, so that targetedly
Toning processing is carried out to picture, treatment effect is improved, improves user experience.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 shows a kind of flow chart of image processing method in the embodiment of the present invention one;
Fig. 2 shows a kind of flow chart of image processing method in the embodiment of the present invention two;
Fig. 2A shows a kind of schematic diagram of Three-dimensional Display look-up table in the embodiment of the present invention two;
Fig. 2 B show a kind of interface schematic diagram of image processing method in the embodiment of the present invention two;
Fig. 3 shows a kind of structure diagram of mobile terminal in the embodiment of the present invention three;
Fig. 4 shows a kind of structure diagram of mobile terminal in the embodiment of the present invention four;
Fig. 5 shows a kind of hardware architecture diagram of mobile terminal in each embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, belongs to the scope of protection of the invention.
Embodiment one
With reference to Fig. 1, show the flow chart of the image processing method of the embodiment of the present invention one, can specifically include following step
Suddenly:
Step 101, the first picture is obtained.
In embodiments of the present invention, the first picture is that user needs to carry out the pending picture of toning processing, Yong Huke
Operated with a series of processing by beautification pictures, certain parameter adjustment is carried out to picture color, or be superimposed with using filter
Original picture, obtains the picture effect that user wants, wherein, obtain the first picture approach have it is a variety of, in embodiments of the present invention,
The acquisition modes of the first picture can be described for mobile terminal.
For example, carrying out photograph taking by the shooting application of mobile terminal, after the completion of shooting, the photo can be used to make
For the first picture, and it is continued with.In addition, mobile terminal can also be by calling photograph album interface, extraction has previously been stored in
Picture in photograph album is as the first picture, also, user can also be when browsing social networking application or webpage, the figure admired to oneself
Piece is acquired, and is handled as the first picture.
It should be noted that after the first picture is got, mobile terminal is to reminding whether user is needed to the first picture
Picture carry out local directed complete set, if user selection be to enter step 102.
Step 102, first picture is converted into lattice file.
In embodiments of the present invention, lattice file (CUBE, Cubicomp PictureMaker) is one kind by lattice point lattice
Formula handles the file of data, can usually be used as visual software data streams read to carry out display contour surface or further analysis
The template of processing, lattice file can be widely applied to image processing field, by the way that the display look-up table of picture itself is imported
Dot matrix template, can generate the lattice file of the dot matrix format of a picture, and this document includes the picture of multiple lattice points, i.e. picture
Element, the information such as color parameter of pixel position coordinate, pixel can be present in dot matrix text by way of dot matrix arrangement
In multiple lattice points in part, at this time, lattice file is just as a Map Searching table, to find the picture of picture corresponding position
The information such as color parameter of element, pixel position coordinate, pixel, facilitates user according to demand, and regional area is carried out to picture
Selection.
Different from one-dimensional display look-up table of the prior art, the lattice file in the present invention is that the three-dimensional based on picture is looked into
Table is looked for be handled, compared to R (red) G (green) B (indigo plant) three primary colors of one-dimensional look-up table, three dimensional lookup table can be sat with solid
Target form, R (red) G (green) B (indigo plant) is mutually combined in a manner of multiple combinations, forms more colors, it is in color
There is more preferably effect in terms of performance.
It should be noted that the resolution ratio of lattice file and the resolution ratio of the first picture need unanimously, such as the first picture is 512
512 resolution ratio is multiplied by, then the resolution ratio of lattice file is also required to be multiplied by 512 for 512.To avoid the lattice point deficiency of lattice file
To accommodate the data of the first picture, or there is the vacant phenomenon of data in the lattice point of lattice file.
Step 103, according to the pending area of first picture, the target treatment of the lattice file is determined.
Current, the filter toning for picture is handled, and user has according to personalized preference degree, for the first picture
The demand that is individually adjusted of local color so that the processing to picture produces more preferable picture tone more for specific aim
Expression effect.
In embodiments of the present invention, for the demand, the relevant operation of user can be received by mobile terminal, into
Row determines the first picture pending area, and is further mapped in lattice file, determines the target processing of lattice file
Region.
Specifically, mobile terminal can show the first picture in touch screen, the touch-control of the first picture is grasped by user
Make, pending area is selected in drawing, in addition, user can also be by way of input coordinate, to determine pending area.
After pending area is determined, that is, the pixel position coordinate information of pending area is obtained, at this time will
This information imports lattice file, you can the information such as the pixel of the first picture pending area and the color parameter of pixel is mapped to,
Pass through subsequent treatment at this time, you can the modification to above- mentioned information is completed, to achieve the purpose that toning.
Step 104, mix colours the target treatment, obtain second picture.
In embodiments of the present invention, after the target treatment of lattice file is determined, target treatment region can be directed to
The information such as the color parameter of the corresponding pixel in domain and pixel, under certain tolerance specifications, repair the color parameter of pixel
Change, to change in the first picture, the parameter such as the contrast of pending area, brightness, gray scale, clarity so that the first picture energy
Regional area is enough based on, carries out many hue adjustments, obtains more personalized picture, meets more user demands.
In conclusion the embodiment of the present invention shows the first picture by lattice file, the mesh to lattice file can be passed through
The processing of processing region is marked, reaches and hue adjustment is carried out to the local location of the first picture, obtain amended second picture, from
And toning processing is targetedly carried out to picture, treatment effect is improved, improves user experience.
Embodiment two
With reference to Fig. 2, show the flow chart of the image processing method of the embodiment of the present invention two, can specifically include following step
Suddenly:
Step 201, the first picture is obtained.
The step specifically can refer to the description in above-mentioned steps 101, and details are not described herein again.
Step 202, filter superimposed layer is obtained, the size of the filter superimposed layer and the area of first picture are big
It is small consistent.
In embodiments of the present invention, image procossing application can generally preset multiple filter superimposed layer files, specific storage
Can be LUT files in the database, such as:" missing old times or old friends " filter, " pure and fresh " filter, can be obtained by calling database interface
The filter superimposed layer file is taken, and the area of the filter superimposed layer in this document is arranged to consistent with the area of the first picture
.
Step 203, the filter superimposed layer is covered into first picture.
In embodiments of the present invention, filter superimposed layer can set such as transparency parameter in range of tolerable variance, when filter is folded
After adding layer to cover the first picture, i.e., filtering effects with the addition of to the first picture, due to the setting of transparency parameter, filter superimposed layer
The specific manifestation of original picture is not interfered with.
Step 204, first picture is converted into lattice file.
Optionally, step 204 can also include sub-step 2041, sub-step 2042, sub-step 2043.
Sub-step 2041, extracts the Three-dimensional Display look-up table of first picture.
In embodiments of the present invention, the display look-up table (LUT, Look-Up-Table) of the first picture is preset at picture number
In, it can be carried out by calling corresponding interface to show that look-up table extracts, and according to the cubical forms that show of 3D
Storage, forms 3D LUT.
Specifically, display look-up table essence is a random access memory (RAM), it is whenever one letter of input that it, which is acted on,
Number it is exactly to input primary address to table look-up, finds out the corresponding content in address and export, pixel seat can be played for picture
Demarcate the effect of position.
With reference to Fig. 2A, it illustrates a kind of schematic diagram of Three-dimensional Display look-up table provided in an embodiment of the present invention, it includes R
Four kinds of color classifications of (red) G (green) B (indigo plant) W (white), become the design of four colour pattern pixels, colour gamut can be wider.Look-up table is shown in 1D
On the basis of, Three-dimensional Display look-up table adds the color classification of W (white), and single pixel is by R (red) G (green) B (indigo plant) W (white) four
The mode of a sub- pixel is combined, and effective driving by W (white) sub-pixels shows abundant color.
Sub-step 2042, establishes the dot matrix template with the resolution match of the Three-dimensional Display look-up table.
In this step, both can by establishing the dot matrix template file with the resolution match of Three-dimensional Display look-up table,
And then Three-dimensional Display look-up table is imported into the template.
Sub-step 2043, imports the dot matrix template by the Three-dimensional Display look-up table, obtains the lattice file.
Fig. 2A presents the form of the Three-dimensional Display look-up table in a concrete case, in practical applications, Three-dimensional Display
The cutting form of look-up table has a variety of, and the embodiment of the present invention is not construed as limiting this, in fig. 2, utilizes cubical mode table
Now show look-up table, the first picture each row and column can be arranged to 8 small lattice, totally 64 lattice, each small lattice resolution multiplies for 64
64, this first picture for representing original has been cut into 64 parts, and Three-dimensional Display look-up table importing 512 is multiplied to 512 dot matrix template at this time,
Lattice file can be obtained.
Step 205, according to the pending area of first picture, the target treatment of the lattice file is determined.
Optionally, step 205 can also include sub-step 2051, sub-step 2052.
Sub-step 2051, obtains the positional information of pending area in first picture.
In this step, with reference to Fig. 2 B, it illustrates a kind of interface schematic diagram of image processing method, when getting first
During picture 10, mobile terminal can show the first picture 10 in touch screen, and user can be carried out with finger on touch screen at this time
Selection operation is drawn, pending area 20 is carried out to draw choosing to choose, so that it is determined that the pending area 20 of the first picture, while also just obtain
Obtained the positional information of pending area 20.In addition, user can also be by way of input coordinate, to determine pending area
20 positional information.
Sub-step 2052, according to the positional information, maps corresponding target treatment in the lattice file.
The pixel of the picture in embodiments of the present invention, included due to storing Three-dimensional Display look-up table in lattice file,
The information such as color parameter of pixel position coordinate, pixel, maps the step of corresponding target treatment in lattice file
It is rapid to be specially:Positional information by the pending area obtained in sub-step 2051, i.e. pixel position coordinate information, i.e.,
Corresponding pixel position coordinate information can be mapped in lattice file.
Step 206, mix colours the target treatment, obtain second picture.
Optionally, step 206 can also include sub-step 2061, sub-step 2062, sub-step 2063, sub-step 2064.
Sub-step 2061, obtains in the lattice file, the corresponding first object value of the target treatment.
In this step, the positional information of the pending area obtained in sub-step 2051, i.e. pixel position are passed through
Coordinate information, it is possible to corresponding pixel position coordinate information, pixel, the color of pixel ginseng are mapped in lattice file
The information such as number, first object value can include pixel position coordinate information, pixel, the color parameter etc. of pixel being mapped to
Information.
Sub-step 2062, carries out interpolation calculation to the first object value, obtains corresponding second desired value.
The field that interpolation algorithm is applied is more, and it is than more typical application, due to image that processing is zoomed in and out to image
The gray value of pixel is that discrete therefore general processing method is picture to the first object value on integer point coordinates originally
Element value generates continuous curved surface into row interpolation, then on interpolation curved surface resampling to obtain the gray scale of zoomed image pixel
Target treatment, in this step, can be reduced, amplified or is adjusted clarity by value by difference arithmetic, with into one
Operability of the step optimization to target treatment.
With reference to Fig. 2A, using the parameter of a color in color R (red) G (green) B (indigo plant) as index value, find corresponding
Grid, then navigated to according to the parameter value of two other color in grid in the modification desired value of mapping, in the process
In, the grid before modification and amended grid are subjected to interpolation calculation, to complete to be reduced target treatment, amplify
Or the operation of adjustment clarity.
Sub-step 2063, changes second desired value by default first tolerance, obtains the 3rd desired value.
Sub-step 2064, replaces the first object value in the lattice file by the 3rd desired value, obtains the second figure
Piece.
In embodiments of the present invention, it can be modified, come according to the color parameter of the pixel included to the second desired value
The hue adjustment to target treatment is completed, e.g., changes the ginseng of R (red) G (green) B (indigo plant) W (white) four sub-pixel of pixel
Number, obtains more preferable picture effect, it is necessary to which explanation, the modification to the parameter are needed under the restriction of the first tolerance
Carry out, it is impossible to beyond the scope of the first tolerance, to avoid the aesthetics of excessive adjustment destruction picture.
Further, picture processing application can preset multiple preferable hue adjustment parameters, user can to its into
Row selection, to carry out picture processing, in addition, user can also input corresponding parameter and carry out picture tune according to the demand of oneself
Color.
Step 207, according to default second tolerance, changes in temperature toning processing is carried out to the second picture.
In embodiments of the present invention, threshold value division can be carried out to second picture, obtains multiple color classifications, and according to right
The selection of color classification, is further chosen, and in default second tolerance, by selecting cold and warm tone parameter, is adjusted
Save simple changes in temperature or the other color of superposition, when can allow the user to carry out color adjustment to picture, can according to personal like come into
The adjustment picture color of one step, obtains oneself desired picture.
Optionally, step 207 can also include sub-step 2071, sub-step 2072, sub-step 2073, sub-step 2074,
Sub-step 2075.
Sub-step 2071, obtains toning parameter.
In the present invention, obtain toning parameter can be by sub-step 20711 and sub-step 20712, presetting and holding second
Established under difference changes in temperature toning coordinate, changes in temperature toning coordinate on setting one pulling bar, by user to the coordinate pull bar into
Row pulls, and chooses a toning parameter and carries out changes in temperature toning.
In addition, the picture processing application of mobile terminal can also generate color saucer, user can also by inhaling color device software,
Color is drawn in color saucer and obtains corresponding toning parameter, enhances the expansion of toning parameter acquiring mode.
Optionally, sub-step 2071 can also include sub-step 20711, sub-step 20712.
Sub-step 20711, according to the second default tolerance, establishes changes in temperature toning coordinate.
In embodiments of the present invention, with reference to Fig. 2 B, changes in temperature toning coordinate can be established under the restriction of the second tolerance
30, the scope of the wherein bound of changes in temperature toning coordinate 30 is determined that second holds, it is necessary to illustrate by default second tolerance
It further comprises the design parameter of transparency in difference, so that when generating color addition layer, by the pixel face of color addition layer
Color parameter is multiplied by the transparency parameter, obtains final effect, if for example, transparency be 20%, the picture of native color superimposed layer
Plain color parameter need to be multiplied by 0.2, can so cause changes in temperature toning to influence the performance of original picture not too much.
Sub-step 20712, receives the selection operation for changes in temperature toning coordinate, obtains toning parameter.
In embodiments of the present invention, with reference to Fig. 2 B, by one pulling bar 301 of setting on changes in temperature toning coordinate 30, lead to
Crossing user pulls bar 301 to pull on the coordinate, chooses a coordinate, determines that the corresponding toning parameter of the coordinate carries out changes in temperature
Toning.
Sub-step 2072, according to preset rules, carries out color threshold division to the second picture, obtains multiple colors point
Class region.
In embodiments of the present invention, color threshold division is carried out to second picture according to preset rules, specially according to face
Colour sorting rule, same classification is divided in by the close color of colour gamut in second picture, each classification can be directed to one
Color classification region, for example, a portrait photo, can be divided by color threshold, skin color is classified, obtains pair
The color classification region answered, i.e., the skin part in portrait, similarly, can also determine that the background sky in portrait photo corresponds to
Color classification region, the corresponding color classification region of dress ornament of gorgeous color etc. so can be by picture according to user demand
It is divided into different color classification regions, by the autonomous selection of user, targetedly carries out hue adjustment, enhance picture processing
Expansion.
Sub-step 2073, receives the selection operation for the color classification region, obtains color of object specification area.
Sub-step 2074, according to default second tolerance, generation and the toning matched color addition layer of parameter, institute
The size for stating color addition layer is consistent with the size of the color of object specification area.
In embodiments of the present invention, the design parameter of transparency is further comprises in the second tolerance, so that when generation face
During color superimposed layer, the pixel color parameter of color addition layer is multiplied by the transparency parameter, obtains final effect, if for example,
Transparency is 20%, then the pixel color parameter of native color superimposed layer need to be multiplied by 0.2, can so make it that changes in temperature toning is within reason
Influence the performance of original picture.
Sub-step 2075, the color of object specification area is covered by the color addition layer.
In embodiments of the present invention, have chosen with reference to Fig. 2 B, such as user in picture, the corresponding color of object point of shade
Class region 40, then the rear extended meeting generation color addition layer consistent with the size of color of object specification area 40 is to color of object
Specification area 40 is overlapped, and without modifying to other regions, enhances the specific aim of picture processing.
Step 208, emergence processing is carried out to the edge of the target treatment.
In this step, with reference to Fig. 2 B, target treatment 20 or color of object specification area 40 can be directed to, to region
Edge carry out emergence processing, local Fuzzy Processing is done with the edge to above-mentioned zone so that the region for processing of mixing colours can be with
Whole picture preferably merges, and avoids the region that toning is handled excessively lofty.It should be noted that emergence processing need to be set by user
Corresponding tolerance is put, to determine the size of the region area of emergence processing.
In conclusion a kind of image processing method provided in an embodiment of the present invention, including the first picture is obtained, by the first figure
Piece is converted into lattice file, afterwards according to the pending area of the first picture, determines the target treatment of lattice file, and right
Target treatment is mixed colours, and obtains second picture.The embodiment of the present invention shows the first picture by three-dimensional lattice file,
Make it possible to determine the coordinate information of pending area by the local location selection operation to the first picture, and believed according to coordinate
Breath, relevant pixel-parameters are determined in lattice file, by the processing to pixel-parameters, reach the local position to the first picture
The adjustment for carrying out multiple color tones manifestation mode is put, amended second picture is obtained, after second picture is obtained, passes through color threshold
Picture is further classified in value division, obtains multiple color classification regions, receives the choosing for color classification region afterwards
Operation is selected, obtains color of object specification area, changes in temperature toning finally is carried out to color of object specification area, is improved at picture
A variety of implementations of reason.Toning processing is carried out to picture so as to more targeted, improves treatment effect, being capable of real root
Color adjustment is carried out according to the actual conditions of every pictures, improves user experience.
Embodiment three
With reference to Fig. 3, show a kind of structure diagram of mobile terminal 300 of the embodiment of the present invention three, can specifically include:
First acquisition module 301, for obtaining the first picture.
Conversion module 302, for first picture to be converted into lattice file.
Determining module 303, for the pending area according to first picture, at the target for determining the lattice file
Manage region.
Toning module 304, for mixing colours the target treatment, obtains second picture.
In conclusion the embodiment of the present invention shows the first picture by lattice file, the mesh to lattice file can be passed through
The processing of processing region is marked, reaches and hue adjustment is carried out to the local location of the first picture, obtain amended second picture, from
And toning processing is targetedly carried out to picture, treatment effect is improved, improves user experience.
Example IV
With reference to Fig. 4, show a kind of structure diagram of mobile terminal 400 of the embodiment of the present invention four, can specifically include:
First acquisition module 401, for obtaining the first picture.
Second acquisition module 402, for obtaining filter superimposed layer, the size of the filter superimposed layer and described first
The size of picture is consistent.
Overlay module 403, for the filter superimposed layer to be covered first picture.
Conversion module 404, for first picture to be converted into lattice file.
Optionally, conversion module 404, including:
Extracting sub-module, for extracting the Three-dimensional Display look-up table of first picture
Setting up submodule, for establishing the dot matrix template with the resolution match of the Three-dimensional Display look-up table.
Submodule is imported, for the Three-dimensional Display look-up table to be imported the dot matrix template, obtains the lattice file.
Determining module 405, for the pending area according to first picture, at the target for determining the lattice file
Manage region.
Optionally, determining module 405 includes:
First acquisition submodule, for obtaining the positional information of pending area in first picture.
Mapping submodule, for according to the positional information, corresponding target treatment region to be mapped in the lattice file
Domain.
Toning module 406, for mixing colours the target treatment, obtains second picture.
Can be target-seeking, toning module 406 includes:
Second acquisition submodule, for obtaining in the lattice file, the corresponding first object of the target treatment
Value.
Interpolation calculation submodule, for carrying out interpolation calculation to the first object value, obtains corresponding second desired value.
Submodule is changed, for changing second desired value by default first tolerance, obtains the 3rd desired value.
Submodule is replaced, for the 3rd desired value to be replaced to the first object value in the lattice file, obtains the
Two pictures.
Changes in temperature processing module 407, for according to default second tolerance, being carried out to the second picture at changes in temperature toning
Reason.
Optionally, changes in temperature processing module 407, including:
3rd acquisition submodule, for obtaining parameter of mixing colours.
Optionally, the 3rd acquisition submodule, including:
Unit is established, for according to the second default tolerance, establishing changes in temperature toning coordinate.
Receiving unit, for receiving the selection operation for changes in temperature toning coordinate, obtains toning parameter.
Classification submodule, for according to preset rules, carrying out color threshold division to the second picture, obtaining multiple face
Colour sorting region.
Receiving submodule, for receiving the selection operation for the color classification region, obtains color of object classification area
Domain.
Submodule is generated, for according to default second tolerance, generation and the toning matched color addition of parameter
Layer, the size of the color addition layer are consistent with the size of the color of object specification area.
Submodule is covered, for the color addition layer to be covered the color of object specification area.
Emergence module 408, for carrying out emergence processing to the edge of the target treatment.
In conclusion a kind of picture processing unit provided in an embodiment of the present invention, including the first picture is obtained, by the first figure
Piece is converted into lattice file, afterwards according to the pending area of the first picture, determines the target treatment of lattice file, and right
Target treatment is mixed colours, and obtains second picture.The embodiment of the present invention shows the first picture by three-dimensional lattice file,
Make it possible to determine the coordinate information of pending area by the local location selection operation to the first picture, and believed according to coordinate
Breath, relevant pixel-parameters are determined in lattice file, by the processing to pixel-parameters, reach the local position to the first picture
The adjustment for carrying out multiple color tones manifestation mode is put, amended second picture is obtained, after second picture is obtained, passes through color threshold
Picture is further classified in value division, obtains multiple color classification regions, receives the choosing for color classification region afterwards
Operation is selected, obtains color of object specification area, changes in temperature toning finally is carried out to color of object specification area, is improved at picture
A variety of implementations of reason.Toning processing is carried out to picture so as to more targeted, improves treatment effect, being capable of real root
Color adjustment is carried out according to the actual conditions of every pictures, improves user experience.
Embodiment five
Fig. 5 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 500 includes but not limited to:It is radio frequency unit 501, mixed-media network modules mixed-media 502, audio output unit 503, defeated
Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor
The component such as 510 and power supply 511.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 5 is not formed
Restriction to mobile terminal, mobile terminal can be included than illustrating more or fewer components, either combine some components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510, for obtaining the first picture;First picture is converted into lattice file;Determine described
The target treatment of lattice file;Mix colours the target treatment, obtain second picture.
In embodiments of the present invention, by lattice file show the first picture, can be by the target to lattice file at
The processing in region is managed, reaches and hue adjustment is carried out to the local location of the first picture, amended second picture is obtained, so that pin
Toning processing is carried out to picture to property, treatment effect is improved, improves user experience.
It should be understood that in the embodiment of the present invention, radio frequency unit 501 can be used for during transceiving data, the reception of signal
And transmission, specifically, after the downlink data from base station is received, handled to processor 510;In addition, the data of uplink are sent out
Give base station.In general, radio frequency unit 501 includes but not limited to antenna, at least one amplifier, transceiver, coupler, low noise
Acoustic amplifier, duplexer etc..In addition, radio frequency unit 501 can also be communicated by wireless communication system with network and other equipment.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 502 and has accessed, and such as helps user to receive
Send e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be receiving by radio frequency unit 501 or mixed-media network modules mixed-media 502 or in memory 509
It is sound that the voice data of storage, which is converted into audio signal and exports,.Moreover, audio output unit 503 can also be provided and moved
The relevant audio output of specific function that dynamic terminal 500 performs is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is used to receive audio or video signal.Input unit 504 can include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 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) carry out
Reason.Picture frame after processing may be displayed on display unit 506.Picture frame after the processing of graphics processor 5041 can be deposited
Storage is transmitted in memory 509 (or other storage mediums) or via radio frequency unit 501 or mixed-media network modules mixed-media 502.Mike
Wind 5042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be
The form output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, 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 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass
Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 506 is used for the information for showing by information input by user or being supplied to user.Display unit 506 can wrap
Display panel 5061 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 5061.
User input unit 507 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 related.Specifically, user input unit 507 include contact panel 5071 and
Other input equipments 5072.Contact panel 5071, also referred to as touch-screen, collect user on it or neighbouring touch operation
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 5071 or in contact panel 5071
Neighbouring operation).Contact panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area
Manage the order that device 510 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes contact panel 5071.Except contact panel 5071, user input unit 507 can also include other input equipments
5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operation lever, details are not described herein.
Further, contact panel 5071 can be covered on display panel 5061, when contact panel 5071 is detected at it
On or near touch operation after, send to processor 510 with determine touch event type, be followed by subsequent processing device 510 according to touch
The type for touching event provides corresponding visual output on display panel 5061.Although in Figure 5, contact panel 5071 and display
Panel 5061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments
In, can be integrated by contact panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 508 is the interface that external device (ED) is connected with mobile terminal 500.For example, external device (ED) can include
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and
One or more elements that the input received is transferred in mobile terminal 500 can be used in 500 He of mobile terminal
Data are transmitted between external device (ED).
Memory 509 can be used for storage software program and various data.Memory 509 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 509 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 510 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
A part, by running or performing the software program and/or module that are stored in memory 509, and calls and is stored in storage
Data in device 509, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 510 may include one or more processing units;Preferably, processor 510 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 wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) to all parts power supply, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned function modules, details are not described herein.
Embodiment six
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509, is stored in
On memory 509 and the computer program that can be run on the processor 510, the computer program are performed by processor 510
Each process of the above-mentioned image processing method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here
Repeat no more.
Embodiment seven
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium
Calculation machine program, the computer program realize each process of above-mentioned image processing method embodiment, and energy when being executed by processor
Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer-readable recording medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much
Form, belongs within the protection of the present invention.
Claims (12)
- A kind of 1. image processing method, applied to mobile terminal, it is characterised in that the described method includes:Obtain the first picture;First picture is converted into lattice file;According to the pending area of first picture, the target treatment of the lattice file is determined;Mix colours the target treatment, obtain second picture.
- 2. the according to the method described in claim 1, it is characterized in that, target treatment for determining the lattice file Step, including:Obtain the positional information of pending area described in first picture;According to the positional information, corresponding target treatment is mapped in the lattice file.
- 3. according to the method described in claim 2, it is characterized in that, described mix colours the target treatment, obtain The step of second picture, including:Obtain in the lattice file, the corresponding first object value of the target treatment;Interpolation calculation is carried out to the first object value, obtains corresponding second desired value;Second desired value is changed by default first tolerance, obtains the 3rd desired value;3rd desired value is replaced into the first object value in the lattice file, obtains second picture.
- 4. the according to the method described in claim 1, it is characterized in that, step that first picture is converted into lattice file Suddenly, including:Extract the Three-dimensional Display look-up table of first picture;Establish the dot matrix template with the resolution match of the Three-dimensional Display look-up table;The Three-dimensional Display look-up table is imported into the dot matrix template, obtains the lattice file.
- 5. according to the method described in claim 1, it is characterized in that, mix colours to the target treatment, is obtained After the step of two pictures, further include:According to default second tolerance, changes in temperature toning processing is carried out to the second picture.
- 6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:First acquisition module, for obtaining the first picture;Conversion module, for first picture to be converted into lattice file, the resolution ratio of the lattice file and described first The resolution match of picture;Determining module, for the pending area according to first picture, determines the target treatment of the lattice file;Toning module, for mixing colours the target treatment, obtains second picture.
- 7. mobile terminal according to claim 6, it is characterised in that the determining module includes:First acquisition submodule, for obtaining the positional information of pending area described in first picture;Mapping submodule, for according to the positional information, corresponding target treatment to be mapped in the lattice file.
- 8. mobile terminal according to claim 7, it is characterised in that the toning module includes:Second acquisition submodule, for obtaining in the lattice file, the corresponding first object value of the target treatment;Interpolation calculation submodule, for carrying out interpolation calculation to the first object value, obtains corresponding second desired value;Submodule is changed, for changing second desired value by default first tolerance, obtains the 3rd desired value;Submodule is replaced, for the 3rd desired value to be replaced to the first object value in the lattice file, obtains the second figure Piece.
- 9. mobile terminal according to claim 6, it is characterised in that the conversion module, including:Extracting sub-module, for extracting the Three-dimensional Display look-up table of first picture;Setting up submodule, for establishing the dot matrix template with the resolution match of the Three-dimensional Display look-up table;Submodule is imported, for the Three-dimensional Display look-up table to be imported the dot matrix template, obtains the lattice file.
- 10. mobile terminal according to claim 6, it is characterised in that further include:Changes in temperature processing module, for according to default second tolerance, changes in temperature toning processing to be carried out to the second picture.
- 11. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is performed by the processor Any one of image processing method the step of.
- 12. a kind of computer-readable recording medium, it is characterised in that computer journey is stored on the computer-readable recording medium Sequence, the image processing method as any one of claim 1 to 5 is realized when the computer program is executed by processor Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711013139.XA CN107993269A (en) | 2017-10-25 | 2017-10-25 | A kind of image processing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711013139.XA CN107993269A (en) | 2017-10-25 | 2017-10-25 | A kind of image processing method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107993269A true CN107993269A (en) | 2018-05-04 |
Family
ID=62029909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711013139.XA Pending CN107993269A (en) | 2017-10-25 | 2017-10-25 | A kind of image processing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107993269A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542308A (en) * | 2018-11-30 | 2019-03-29 | 努比亚技术有限公司 | Picture-adjusting method, device, mobile terminal and readable storage medium storing program for executing |
CN110060267A (en) * | 2019-03-05 | 2019-07-26 | 天津大学 | A kind of certificate photo changes background method and device |
CN110942487A (en) * | 2018-09-25 | 2020-03-31 | 瑞昱半导体股份有限公司 | Chrominance adjustment system, method and non-transitory computer readable medium thereof |
CN113051010A (en) * | 2019-12-28 | 2021-06-29 | Oppo(重庆)智能科技有限公司 | Application picture adjusting method in wearable device and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100053342A1 (en) * | 2008-09-04 | 2010-03-04 | Samsung Electronics Co. Ltd. | Image edit method and apparatus for mobile terminal |
CN101902550A (en) * | 2009-05-28 | 2010-12-01 | 佳能株式会社 | Image processing apparatus and image processing method |
CN104299263A (en) * | 2014-09-14 | 2015-01-21 | 北京航空航天大学 | Method for modeling cloud scene based on single image |
CN104392470A (en) * | 2014-12-04 | 2015-03-04 | 中国科学院自动化研究所 | Digital image color separation processing method |
CN106454303A (en) * | 2016-10-27 | 2017-02-22 | 青岛海信电器股份有限公司 | RGBW image processing method and apparatus |
CN106504217A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Image processing method, image processing apparatus, imaging device and electronic installation |
-
2017
- 2017-10-25 CN CN201711013139.XA patent/CN107993269A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100053342A1 (en) * | 2008-09-04 | 2010-03-04 | Samsung Electronics Co. Ltd. | Image edit method and apparatus for mobile terminal |
CN101902550A (en) * | 2009-05-28 | 2010-12-01 | 佳能株式会社 | Image processing apparatus and image processing method |
CN104299263A (en) * | 2014-09-14 | 2015-01-21 | 北京航空航天大学 | Method for modeling cloud scene based on single image |
CN104392470A (en) * | 2014-12-04 | 2015-03-04 | 中国科学院自动化研究所 | Digital image color separation processing method |
CN106454303A (en) * | 2016-10-27 | 2017-02-22 | 青岛海信电器股份有限公司 | RGBW image processing method and apparatus |
CN106504217A (en) * | 2016-11-29 | 2017-03-15 | 广东欧珀移动通信有限公司 | Image processing method, image processing apparatus, imaging device and electronic installation |
Non-Patent Citations (4)
Title |
---|
刘洋 等: ""基于C#的图片点阵数据提取和转换软件的开发"", 《计算机应用与软件》 * |
国柱: ""怎么用PS修改图片局部颜色"", 《HTTP://WWW.XUEXILA.COM/PS/JIQIAO/2263120.HTML》 * |
孙春星: "《Davinci Resolve 12.5 达芬奇影视调色密码超级手册》", 31 August 2016 * |
申利平: ""基于插值的数字图像处理技术研究"", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110942487A (en) * | 2018-09-25 | 2020-03-31 | 瑞昱半导体股份有限公司 | Chrominance adjustment system, method and non-transitory computer readable medium thereof |
CN110942487B (en) * | 2018-09-25 | 2023-08-29 | 瑞昱半导体股份有限公司 | Chroma adjustment system, method and non-transitory computer readable medium thereof |
CN109542308A (en) * | 2018-11-30 | 2019-03-29 | 努比亚技术有限公司 | Picture-adjusting method, device, mobile terminal and readable storage medium storing program for executing |
CN110060267A (en) * | 2019-03-05 | 2019-07-26 | 天津大学 | A kind of certificate photo changes background method and device |
CN110060267B (en) * | 2019-03-05 | 2023-04-11 | 天津大学 | Method and device for changing background of certificate photo |
CN113051010A (en) * | 2019-12-28 | 2021-06-29 | Oppo(重庆)智能科技有限公司 | Application picture adjusting method in wearable device and related device |
CN113051010B (en) * | 2019-12-28 | 2023-04-28 | Oppo(重庆)智能科技有限公司 | Application picture adjustment method and related device in wearable equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107256555B (en) | Image processing method, device and storage medium | |
CN107835364A (en) | One kind is taken pictures householder method and mobile terminal | |
CN107993269A (en) | A kind of image processing method and mobile terminal | |
CN107948499A (en) | A kind of image capturing method and mobile terminal | |
CN107833178A (en) | A kind of image processing method, device and mobile terminal | |
CN108495029A (en) | A kind of photographic method and mobile terminal | |
CN107644396A (en) | A kind of lip color adjustment method and apparatus | |
CN111047511A (en) | Image processing method and electronic equipment | |
CN109361867A (en) | A kind of filter processing method and mobile terminal | |
CN109788204A (en) | Shoot processing method and terminal device | |
CN108184037A (en) | A kind of method for displaying image and mobile terminal | |
CN107845363B (en) | A kind of display control method and mobile terminal | |
CN107784232A (en) | A kind of image processing method and mobile terminal | |
CN107977652A (en) | The extracting method and mobile terminal of a kind of screen display content | |
CN107846537A (en) | A kind of CCD camera assembly, image acquiring method and mobile terminal | |
CN107895352A (en) | A kind of image processing method and mobile terminal | |
CN109167914A (en) | A kind of image processing method and mobile terminal | |
CN108198127A (en) | A kind of image processing method, device and mobile terminal | |
CN109712090A (en) | A kind of image processing method, device and mobile terminal | |
CN107749046A (en) | A kind of image processing method and mobile terminal | |
CN108037966A (en) | A kind of interface display method, device and mobile terminal | |
CN107948516A (en) | A kind of image processing method, device and mobile terminal | |
CN107734281A (en) | A kind of image magnification method and mobile terminal | |
CN109671034A (en) | A kind of image processing method and terminal device | |
CN109471586A (en) | A kind of keycap color matching method, device and terminal device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180504 |