CN108537724A - A kind of image processing method and mobile terminal - Google Patents
A kind of image processing method and mobile terminal Download PDFInfo
- Publication number
- CN108537724A CN108537724A CN201810311383.2A CN201810311383A CN108537724A CN 108537724 A CN108537724 A CN 108537724A CN 201810311383 A CN201810311383 A CN 201810311383A CN 108537724 A CN108537724 A CN 108537724A
- Authority
- CN
- China
- Prior art keywords
- image
- mobile terminal
- gradation zone
- gradual change
- demarcation
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 230000008859 change Effects 0.000 claims abstract description 160
- 238000000034 method Methods 0.000 claims abstract description 41
- 230000004044 response Effects 0.000 claims abstract description 27
- 238000003825 pressing Methods 0.000 claims description 43
- 230000004927 fusion Effects 0.000 claims description 37
- 238000004590 computer program Methods 0.000 claims description 10
- 230000033001 locomotion Effects 0.000 claims description 5
- 230000007704 transition Effects 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000000630 rising effect Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 34
- 230000008569 process Effects 0.000 description 19
- 238000003860 storage Methods 0.000 description 12
- 230000000694 effects Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 11
- 230000015572 biosynthetic process Effects 0.000 description 4
- 230000006854 communication Effects 0.000 description 4
- 230000000750 progressive effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000009738 saturating Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000004091 panning Methods 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Image Processing (AREA)
Abstract
A kind of image processing method of present invention offer and mobile terminal, this method include:The first input of user on the first image is received, described first image is the local picture of the preview image or the mobile terminal captured by the camera of the mobile terminal;In response to first input, the gradation zone in described first image is determined;According to the gradation zone, display described first image is through gradual change treated target image.In this way, after mobile terminal receives the input of user on the first image, it may be determined that the gradation zone in the first image.And then mobile terminal can show the first image through gradual change treated target image according to the gradation zone.I.e. user can determine the gradation zone in image according to their needs, and the flexibility that gradual change processing is carried out to picture is preferable.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of image processing methods and mobile terminal.
Background technology
Currently, user can carry out gradual change processing using mobile terminal to picture, make picture that different effects be presented.To figure
When piece carries out gradual change processing, a part of gradual transparence for making picture may be implemented, the picture handled by gradual change can be more attractive.
It in the prior art, can only be by image processing software pair if user wants to carry out gradual change processing to picture on mobile terminals
Picture carries out simple gradual change processing, and fade effect is single.Therefore, the prior art to picture carry out gradual change processing flexibility compared with
Difference.
Invention content
A kind of image processing method of offer of the embodiment of the present invention and mobile terminal carry out gradually picture with solving the prior art
Become the poor problem of the flexibility of processing.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of image processing method, it is applied to mobile terminal, the method packet
It includes:
The first input of user on the first image is received, described first image is clapped by the camera of the mobile terminal
The local picture of the preview image or the mobile terminal taken the photograph;
In response to first input, the gradation zone in described first image is determined;
According to the gradation zone, display described first image is through gradual change treated target image.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:
First receiving module, for receiving the first input of user on the first image, described first image is the shifting
The local picture of preview image or the mobile terminal captured by the camera of dynamic terminal;
Determining module, in response to first input, determining the gradation zone in described first image;
First display module, for according to the gradation zone, display described first image is through gradual change treated target
Image.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including processor, memory and are stored in described
It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor
The step of existing above-mentioned image processing method.
Fourth aspect, the embodiment of the present invention also provides a kind of computer read/write memory medium, described computer-readable
It is stored with computer program on storage medium, such as preceding claim image is realized when the computer program is executed by processor
The step of processing method.
In this way, in the embodiment of the present invention, the first input of user on the first image is received, described first image is described
The local picture of preview image or the mobile terminal captured by the camera of mobile terminal;It is defeated in response to described first
Enter, determines the gradation zone in described first image;According to the gradation zone, display described first image is after gradual change is handled
Target image.In this way, after mobile terminal receives the input of user on the first image, it may be determined that in the first image
Gradation zone.And then mobile terminal can show the first image through gradual change treated target image according to the gradation zone.I.e.
User can determine the gradation zone in image according to their needs, and the flexibility that gradual change processing is carried out to picture is preferable.
Description of the drawings
Fig. 1 is one of the flow chart of image processing method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of preview interface provided in an embodiment of the present invention;
Fig. 3 is captured picture provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of the line segment between display point A to point B provided in an embodiment of the present invention;
Fig. 5 is one of the schematic diagram of gradation zone in the first image provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram in display gradual change line of demarcation provided in an embodiment of the present invention;
Fig. 7 is the two of the schematic diagram of the gradation zone in the first image provided in an embodiment of the present invention;
Fig. 8 is a pictures of selection provided in an embodiment of the present invention;
Fig. 9 is the schematic diagram provided in an embodiment of the present invention that edit pattern is merged into gradual change;
Figure 10 is the two of the flow chart of image processing method provided in an embodiment of the present invention;
Figure 11 is the schematic diagram for the endpoint that gradual change line of demarcation is pulled during finger provided in an embodiment of the present invention slides;
Figure 12 is the display location in adjustment the first line of demarcation and the second line of demarcation provided in an embodiment of the present invention, to change gradually
Become the schematic diagram of the position in region;
Figure 13 is provided in an embodiment of the present invention according to glide direction and sliding distance, increases or reduce gradation zone
Schematic diagram;
Figure 14 is the schematic diagram that two fingers provided in an embodiment of the present invention pin that gradual change line of demarcation is dragged;
Figure 15 is the schematic diagram of the position of mobile gradation zone provided in an embodiment of the present invention;
Figure 16 is that two fingers provided in an embodiment of the present invention drag selected picture to change the figure for being shown in gradation zone
The schematic diagram of piece part;
Figure 17 is that the two fingers zoom operations provided in an embodiment of the present invention that carried out on selected picture are shown in change
The schematic diagram of the picture part of gradation zone;
Figure 18 is linear gradient effect diagram provided in an embodiment of the present invention;
Figure 19 is radial gradual effect diagram provided in an embodiment of the present invention;
Figure 20 is a kind of structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 21 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments 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, shall fall within the protection scope of the present invention.
It is one of the flow chart of image processing method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, is applied to mobile whole
End.As shown in Figure 1, including the following steps:
Step 101 receives the first input of user on the first image, and described first image is taking the photograph for the mobile terminal
The local picture of preview image or the mobile terminal as captured by head.
In a step 101, in the embodiment of the present invention, gradual change processing can be carried out to the picture clapped during taking pictures;
A pictures can also be selected from the photograph album of mobile terminal, and gradual change processing is carried out to this selected pictures.Here first
To explain first way.
The front camera or rear camera that mobile terminal can first be opened, into preview interface.As shown in Fig. 2,
For the schematic diagram of preview interface.In fig. 2, backlight option 1, gradual change fusion option 2, panning mode option 3, U.S. face mould are shown
Formula option 4, take pictures option 5 and RECORD mode option 6.Next, " option 2 is merged in gradual change " in preview interface can be clicked,
Into " gradual change fusion exposal model ".Under " gradual change fusion exposal model ", user can click button of taking pictures and obtain a figure
Piece, and click and take pictures after button, preview screen can fix in the preview image of that time of taking pictures, this can fix and taking pictures that
For the preview image at a moment as the first image, i.e. the first image can be the preview image captured by the camera of mobile terminal.
Meanwhile captured picture can also preserve.As shown in figure 3, being captured picture.
User can any point A be mono- refers to double-click on the image of taking pictures to fix, and finger does not lift to do and singly refers to sliding
Operation.I.e. user can any point A be mono- on the first image refers to double-click, and finger does not lift to do and singly refers to slide.This
When, mobile terminal can receive the first input of user on the first image, i.e., mobile terminal can receive user captured
Photo on first input.
Step 102 is inputted in response to described first, determines the gradation zone in described first image.
In a step 102, the first input in response to receiving, it may be determined that the gradation zone in the first image.Ring
The first input that Ying Yu is received, can obtain the sliding trace of the first input.And then it can determine the according to the sliding trace
Gradation zone in one image.Wherein, gradation zone is between the first line of demarcation and the second line of demarcation, the first line of demarcation and the
Line of demarcation determined by beginning and end of two lines of demarcation respectively according to sliding trace.For example, in the mistake of user's finger sliding
Cheng Zhong can indicate gradual change direction with real-time display point A to the line segment of finger position, and finger can be lifted that
Point is denoted as point B.As shown in figure 4, the schematic diagram of the line segment between display point A to point B.
First line of demarcation is line of demarcation determined by the starting point according to touch track, and the second line of demarcation is according to touch track
Terminal determined by line of demarcation.For example, as shown in figure 5, for one of the schematic diagram of gradation zone in the first image.In Fig. 5
In, gradation zone is the regions G, and gradation zone that can be in Fig. 5 is referred to as linear gradient region.Cross point A and vertical with AB line segments
Line segment as the first line of demarcation, cross point B and the line segment vertical with AB line segments be as the second line of demarcation.The image of taking pictures to fix exists
Transparency in gradation zone G is gradually reduced to 0% along point A to the direction of point B from 100%, and the length of line segment AB is longer,
The progressive formation of transparency is slower;The length of line segment AB is shorter, and the progressive formation of transparency is faster.And the image of taking pictures to fix exists
The transparency of parts of images O on the left of first line of demarcation is 100%;Portion of the image on the right side of the second line of demarcation of taking pictures to fix
The transparency of partial image P is 0%.The perpendicular bisector of line segment AB can be shown in gradual change in a manner of dotted line as gradual change line of demarcation
Region.As shown in fig. 6, for a kind of schematic diagram in display gradual change line of demarcation, in figure 6, dotted line D is gradual change line of demarcation.
Alternatively, the first input can be pressing operation can obtain pressing operation in response to the pressing operation received
Pressing position and dynamics value, and then can determine the gradation zone in the first image according to pressing position and dynamics value.Wherein,
Gradation zone is the annular region centered on pressing position, and the size of annular region is associated with dynamics value.For example, user can
With in the mono- annular region G for referring to pressing, can forming centered on point C of any point C to take pictures on image to fix.Such as Fig. 7
It is shown, it is the two of the schematic diagram of the gradation zone in the first image.Gradation zone G that can be in Fig. 7 is referred to as radial gradual region.
Transparency of the image in gradation zone G of taking pictures to fix is gradually reduced to 0% along by the direction of near point C from 100%;It is fixed
The transparency of parts of images of the image in the region M outside gradation zone G of taking pictures of lattice is 100%;The figure of taking pictures to fix
As the transparency of the parts of images in the border circular areas N that gradation zone G is included is 0%.The image of taking pictures to fix it is saturating
Lightness does not start display preview screen for 100% region immediately available as new preview area, i.e., in mobile terminal screen gradually
Becoming the border circular areas N that region G and gradation zone G is included can start to show preview screen as new preview area.
And transparency of the preview screen in gradation zone G progressively increases to 100% along by the direction of near point C from 0%;
The transparency of part preview screen of the preview screen in the border circular areas N that gradation zone G is included is 100%.It can be
The gradual change line of demarcation that display transparency is 50% in gradation zone G.As shown in fig. 7, the dotted line D in gradation zone G is as transparent
The gradual change line of demarcation that degree is 50%.
Here it explains the second way, i.e., gradual change processing is carried out to a selected pictures.User can open shifting
The photograph album of dynamic terminal, and a pictures are selected from photograph album.As shown in figure 8, for a pictures of selection.In fig. 8 it is shown that having
Share option 7, editing options 8, delete option 9 and more multi-option 10." editing options 8 " below picture can be clicked, are entered
Image edit mode." gradual change fusion option " can also be clicked and merge edit pattern into gradual change.As shown in figure 9, to enter gradually
Become the schematic diagram of fusion edit pattern.In fig.9, cancellation option 11 is shown, 12, one key that saves options beautifies option 13, gradually
Become fusion option 14 and filter options 15.
Next, linear gradient region or radial gradual region can be created in this selected pictures, specifically
Establishment mode is with the establishment mode in first way, and which is not described herein again.Distinctive points are the preview region in first way
Domain is replaced in the second way by white filling.
Step 103, according to the gradation zone, display described first image is through gradual change treated target image.
In step 103, the first image can be shown through gradual change treated target image according to gradation zone.
In the embodiment of the present invention, above-mentioned mobile terminal can be mobile phone, tablet computer (Tablet Personal
Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital
Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device
(Wearable Device) etc..
The image processing method of the embodiment of the present invention is applied to mobile terminal.Receive first of user on the first image
Input, described first image are the local of the preview image or the mobile terminal captured by the camera of the mobile terminal
Picture;In response to first input, the gradation zone in described first image is determined;According to the gradation zone, institute is shown
The first image is stated through gradual change treated target image.In this way, mobile terminal receive the input of user on the first image it
Afterwards, it may be determined that the gradation zone in the first image.And then mobile terminal can show the first image warp according to the gradation zone
Gradual change treated target image.I.e. user can determine the gradation zone in image according to their needs, be carried out gradually to picture
The flexibility for becoming processing is preferable.
It is the two of the flow chart of image processing method provided in an embodiment of the present invention referring to Figure 10, Figure 10, is applied to movement
Terminal.The main distinction of the present embodiment and previous embodiment, which is to illustrate, is located at target image in gradation zone
First part's image and the second image are located at the second part image in gradation zone and carry out gradual change fusion treatment, generate third figure
The process of picture.As shown in Figure 10, include the following steps:
Step 1001 receives the first input of user on the first image, and described first image is the mobile terminal
The local picture of preview image or the mobile terminal captured by camera.
In step 1001, in the embodiment of the present invention, gradual change processing can be carried out to the picture clapped during taking pictures;
A pictures can also be selected from the photograph album of mobile terminal, and gradual change processing is carried out to this selected pictures.Here first
To explain first way.
The front camera or rear camera that mobile terminal can first be opened, into preview interface.As shown in Fig. 2,
For the schematic diagram of preview interface.Next, " option 2 is merged in gradual change " in preview interface can be clicked, into " gradual change fusion is clapped
According to pattern ".Under " gradual change fusion exposal model ", user can click take pictures button obtain a pictures, and click take pictures by
After button, preview screen can fix in the preview image of that time of taking pictures, this can fix in the preview image of that time of taking pictures
As the first image, i.e. the first image can be the preview image captured by the camera of mobile terminal.Meanwhile captured figure
Piece can also preserve.As shown in figure 3, being captured picture.
User can any point A be mono- refers to double-click on the image of taking pictures to fix, and finger does not lift to do and singly refers to sliding
Operation.I.e. user can any point A be mono- on the first image refers to double-click, and finger does not lift to do and singly refers to slide.This
When, mobile terminal can receive the first input of user on the first image, i.e., mobile terminal can receive user captured
Photo on first input.
Step 1002 is inputted in response to described first, determines the gradation zone in described first image.
In step 1002, the first input in response to receiving, it may be determined that the gradation zone in the first image.
Optionally, first input is slide, the gradation zone in the determining described first image, including:
Obtain the sliding trace of the slide;
According to the sliding trace, the gradation zone in described first image is determined, wherein the gradation zone is between
Between one line of demarcation and the second line of demarcation, first line of demarcation is respectively according to the sliding trace with second line of demarcation
Beginning and end determined by line of demarcation.
For example, the sliding trace of slide can be obtained.And then it can be determined in the first image according to the sliding trace
Gradation zone.Wherein, gradation zone is between the first line of demarcation and the second line of demarcation, the first line of demarcation and the second line of demarcation
Line of demarcation determined by beginning and end respectively according to sliding trace.It, can be with for example, during user's finger is slided
Real-time display point A indicates gradual change direction to the line segment of finger position, and that point that can lift finger is denoted as a little
B.Still by taking Fig. 4 as an example, in fig. 4 it is shown that the line segment between point A to point B.
First line of demarcation is line of demarcation determined by the starting point according to touch track, and the second line of demarcation is according to touch track
Terminal determined by line of demarcation.For example, still by taking Fig. 5 as an example, in Figure 5, gradation zone is the regions G, and can be claimed in Fig. 5
Gradation zone is linear gradient region.Cross point A and the line segment vertical with AB line segments be as the first line of demarcation, cross point B and with AB lines
The line segment of Duan Chuizhi is as the second line of demarcation.Transparency of the image in gradation zone G of taking pictures to fix is along point A to point B's
Direction is gradually reduced to 0% from 100%, and the length of line segment AB is longer, and the progressive formation of transparency is slower;The length of line segment AB
Shorter, the progressive formation of transparency is faster.And the transparency of parts of images O of the image on the left of the first line of demarcation that take pictures to fix
It is 100%;The transparency of parts of images P of the image on the right side of the second line of demarcation that take pictures to fix is 0%.In line segment AB
Vertical line can be shown in gradation zone in a manner of dotted line as gradual change line of demarcation.Still by taking Fig. 6 as an example, in figure 6, it is shown that gradually
Become line of demarcation D.In this way, user only needs to be slided on the screen of the mobile terminal with finger, you can determine in image it is linear gradually
Become region, operating process is simple, convenient and efficient.
Optionally, first input is pressing operation, the gradation zone in the determining described first image, including:
Obtain the pressing position and dynamics value of the pressing operation;
According to the pressing position and the dynamics value, determine the gradation zone in described first image, wherein it is described gradually
Into the annular region centered on the pressing position, the size of the annular region is associated with the dynamics value in change region.
Alternatively, the first input can be pressing operation can obtain pressing operation in response to the pressing operation received
Pressing position and dynamics value, and then can determine the gradation zone in the first image according to pressing position and dynamics value.Wherein,
Gradation zone is the annular region centered on pressing position, and the size of annular region is associated with dynamics value.For example, user can
With in the mono- annular region G for referring to pressing, can forming centered on point C of any point C to take pictures on image to fix.Still to scheme
For 7, gradation zone G that can be in Fig. 7 is referred to as radial gradual region.The image of taking pictures to fix is saturating in gradation zone G
Lightness is gradually reduced to 0% along by the direction of near point C from 100%;Region of the image outside gradation zone G of taking pictures to fix
The transparency of parts of images in M is 100%;What is fixed takes pictures image in the border circular areas N that gradation zone G is included
The transparency of parts of images is 0%.The transparency of the image of taking pictures to fix be 100% region immediately available as new preview
Region starts to show preview screen, i.e., the border circular areas that gradation zone G and gradation zone G in mobile terminal screen are included
N can start to show preview screen as new preview area.
And transparency of the preview screen in gradation zone G progressively increases to 100% along by the direction of near point C from 0%;
The transparency of part preview screen of the preview screen in the border circular areas N that gradation zone G is included is 100%.It can be
The gradual change line of demarcation that display transparency is 50% in gradation zone G.In the figure 7, the dotted line D in gradation zone G is transparency
For 50% gradual change line of demarcation.In this way, user only needs to be pressed on the screen of the mobile terminal with finger, you can determine figure
Radial gradual region as in, operating process is simple, convenient and efficient.
Here it explains the second way, i.e., gradual change processing is carried out to a selected pictures.User can open shifting
The photograph album of dynamic terminal, and a pictures are selected from photograph album.Still by taking Fig. 8 as an example, Fig. 8 is a pictures of selection.It can click
" editing options 8 " below picture, into image edit mode." gradual change fusion option " can also be clicked to compile into gradual change fusion
The pattern of collecting.Still by taking Fig. 9 as an example, Fig. 9 is the schematic diagram that edit pattern is merged into gradual change.
Next, linear gradient region or radial gradual region can be created in this selected pictures, specifically
Establishment mode is with the establishment mode in first way, and which is not described herein again.Distinctive points are the preview region in first way
Domain is replaced in the second way by white filling.
Step 1003, according to the gradation zone, display described first image is through gradual change treated target image.
In step 1003, the first image can be shown through gradual change treated target image according to gradation zone.
Optionally, after gradual change treated target image, the method further includes the display described first image:
Receive the second input to the side of the mobile terminal;
In response to second input, position or the size of the gradation zone are adjusted.
It can receive to the second of the side of mobile terminal the input, and then mobile terminal is second defeated in response to what is received
Enter, position or the size of gradation zone can be adjusted.
For example, linear gradation zone, mobile terminal can receive the second input of the endpoint for gradual change line of demarcation.
For example, being pressed with screen edge intersection in gradual change line of demarcation, pressing needs certain dynamics.Finger does not lift out after pressing
Beginning is slided on screen edge, and finger can pull gradual change line of demarcation endpoint during sliding changes its position, and gradual change point
Another endpoint in boundary line can remain motionless.As shown in figure 11, it is the end that gradual change line of demarcation is pulled during finger slides
The schematic diagram of point.Dotted line D in Figure 11 is gradual change line of demarcation.
Mobile terminal can adjust the display position in the first line of demarcation and the second line of demarcation in response to the second input received
It sets, it, can be with real-time update fade effect to change the position of gradation zone, and in user's finger sliding process.Such as Figure 12 institutes
Show, to adjust the display location in the first line of demarcation and the second line of demarcation, to change the schematic diagram of the position of gradation zone.It is mobile whole
The four edges edge of end screen can incude, and can slide into adjacent edge in finger sliding process from the one edge of screen
On.And mobile terminal is supported two fingers to pinch the two gradual changes boundary line endpoints for holding screen sides while being dragged.
It, can be in screen if there is intersection point in gradual change line of demarcation one end and other gradual change lines of demarcation under some complex situations
The upper point of intersection list refers to weight, and dragged along other gradual change lines of demarcation change gradual change line of demarcation this side endpoint
Position.
Alternatively, user can press in any position on any bar edge in the four edges edge of screen, pressing
Need certain dynamics.Finger can not be lifted and be slided on screen edge after pressing, and mobile terminal can determine glide direction
And sliding distance.
It can increase or reduce gradation zone according to glide direction and sliding distance.Wherein, glide direction is first party
Xiang Shi can increase gradation zone;When glide direction is second direction, gradation zone can be reduced.First direction and second party
To for opposite direction.As shown in figure 13, it is to increase or reduce the signal of gradation zone according to glide direction and sliding distance
Figure.In this way, user only needs to be slided on the side of mobile terminal with finger, you can the position in adjustment linear gradient region, or
Person can adjust the size in radial gradual region, and operating process is simple, convenient and efficient.
Optionally, after gradual change treated target image, the method further includes the display described first image:
Gradual change line of demarcation is shown in the target image;
It receives and the third in the gradual change line of demarcation is inputted;
It is inputted in response to the third, adjusts the position of the gradation zone.
Gradual change line of demarcation can be shown in the target image.And then can receive and the third in gradual change line of demarcation is inputted, it rings
The third input that Ying Yu is received, can adjust the position of gradation zone.
It is dragged for example, user can pin gradual change line of demarcation with two fingers, gradation zone can be moved in dragging process
Position, and range and the gradual change direction of gradation zone will not be changed in dragging process.It can also be real in dragging process
Shi Gengxin fade effects.As shown in figure 14, it is that two fingers pin the schematic diagram that gradual change line of demarcation is dragged.
Alternatively, user can drag the round gradual change line of demarcation in gradation zone, in dragging process, Ke Yiyi with two fingers
The position of gradation zone is moved, and the size of gradation zone will not be changed in dragging process, gradation zone will not be changed gradually
It changes direction.It can be with real-time update fade effect during mobile gradation zone.As shown in figure 15, it is mobile gradation zone
Position schematic diagram.In this way, user only needs with finger dragging gradual change line of demarcation, you can adjust the position of gradation zone, grasp
It is simple to make process, it is convenient and efficient.
Step 1004 shows the second image, the target area and the gradual change in the target area of the target image
Region is associated, and second image is the preview image or the mobile terminal captured by the camera of the mobile terminal
Local picture.
In step 1004, the second image, target area and gradation zone can be shown in the target area of target image
It is associated, the local picture of preview image, mobile terminal captured by camera of second image for mobile terminal or movement
A part for the local picture of terminal.
For example, in Figure 5, target area is region G and region P.It can show that camera is adopted in region G and region P
The preview image of collection, and using the preview image of camera acquisition as the second image.User can also singly refer to double-click on the screen,
And then it can show an at least picture to be selected.Next, user can select one in an at least picture to be selected
Picture.Wherein, the second image be the selected picture of user or be the selected picture of user a part.
It should be noted that in the second way, user can be shown in gradual change with two fingers drag target image to change
The image local in region;Alternatively, user can drag selected picture to change the picture office for being shown in gradation zone with two fingers
Portion.As shown in figure 16, selected picture is dragged for two fingers to change the schematic diagram for the picture part for being shown in gradation zone.And
During dragging selected picture, the left part boundary of selected picture cannot cross the first line of demarcation and be shown in gradually
Become in region;During drag target image, the right part boundary of target image cannot cross the second line of demarcation and be shown in
In gradation zone.It can distinguish which pictures user is dragging by the gradual change line of demarcation of gradation zone.For example, in Figure 16
In, if mobile terminal detects that two fingers drag operation is located at the left side in gradual change line of demarcation, it can determine that user is dragging
Target image, you can show the picture in house to determine that user is dragging;If mobile terminal detects two fingers dragging behaviour
Make positioned at the right side in gradual change line of demarcation, then to determine that user is dragging selected picture, you can to determine user
Dragging shows timbered picture.
In the second way, user can also carry out two fingers zoom operations to change target image on target image
Size, and then change the image local for being shown in gradation zone;Alternatively, user can also carry out two fingers on selected picture
Zoom operations change the size of selected picture, and then change the picture part for being shown in gradation zone.As shown in figure 17,
Change the schematic diagram for the picture part for being shown in gradation zone to carry out two fingers zoom operations on selected picture.It can be with
Distinguish which pictures user is scaling by the gradual change line of demarcation of gradation zone.For example, in fig. 17, if mobile terminal
It detects that two fingers zoom operations are located at the left side in gradual change line of demarcation, then can determine that user is scaling target image, you can with
Determining user just has the picture in house in Zoom display;If mobile terminal detects that two fingers zoom operations are located at gradual change line of demarcation
Right side, then can determine that user is scaling selected picture, you can with determine user just in Zoom display it is timbered
Picture.
In the figure 7, target area is region G and region N.The pre- of camera acquisition can be shown in region G and region N
Look at image, and using the preview image of camera acquisition as the second image.User can also singly refer to double-click, Jin Erke on the screen
To show an at least picture to be selected.Next, user can select a pictures in an at least picture to be selected.Its
In, the second image is a part for the selected picture of user.
It should be noted that in the second way, user can drag selected picture with two fingers and is shown in change
The picture part of gradation zone.For example, user can be in the gradual change line of demarcation of gradation zone the dragging of inside two fingers it is selected
Picture.And during dragging selected picture, the boundary of selected picture cannot be shown in gradation zone.
In the second way, user can also carry out two fingers zoom operations to change target image on target image
Size, and then change the image local for being shown in gradation zone;Alternatively, user can also carry out two fingers on selected picture
Zoom operations change the size of selected picture, and then change the picture part for being shown in gradation zone.It can be by gradually
Become the gradual change line of demarcation in region to distinguish which pictures user is scaling.For example, if mobile terminal detects that two fingers scale
Operation can then determine that user is scaling target image positioned at the outside in gradual change line of demarcation;If mobile terminal detects double
Refer to the inside that zoom operations are located at gradual change line of demarcation, then can determine that user is scaling selected picture.
Step 1005, first part's image and second image being located at the target image in the gradation zone
Second part image in the gradation zone carries out gradual change fusion treatment, generates third image.
In step 1005, the first part's image that can be located at target image in gradation zone is located at the second image
Second part image in gradation zone carries out gradual change fusion treatment, generates third image.
For example, linear gradation zone, in figure 5 it is possible to which target image is located at the first part in gradation zone G
Image and the second image are located at the second part image in gradation zone G and carry out gradual change fusion treatment, generate third image.Scheming
In 5, third image is the superposition of target image and new preview image according to respective transparency accounting;Alternatively, third image is
Target image and selected picture according to respective transparency accounting superposition.
It is linear gradient effect diagram as shown in figure 18 for first way." √ " that can be clicked in Figure 18 is pressed
Button merges picture to preserve gradual change by gradual change fusion treatment;The "×" button in Figure 18 can also be clicked to cancel transition region
Domain simultaneously re-starts shooting;It can also click directly in Figure 18 and take pictures button to preserve the figure without gradual change fusion treatment
Piece.
For the second way, 12 preserved by gradual change as shown in figure 9, saving options for the screen upper right corner can be clicked
Picture is merged in the gradual change of fusion treatment.And the gradual change fusion picture of generation can be automatically opened after preserving.
For radial gradual region, in the figure 7, the first part's image that target image can be located in gradation zone G
It is located at the second part image in gradation zone G with the second image and carries out gradual change fusion treatment, generates third image.In the figure 7,
The image of the gradation zone of annular is the superposition of target image and new preview image according to respective transparency accounting;Alternatively, ring
The image of the gradation zone of shape is the superposition of target image and selected picture according to respective transparency accounting.
It is radial gradual effect diagram as shown in figure 19 for first way." √ " that can be clicked in Figure 19 is pressed
Button merges picture to preserve gradual change by gradual change fusion treatment;The "×" button in Figure 19 can also be clicked to cancel transition region
Domain simultaneously re-starts shooting;It can also click directly in Figure 19 and take pictures button to preserve the figure without gradual change fusion treatment
Piece.
For the second way, 12 preserved by gradual change as shown in figure 9, saving options for the screen upper right corner can be clicked
Picture is merged in the gradual change of fusion treatment.And the gradual change fusion picture of generation can be automatically opened after preserving.
The image processing method of the embodiment of the present invention is applied to mobile terminal.Mobile terminal receives user in the first figure
After upper input, it may be determined that the gradation zone in the first image.And then mobile terminal can be shown according to the gradation zone
Show the first image through gradual change treated target image.I.e. user can determine the gradation zone in image according to their needs,
The flexibility that gradual change processing is carried out to picture is preferable.Further, target image can be located in gradation zone first
Partial image and the second image are located at the second part image in gradation zone and carry out gradual change fusion treatment, generate third image.It is right
The flexibility that image carries out gradual change fusion treatment is also preferable.
It is the structure chart that the present invention implements the mobile terminal provided, as shown in figure 20, mobile terminal referring to Figure 20, Figure 20
2000 include the first receiving module 2001, determining module 2002 and the first display module 2003, wherein:
First receiving module 2001, for receiving the first input of user on the first image, described first image is institute
State the local picture of the preview image or the mobile terminal captured by the camera of mobile terminal;
Determining module 2002, in response to first input, determining the gradation zone in described first image;
First display module 2003, for according to the gradation zone, treated through gradual change for display described first image
Target image.
Optionally, the mobile terminal further includes:
Second display module, for show the second image in the target area of the target image, the target area and
The gradation zone is associated, and second image is the preview image or described captured by the camera of the mobile terminal
The local picture of mobile terminal;
Gradual change Fusion Module, for by the target image be located at first part's image in the gradation zone with it is described
Second image is located at the second part image in the gradation zone and carries out gradual change fusion treatment, generates third image.
Optionally, first input is slide, and the determining module 2002 includes:
First acquisition submodule, the sliding trace for obtaining the slide;
First determination sub-module, for according to the sliding trace, determining the gradation zone in described first image,
In, the gradation zone is between the first line of demarcation and the second line of demarcation, first line of demarcation and second line of demarcation
Respectively according to line of demarcation determined by the beginning and end of the sliding trace.
Optionally, first input is pressing operation, and the determining module 2002 includes:
Second acquisition submodule, the pressing position for obtaining the pressing operation and dynamics value;
Second determination sub-module, for according to the pressing position and the dynamics value, determining in described first image
Gradation zone, wherein the gradation zone is the annular region centered on the pressing position, the size of the annular region
It is associated with the dynamics value.
Optionally, the mobile terminal further includes:
Second receiving module, for receiving the second input to the side of the mobile terminal;
The first adjustment module, in response to second input, adjusting position or the size of the gradation zone.
Optionally, the mobile terminal further includes:
Third display module, for showing gradual change line of demarcation in the target image;
Third receiving module, for receiving the third input to the gradual change line of demarcation;
Second adjustment module adjusts the position of the gradation zone for being inputted in response to the third.
Mobile terminal 2000 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 and Figure 10, be
It avoids repeating, which is not described herein again.And mobile terminal 2000 may be implemented mobile terminal and receive user on the first image
After input, it may be determined that the gradation zone in the first image.And then mobile terminal can show first according to the gradation zone
Image is through gradual change treated target image.I.e. user can determine the gradation zone in image according to their needs, to picture
The flexibility for carrying out gradual change processing is preferable.Further, the first part's image that target image can be located in gradation zone
It is located at the second part image in gradation zone with the second image and carries out gradual change fusion treatment, generates third image.To image into
The flexibility of row gradual change fusion treatment is also preferable.
A kind of hardware architecture diagram of Figure 21 mobile terminals of each embodiment to realize the present invention.
The mobile terminal 2100 includes but not limited to:Radio frequency unit 2101, network module 2102, audio output unit
2103, input unit 2104, sensor 2105, display unit 2106, user input unit 2107, interface unit 2108, storage
The components such as device 2109, processor 2110 and power supply 2111.It will be understood by those skilled in the art that being moved shown in Figure 21
Terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, or
Combine certain components or different components arrangement.In embodiments of the present invention, mobile terminal includes but not limited to mobile phone, puts down
Plate computer, laptop, palm PC, vehicle mobile terminals, wearable device and pedometer etc..
User input unit 2107, for receiving the first input of user on the first image, described first image is institute
State the local picture of the preview image or the mobile terminal captured by the camera of mobile terminal;
Processor 2110, first input for being received in response to user input unit 2107, determines described first
Gradation zone in image;Control display unit 2106 is additionally operable to according to the gradation zone, display described first image is through gradually
Become treated target image.
Optionally, processor 2110 is additionally operable to:
Control display unit 2106 shows the second image, the target area and institute in the target area of the target image
Stating gradation zone is associated, and second image is the preview image or the shifting captured by the camera of the mobile terminal
The local picture of dynamic terminal;
The target image is located at first part's image in the gradation zone with second image positioned at described
Second part image in gradation zone carries out gradual change fusion treatment, generates third image.
Optionally, processor 2110 is additionally operable to:
First input is slide, obtains the sliding trace of the slide;
According to the sliding trace, the gradation zone in described first image is determined, wherein the gradation zone is between
Between one line of demarcation and the second line of demarcation, first line of demarcation is respectively according to the sliding trace with second line of demarcation
Beginning and end determined by line of demarcation.
Optionally, processor 2110 is additionally operable to:
First input is pressing operation, obtains the pressing position and dynamics value of the pressing operation;
According to the pressing position and the dynamics value, determine the gradation zone in described first image, wherein it is described gradually
Into the annular region centered on the pressing position, the size of the annular region is associated with the dynamics value in change region.
Optionally, processor 2110 is additionally operable to:
In response to second input, position or the size of the gradation zone are adjusted.
Optionally, processor 2110 is additionally operable to:
It is inputted in response to the third, adjusts the position of the gradation zone.
Mobile terminal receives after the input of user on the first image, it may be determined that the transition region in the first image
Domain.And then mobile terminal can show the first image through gradual change treated target image according to the gradation zone.I.e. user can
To determine that the gradation zone in image, the flexibility that gradual change processing is carried out to picture are preferable according to their needs.Further, may be used
The second part figure being located at first part's image that target image is located in gradation zone and the second image in gradation zone
As carrying out gradual change fusion treatment, third image is generated.The flexibility that gradual change fusion treatment is carried out to image is also preferable.
It should be understood that the embodiment of the present invention in, radio frequency unit 2101 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 2110 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 2101 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 2101 can also by radio communication system and network and other
Equipment communicates.
Mobile terminal has provided wireless broadband internet to the user by network module 2102 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 2103 can receive radio frequency unit 2101 or network module 2102 or in memory
The audio data stored in 2109 is converted into audio signal and exports to be sound.Moreover, audio output unit 2103 can be with
The relevant audio output of specific function executed with mobile terminal 2100 is provided (for example, call signal receives sound, message sink
Sound etc.).Audio output unit 2103 includes loud speaker, buzzer and receiver etc..
Input unit 2104 is for receiving audio or video signal.Input unit 2104 may include graphics processor
(Graphics Processing Unit, GPU) 21041 and microphone 21042, graphics processor 21041 in video to capturing
In pattern or image capture mode by image capture apparatus (such as camera) obtain static images or video image data into
Row processing.Treated, and picture frame may be displayed on display unit 2106.Through treated the picture frame of graphics processor 21041
It can be stored in memory 2109 (or other storage mediums) or be carried out via radio frequency unit 2101 or network module 2102
It sends.Microphone 21042 can receive sound, and can be audio data by such acoustic processing.Audio that treated
Data can be converted to the lattice that mobile communication base station can be sent to via radio frequency unit 2101 in the case of telephone calling model
Formula exports.
Mobile terminal 2100 further includes at least one sensor 2105, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 21061, proximity sensor can when mobile terminal 2100 is moved in one's ear,
Close display panel 21061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions
The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile terminal appearance when static
State (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion)
Deng;Sensor 2105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas
Meter, hygrometer, thermometer, infrared sensor etc. are pressed, details are not described herein.
Display unit 2106 is for showing information input by user or being supplied to the information of user.Display unit 2106 can
Including display panel 21061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes may be used
Forms such as (Organic Light-Emitting Diode, OLED) are managed to configure display panel 21061.
User input unit 2107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 2107 include touch panel 21071 with
And other input equipments 21072.Touch panel 21071, also referred to as touch screen collect user on it or neighbouring touch are grasped
Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 21071 or in touch panel
Operation near 21071).Touch panel 21071 may include both touch detecting apparatus and touch controller.Wherein, it touches
The touch orientation of detection device detection user is touched, and detects the signal that touch operation is brought, transmits a signal to touch controller;
Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 2110,
It receives the order that processor 2110 is sent and is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface
The multiple types such as sound wave realize touch panel 21071.In addition to touch panel 21071, user input unit 2107 can also include
Other input equipments 21072.Specifically, other input equipments 21072 can include but is not limited to physical keyboard, function key (ratio
Such as volume control button, switch key), trace information ball, mouse, operating lever, details are not described herein.
Further, touch panel 21071 can be covered on display panel 21061, when touch panel 21071 detects
After touch operation on or near it, processor 2110 is sent to determine the type of touch event, is followed by subsequent processing device 2110
Corresponding visual output is provided on display panel 21061 according to the type of touch event.Although in figure 21, touch panel
21071 with display panel 21061 be realize the function that outputs and inputs of mobile terminal as two independent components, but
In some embodiments, touch panel 21071 can be integrated with display panel 21061 and realize outputting and inputting for mobile terminal
Function does not limit specifically herein.
Interface unit 2108 is the interface that external device (ED) is connect with mobile terminal 2100.For example, external device (ED) may include
Wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless data port, storage card
Port, the port for connecting the device with identification module, the port audio input/output (I/O), video i/o port, earphone
Port etc..Interface unit 2108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) simultaneously
And by one or more elements that the input received is transferred in mobile terminal 2100 or it can be used in mobile terminal
Transmission data between 2100 and external device (ED).
Memory 2109 can be used for storing software program and various data.Memory 2109 can include mainly storage program
Area and storage data field, wherein storing program area can storage program area, needed at least one function application program (such as
Sound-playing function, image player function etc.) etc.;Storage data field can be stored uses created data (ratio according to mobile phone
Such as audio data, phone directory) etc..In addition, memory 2109 may include high-speed random access memory, can also include non-
Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 2110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 2109, and calls and is stored in storage
Data in device 2109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 2110 may include one or more processing units;Preferably, processor 2110 can integrate application processor and modulation /demodulation
Processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor master
Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 2110.
Mobile terminal 2100 can also include the power supply 2111 (such as battery) powered to all parts, it is preferred that power supply
2111 can be logically contiguous by power-supply management system and processor 2110, to realize that management is filled by power-supply management system
The functions such as electricity, electric discharge and power managed.
In addition, mobile terminal 2100 includes some unshowned function modules, details are not described herein.
Mobile terminal 2100 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, this
In repeat no more.And mobile terminal 2100 may be implemented after mobile terminal receives the input of user on the first image, it can
To determine the gradation zone in the first image.And then mobile terminal can show the first image through gradual change according to the gradation zone
Treated target image.I.e. user can determine the gradation zone in image according to their needs, be carried out at gradual change to picture
The flexibility of reason is preferable.Further, the first part's image and the second image that target image can be located in gradation zone
Second part image in gradation zone carries out gradual change fusion treatment, generates third image.Gradual change fusion is carried out to image
The flexibility of processing is also preferable.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 2110, memory 2109, storage
On memory 2109 and the computer program that can be run on the processor 2110, the computer program is by processor 2110
Each process of above-mentioned image processing method embodiment is realized when execution, and can reach identical technique effect, to avoid repeating,
Which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage 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 storage 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, the terms "include", "comprise" 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 include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of 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 this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a mobile terminal (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (14)
1. a kind of image processing method is applied to mobile terminal, which is characterized in that the method includes:
The first input of user on the first image is received, described first image is captured by the camera of the mobile terminal
The local picture of preview image or the mobile terminal;
In response to first input, the gradation zone in described first image is determined;
According to the gradation zone, display described first image is through gradual change treated target image.
2. according to the method described in claim 1, it is characterized in that, the display described first image is through gradual change treated mesh
After logo image, the method further includes:
The second image is shown in the target area of the target image, and the target area is associated with the gradation zone, institute
State the local picture of the preview image or the mobile terminal captured by the camera that the second image is the mobile terminal;
The target image is located at first part's image in the gradation zone and is located at the gradual change with second image
Second part image in region carries out gradual change fusion treatment, generates third image.
3. according to the method described in claim 1, it is characterized in that, first input is slide, described in the determination
Gradation zone in first image, including:
Obtain the sliding trace of the slide;
According to the sliding trace, the gradation zone in described first image is determined, wherein the gradation zone is between first point
Between boundary line and the second line of demarcation, first line of demarcation is respectively rising according to the sliding trace with second line of demarcation
Line of demarcation determined by point and terminal.
4. according to the method described in claim 1, it is characterized in that, first input is pressing operation, described in the determination
Gradation zone in first image, including:
Obtain the pressing position and dynamics value of the pressing operation;
According to the pressing position and the dynamics value, the gradation zone in described first image is determined, wherein the transition region
Domain is the annular region centered on the pressing position, and the size of the annular region is associated with the dynamics value.
5. according to the method described in claim 1, it is characterized in that, the display described first image is through gradual change treated mesh
After logo image, the method further includes:
Receive the second input to the side of the mobile terminal;
In response to second input, position or the size of the gradation zone are adjusted.
6. according to the method described in claim 1, it is characterized in that, the display described first image is through gradual change treated mesh
After logo image, the method further includes:
Gradual change line of demarcation is shown in the target image;
It receives and the third in the gradual change line of demarcation is inputted;
It is inputted in response to the third, adjusts the position of the gradation zone.
7. a kind of mobile terminal, which is characterized in that including:
First receiving module, for receiving the first input of user on the first image, described first image is described mobile whole
The local picture of preview image or the mobile terminal captured by the camera at end;
Determining module, in response to first input, determining the gradation zone in described first image;
First display module, for according to the gradation zone, display described first image is through gradual change treated target image.
8. mobile terminal according to claim 7, which is characterized in that the mobile terminal further includes:
Second display module, for showing the second image in the target area of the target image, the target area with it is described
Gradation zone is associated, and second image is the preview image or the movement captured by the camera of the mobile terminal
The local picture of terminal;
Gradual change Fusion Module, first part's image and described second for being located at the target image in the gradation zone
Image is located at the second part image in the gradation zone and carries out gradual change fusion treatment, generates third image.
9. mobile terminal according to claim 7, which is characterized in that first input is slide, the determination
Module includes:
First acquisition submodule, the sliding trace for obtaining the slide;
First determination sub-module, for according to the sliding trace, determining the gradation zone in described first image, wherein institute
Gradation zone is stated between the first line of demarcation and the second line of demarcation, first line of demarcation is respectively with second line of demarcation
According to line of demarcation determined by the beginning and end of the sliding trace.
10. mobile terminal according to claim 7, which is characterized in that first input is pressing operation, the determination
Module includes:
Second acquisition submodule, the pressing position for obtaining the pressing operation and dynamics value;
Second determination sub-module, for according to the pressing position and the dynamics value, determining the gradual change in described first image
Region, wherein the gradation zone is the annular region centered on the pressing position, the size of the annular region and institute
It is associated to state dynamics value.
11. mobile terminal according to claim 7, which is characterized in that the mobile terminal further includes:
Second receiving module, for receiving the second input to the side of the mobile terminal;
The first adjustment module, in response to second input, adjusting position or the size of the gradation zone.
12. mobile terminal according to claim 7, which is characterized in that the mobile terminal further includes:
Third display module, for showing gradual change line of demarcation in the target image;
Third receiving module, for receiving the third input to the gradual change line of demarcation;
Second adjustment module adjusts the position of the gradation zone for being inputted in response to the third.
13. a kind of mobile terminal, which is characterized 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 6 is realized when the computer program is executed by the processor
Any one of described in image processing method the step of.
14. a kind of computer read/write memory medium, which is characterized in that be stored with meter on the computer read/write memory medium
Calculation machine program realizes such as image procossing according to any one of claims 1 to 6 when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810311383.2A CN108537724A (en) | 2018-04-09 | 2018-04-09 | A kind of image processing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810311383.2A CN108537724A (en) | 2018-04-09 | 2018-04-09 | A kind of image processing method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108537724A true CN108537724A (en) | 2018-09-14 |
Family
ID=63483310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810311383.2A Pending CN108537724A (en) | 2018-04-09 | 2018-04-09 | A kind of image processing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108537724A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918882A (en) * | 2019-02-01 | 2019-06-21 | 维沃移动通信有限公司 | A kind of image encryption method and mobile terminal |
CN113206948A (en) * | 2021-03-31 | 2021-08-03 | 北京达佳互联信息技术有限公司 | Image effect previewing method and device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452187A (en) * | 2007-11-30 | 2009-06-10 | 上海复旦上科多媒体有限公司 | Application method of index form brightness transition in projector image splicing and fusing |
CN101923702A (en) * | 2010-08-25 | 2010-12-22 | 郝红卫 | Image valid code generating method |
CN102254324A (en) * | 2011-07-18 | 2011-11-23 | 中兴通讯股份有限公司 | Local image translating method and terminal with touch screen |
CN103873838A (en) * | 2014-03-03 | 2014-06-18 | 深圳市中兴移动通信有限公司 | Image processing device and image processing method |
CN103903587A (en) * | 2012-12-27 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Method and device for processing picture data |
CN104216600A (en) * | 2013-05-30 | 2014-12-17 | 北京三星通信技术研究有限公司 | Method for providing functions of application programs and touch screen intelligent terminal device |
CN105045502A (en) * | 2015-06-29 | 2015-11-11 | 努比亚技术有限公司 | Image processing method and image processing device |
CN105096289A (en) * | 2015-09-21 | 2015-11-25 | 河南科技学院 | Image processing method and mobile terminal |
CN105549868A (en) * | 2015-07-25 | 2016-05-04 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal operation processing method and apparatus and mobile terminal |
-
2018
- 2018-04-09 CN CN201810311383.2A patent/CN108537724A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452187A (en) * | 2007-11-30 | 2009-06-10 | 上海复旦上科多媒体有限公司 | Application method of index form brightness transition in projector image splicing and fusing |
CN101923702A (en) * | 2010-08-25 | 2010-12-22 | 郝红卫 | Image valid code generating method |
CN102254324A (en) * | 2011-07-18 | 2011-11-23 | 中兴通讯股份有限公司 | Local image translating method and terminal with touch screen |
CN103903587A (en) * | 2012-12-27 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Method and device for processing picture data |
CN104216600A (en) * | 2013-05-30 | 2014-12-17 | 北京三星通信技术研究有限公司 | Method for providing functions of application programs and touch screen intelligent terminal device |
CN103873838A (en) * | 2014-03-03 | 2014-06-18 | 深圳市中兴移动通信有限公司 | Image processing device and image processing method |
CN105045502A (en) * | 2015-06-29 | 2015-11-11 | 努比亚技术有限公司 | Image processing method and image processing device |
CN105549868A (en) * | 2015-07-25 | 2016-05-04 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal operation processing method and apparatus and mobile terminal |
CN105096289A (en) * | 2015-09-21 | 2015-11-25 | 河南科技学院 | Image processing method and mobile terminal |
Non-Patent Citations (1)
Title |
---|
WLIXIA123456: "PS实用技巧的渐变融合制作海报", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/48206AEADFFE4C216AD6B327.HTML》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918882A (en) * | 2019-02-01 | 2019-06-21 | 维沃移动通信有限公司 | A kind of image encryption method and mobile terminal |
CN109918882B (en) * | 2019-02-01 | 2023-11-21 | 维沃移动通信有限公司 | Image encryption method and mobile terminal |
CN113206948A (en) * | 2021-03-31 | 2021-08-03 | 北京达佳互联信息技术有限公司 | Image effect previewing method and device, electronic equipment and storage medium |
CN113206948B (en) * | 2021-03-31 | 2022-11-22 | 北京达佳互联信息技术有限公司 | Image effect previewing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107872623B (en) | A kind of image pickup method, mobile terminal and computer readable storage medium | |
CN110321044A (en) | Sharing files method and terminal | |
CN108984059A (en) | A kind of information display method and mobile terminal | |
CN108108114A (en) | A kind of thumbnail display control method and mobile terminal | |
CN107592459A (en) | A kind of photographic method and mobile terminal | |
CN109407921A (en) | A kind of processing method and terminal device of application program | |
CN110007837A (en) | A kind of picture editing method and terminal | |
CN108712577A (en) | A kind of call mode switching method and terminal device | |
CN109597550A (en) | A kind of image processing method and mobile terminal | |
CN109471692A (en) | A kind of display control method and terminal device | |
CN109871164A (en) | A kind of message method and terminal device | |
CN109407932A (en) | A kind of icon moving method and mobile terminal | |
CN108763317A (en) | A kind of auxiliary chooses the method and terminal device of picture | |
CN108260013A (en) | A kind of video playing control method and terminal | |
CN109683777A (en) | A kind of image processing method and terminal device | |
CN108563383A (en) | A kind of image viewing method and mobile terminal | |
CN110032309A (en) | A kind of split screen method and terminal device | |
CN109213407A (en) | A kind of screenshot method and terminal device | |
CN109976629A (en) | Image display method, terminal and mobile terminal | |
CN108228902A (en) | A kind of document display method and mobile terminal | |
CN110515521A (en) | A kind of screenshot method and mobile terminal | |
CN110442279A (en) | A kind of message method and mobile terminal | |
CN108446156A (en) | A kind of application control method and terminal | |
CN108415643A (en) | A kind of icon display method and terminal | |
CN110196664A (en) | Control method 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: 20180914 |