CN105808051A - Image processing method and electronic equipment - Google Patents

Image processing method and electronic equipment Download PDF

Info

Publication number
CN105808051A
CN105808051A CN201610110037.9A CN201610110037A CN105808051A CN 105808051 A CN105808051 A CN 105808051A CN 201610110037 A CN201610110037 A CN 201610110037A CN 105808051 A CN105808051 A CN 105808051A
Authority
CN
China
Prior art keywords
image
curvilinear path
area image
closed curve
curve track
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610110037.9A
Other languages
Chinese (zh)
Other versions
CN105808051B (en
Inventor
台流杰
田星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610110037.9A priority Critical patent/CN105808051B/en
Publication of CN105808051A publication Critical patent/CN105808051A/en
Application granted granted Critical
Publication of CN105808051B publication Critical patent/CN105808051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04842Selection of displayed objects or displayed text elements

Abstract

The invention discloses an image processing method which is applied to electronic equipment. The method comprises the following steps: loading and displaying a first image; detecting a first operation of forming a closed curve track on the first image and taking a regional image in the closed curve track as an object regional image; detecting a second operation of forming a non-closed curve track on the first image, wherein at least two cross points exist between the non-closed curve track and the closed curve track; confirming the operation type of the second operation on the basis of the relative position information of the non-closed curve track and the closed curve track and the position information of the cross points; and carrying out image region adjustment on the object regional image according to the operation type. The invention also discloses the electronic equipment at the same time.

Description

A kind of image processing method and electronic equipment
Technical field
The present invention relates to the information processing technology, particularly relate to a kind of image processing method and electronic equipment.
Background technology
Active user chooses in process carrying out image, it is necessary to entering an image-region increases or the pattern that deducts just can reach additions and deletions user and select the effect of image-region, and equipment cannot the operation purpose of automatic decision user.Such as, user adopts Photoshop to carry out image when choosing, and the shift key of keyboard and Alt key need to be utilized just can to realize the additions and deletions to selected image-region, complex operation, poor user experience.
Summary of the invention
The embodiment of the present invention provides a kind of image processing method and electronic equipment, solve at least problems of the prior art, user can be made just can to realize the region adjustment to user-selected image-region without entering any special pattern, easy and simple to handle, Consumer's Experience good.
The technical scheme of the embodiment of the present invention is achieved in that
Embodiments providing a kind of image processing method, be applied to electronic equipment, described method includes:
Load and show the first image;
The first operation forming closed curve track on described first image detected, using described closed curve track inner region image as target area image;
The second operation forming non-closed curvilinear path on described first image being detected, there is at least two cross point in described non-closed curvilinear path and described closed curve track;
Positional information based on the relative position information of described non-closed curvilinear path and described closed curve track and described cross point, it is determined that the action type of described second operation;
According to described action type, described target area image is carried out image-region adjustment.
In such scheme, based on the positional information of the relative position information of described non-closed curvilinear path and described closed curve track and described cross point, it is determined that the action type of described second operation, including:
Determine that described non-closed curvilinear path exists two cross points with described closed curve track;
The curvilinear path between said two cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path;
When described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the first action type;Described first action type is for indicating the reduction that described target area image carries out image-region;
When outside described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the second action type;Described second action type is for indicating the expansion that described target area image carries out image-region.
In such scheme, described action type is the first action type, and described target area image is divided into first area image and second area image by described 3rd curvilinear path, and described method also includes:
With different display effect mark described first area images and second area image;
Generate the first information;Described first information is for pointing out user to provide instruction first area image or second area image deleted from described target area image.
In such scheme, described action type is the second action type;Described according to described action type, described target area image is carried out image-region adjustment, including:
The image being positioned at outside described target area image curvilinear path between two intersection points in described closed curve track and described 3rd curvilinear path formed is as the 3rd area image, and merging described 3rd area image with described target area image is an area image.
In such scheme, after according to described action type described target area image being carried out image-region adjustment, described method also includes:
Target area image after carrying out described image-region adjustment is carried out background image information identification the transparency of the background image obtained according to the background transparent degree size adjustment identification preset.
In such scheme, based on the positional information of the relative position information of described non-closed curvilinear path and described closed curve track and described cross point, it is determined that the action type of described second operation, including:
Determine that described non-closed curvilinear path and described closed curve track exist N number of cross point;N is the positive integer more than 2;
The curvilinear path between first cross point and second cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path, extract curvilinear path between second cross point and the 3rd cross point as the 4th curvilinear path, until extracting the curvilinear path between N-1 cross point and n-th cross point as N+1 curvilinear path;
Judge that described 3rd curvilinear path, described 4th curvilinear path are until the relative position relation of described N+1 curvilinear path and described closed curve track respectively, if being positioned at described closed curve track, described target area image is carried out the reduction of image-region by then corresponding curvilinear path instruction, if being positioned at outside described closed curve track, then described target area image is carried out the expansion of image-region by corresponding curvilinear path instruction.
The embodiment of the present invention additionally provides a kind of electronic equipment, and described electronic equipment includes: display unit, detects unit, determine unit and adjustment unit;Wherein,
Described display unit, is used for loading and show the first image;
Described detection unit, for detecting the first operation forming closed curve track on described first image, using described closed curve track inner region image as target area image;
The second operation forming non-closed curvilinear path on described first image being detected, there is at least two cross point in described non-closed curvilinear path and described closed curve track;
Described determine unit, for the positional information based on the described non-closed curvilinear path relative position information with described closed curve track and described cross point, it is determined that the action type of described second operation;
Described adjustment unit, for carrying out image-region adjustment according to described action type to described target area image.
In such scheme, described determine unit, be additionally operable to determine that described non-closed curvilinear path exists two cross points with described closed curve track;
The curvilinear path between said two cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path;
When described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the first action type;Described first action type is for indicating the reduction that described target area image carries out image-region;
When outside described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the second action type;Described second action type is for indicating the expansion that described target area image carries out image-region.
In such scheme, described action type is the first action type, and described target area image is divided into first area image and second area image by described 3rd curvilinear path;
Described electronic equipment also includes Tip element, for identifying described first area image and second area image by different display effects;
Generate the first information;Described first information is for pointing out user to provide instruction first area image or second area image deleted from described target area image.
In such scheme, described action type is the second action type;
Described adjustment unit, the image being positioned at outside described target area image being additionally operable to form curvilinear path between two intersection points in described closed curve track and described 3rd curvilinear path is as the 3rd area image, and merging described 3rd area image with described target area image is an area image.
In such scheme, described adjustment unit, it is additionally operable to the target area image after carrying out described image-region adjustment is carried out background image information identification the transparency of the background image obtained according to the background transparent degree size adjustment identification preset.
In such scheme, described determine unit, be additionally operable to determine that described non-closed curvilinear path and described closed curve track exist N number of cross point;N is the positive integer more than 2;
The curvilinear path between first cross point and second cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path, extract curvilinear path between second cross point and the 3rd cross point as the 4th curvilinear path, until extracting the curvilinear path between N-1 cross point and n-th cross point as N+1 curvilinear path;
Judge that described 3rd curvilinear path, described 4th curvilinear path are until the relative position relation of described N+1 curvilinear path and described closed curve track respectively, if being positioned at described closed curve track, described target area image is carried out the reduction of image-region by then corresponding curvilinear path instruction, if being positioned at outside described closed curve track, then described target area image is carried out the expansion of image-region by corresponding curvilinear path instruction.
The image processing method of embodiment of the present invention offer and electronic equipment, load and show the first image, the closed curve track and non-closed curvilinear path that are formed on described first image detected successively, and there is at least two cross point in described non-closed curvilinear path and described closed curve track, then based on the positional information of the relative position information of described non-closed curvilinear path and described closed curve track and described cross point, determine the action type of described second operation, and according to described action type, described target area image is carried out image-region adjustment;So, user only needs the closed curve track first drawing an arbitrary graphic to determine target area image, then line and described closed curve track cross, the image-region adjustment to described target area image can be realized, user just can realize the region adjustment to user-selected image-region without entering any special pattern, easy and simple to handle, Consumer's Experience good.
Accompanying drawing explanation
Fig. 1 be embodiment of the present invention image processing method realize schematic flow sheet one;
Fig. 2 a is the first image schematic diagram one that the embodiment of the present invention loads and shows;
Fig. 2 b is the image schematic diagram one that the embodiment of the present invention detects closed curve track;
Fig. 2 c is the image schematic diagram one that the embodiment of the present invention detects non-closed curvilinear path;
Fig. 2 d is the image schematic diagram that target area image is split by the embodiment of the present invention the 3rd curvilinear path;
Fig. 2 e is the schematic diagram one after object region is carried out region adjustment by the embodiment of the present invention;
Fig. 2 f is the image schematic diagram of embodiment of the present invention display user's information;
Fig. 3 be embodiment of the present invention image processing method realize schematic flow sheet two;
Fig. 4 a is the first image schematic diagram two that the embodiment of the present invention loads and shows;
Fig. 4 b is the image schematic diagram two that the embodiment of the present invention detects closed curve track;
Fig. 4 c is the image schematic diagram two that the embodiment of the present invention detects non-closed curvilinear path;
Fig. 4 d is the schematic diagram two after object region is carried out region adjustment by the embodiment of the present invention;
Fig. 5 be embodiment of the present invention image processing method realize schematic flow sheet three;
Fig. 6 a is the first image schematic diagram three that the embodiment of the present invention loads and shows;
Fig. 6 b is the image schematic diagram three that the embodiment of the present invention detects closed curve track;
Fig. 6 c is the image schematic diagram three that the embodiment of the present invention detects non-closed curvilinear path;
Fig. 6 d is the image schematic diagram that the embodiment of the present invention extracts the 3rd curvilinear path and the 4th curvilinear path;
Fig. 6 e is the schematic diagram three after object region is carried out region adjustment by the embodiment of the present invention;
Fig. 6 f is the image schematic diagram after the embodiment of the present invention carries out background transparent degree adjustment;
Fig. 7 is the composition structural representation of embodiment of the present invention electronic equipment.
Detailed description of the invention
In embodiments of the present invention, load and show the first image;The first operation forming closed curve track on described first image detected, using described closed curve track inner region image as target area image;The second operation forming non-closed curvilinear path on described first image being detected, there is at least two cross point in described non-closed curvilinear path and described closed curve track;Positional information based on the relative position information of described non-closed curvilinear path and described closed curve track and described cross point, it is determined that the action type of described second operation;According to described action type, described target area image is carried out image-region adjustment.
Described electronic equipment includes but not limited to the mobile terminal of such as smart mobile phone, notebook computer, PAD (panel computer) etc. and the fixed terminal of such as numeral TV, desk computer etc. in embodiments of the present invention.
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Embodiment one
Fig. 1 be embodiment of the present invention image processing method realize schematic flow sheet, be applied to electronic equipment, as it is shown in figure 1, the flow process that realizes of embodiment of the present invention image processing method includes:
Step 101: load and show the first image.
Here, described first image is any image needing to carry out image-region process that user chooses, the first pending image schematic diagram loading for the embodiment of the present invention as shown in Figure 2 a and showing.
Step 102: the first operation forming closed curve track on described first image detected, using described closed curve track inner region image as target area image.
In one embodiment, described first operation can be any operation forming closed curve track on described first image, the closed curve track of the smooth curve formation of the arbitrary shape that described closed curve track can draw for user, as circular, oval etc.;It is the image schematic diagram of embodiment of the present invention closed curve track as shown in Figure 2 b.
Step 103: the second operation forming non-closed curvilinear path on described first image detected.
Here, there is at least two cross point in described non-closed curvilinear path and described closed curve track, described non-closed curvilinear path can be the curve with described closed curve track cross or straight line etc., accordingly, described second operation can be the operation of the curve with described closed curve track cross drawn on described first image of user or straight line;It is the image schematic diagram of embodiment of the present invention non-closed curvilinear path and two cross points of closed curve track existence as shown in Figure 2 c.
Step 104: based on the positional information of the relative position information of described non-closed curvilinear path and described closed curve track and described cross point, it is determined that the action type of described second operation.
When reality is implemented, the action type of the second operation could be arranged to two kinds, respectively the first action type and the second action type;Wherein, target area image (i.e. closed curve track inner region image) is carried out the reduction of image-region by the first action type for instruction;Second action type is for indicating the expansion that target area image carries out image-region;It should be noted that reduction mentioned here and expanding not to the image down of target area image and amplification, but to the deletion of the area size that target area image region carries out or increase.
nullOwing to non-closed curvilinear path and closed curve track exist at least two cross point,Non-closed curvilinear path is formed between adjacent two cross points one section of curve,Therefore,If adjacent one section of curve of two crosspoint extractings,At least one section of curve can be extracted from non-closed curve,And the every section of curve extracted from non-closed curve can form different relative position relations with described closed curve track,Such as closed curve track as described in being positioned at,Or be positioned at outside described closed curve track,And different position relationships can corresponding different action type,Such as corresponding first action type during closed curve track as described in being positioned at when curve,Corresponding second action type when outside curve is positioned at described closed curve track,In embodiments of the present invention,As shown in Figure 2 c,There are two cross points in non-closed curvilinear path with closed curve track,Curve between two cross points is positioned at described closed curve track,Therefore,Determine the reduction needing that target area image (i.e. closed curve track inner region image) is carried out image-region.
Step 105: described target area image is carried out image-region adjustment according to described action type.
In embodiments of the present invention, if making the curvilinear path between two cross points of non-closed curvilinear path and the formation of closed curve track is the 3rd curvilinear path, as shown in Figure 2 d, then can be seen that target area image is divided into first area image and second area image by the 3rd curvilinear path by Fig. 2 d, and described second operates corresponding first action type, therefore, it can be the reduction to target area image place image-region that described target area image carries out image-region adjustment, both can be that deletion first area image can also for deleting second area image, specifically can be preset by user, the image that region area is less is deleted as preset acquiescence, as shown in Figure 2 e;Or, when reality is implemented, with different display effect mark described first area images and second area image, generate and show an information, instruction first area image or second area image deleted from described target area image for pointing out user to provide, is namely determined to delete which image-region by user, as shown in figure 2f, if user selects image 1, then the image after object region being carried out region adjustment is 2e;Wherein, described different display effect can be any display effect that can distinguish described first area image and second area image, as filled different colors, fills different patterns etc..
Application the above embodiment of the present invention, choose in process when user carries out image, user only needs first to draw a closed curve trace graphics on pending image to determine target image, then draw a non-closed curvilinear path figure based on this target image again to intersect with described closed curve trace graphics, form at least two cross point, so, just the closed curve that can draw according to user and the relative position relation of non-closed curve, realize increase or the minimizing of the image-region to target image region automatically, user is without entering the pattern that special image-region increases or deducts, easy and simple to handle, Consumer's Experience is good.
Embodiment two
Fig. 3 be embodiment of the present invention image processing method realize schematic flow sheet, be applied to electronic equipment, as it is shown on figure 3, the flow process that realizes of embodiment of the present invention image processing method includes:
Step 301: load and show the first image.
Here, described first image is any image needing to carry out image-region process that user chooses, the first pending image schematic diagram that the embodiment of the present invention loads and shows as shown in Figure 4 a.
Step 302: the first operation forming closed curve track on described first image detected, using described closed curve track inner region image as target area image.
In one embodiment, described first operation can be any operation forming closed curve track on described first image, the closed curve track of the smooth curve formation of the arbitrary shape that described closed curve track can draw for user, as circular, oval etc.;It is the image schematic diagram of embodiment of the present invention closed curve track as shown in Figure 4 b.
Step 303: the second operation forming non-closed curvilinear path on described first image detected.
Here, there is at least two cross point in described non-closed curvilinear path and described closed curve track, described non-closed curvilinear path can be the curve with described closed curve track cross or straight line etc., accordingly, described second operation can be the operation of the curve with described closed curve track cross drawn on described first image of user or straight line;It is the image schematic diagram of embodiment of the present invention non-closed curvilinear path and two cross points of closed curve track existence as illustrated in fig. 4 c.
Step 304: detect that non-closed curvilinear path exists two cross points with closed curve track, extracts the curvilinear path between two cross points as the 3rd curvilinear path from non-closed curvilinear path.
Need exist for illustrate be; there are two cross points with closed curve track in non-closed curvilinear path in embodiments of the present invention; but in actual applications; also can there is two or more cross point in non-closed curvilinear path and closed curve track; such as 3,4,6 etc.; and when there is two or more cross point, in non-closed curvilinear path, one section of curve just can be extracted in adjacent two cross points.
Step 305: judge the relative position relation of the 3rd curvilinear path and closed curve track, if the 3rd curvilinear path is positioned at described closed curve track, performs step 306;If the 3rd curvilinear path is positioned at outside described closed curve track, perform step 308.
When reality is implemented, the position relationship corresponding described second that the 3rd curvilinear path is different from closed curve track operates different action types, and when the 3rd curvilinear path is positioned at described closed curve track, described action type is the first action type;First action type is for indicating the reduction that described target area image carries out image-region;When outside the 3rd curvilinear path is positioned at described closed curve track, described action type is the second action type;Second action type is for indicating the expansion that described target area image carries out image-region;It should be noted that reduction mentioned here and expanding not to the image down of target area image and amplification, but to the deletion of the area size that target area image region carries out or increase.
Step 306: with different display effect mark first area images and second area image, generate and show the first information.
Here, first area image and second area image are the first area image that target area image is divided into of the 3rd curvilinear path and second area image;
Described different display effect can be any display effect that can distinguish described first area image and second area image, as filled different colors, fills different patterns etc..
Described first information, for pointing out user to provide instruction first area image or second area image deleted from described target area image, is namely pointed out user, user is determined to delete which image-region.
Step 307: receive and response image deletes instruction, described target area image is carried out image-region adjustment.
Here, image-erasing instruction is the instruction deleting first area image or second area image that user provides;Respond this instruction, described target area image is carried out image-region adjustment and is deletion first area image or second area image.
Step 308: the 3rd area image and described target area image are merged into an area image.
Here, the 3rd area image is the area image being positioned at outside described target area image that in closed curve track, curvilinear path between two intersection points is formed with described 3rd curvilinear path;As illustrated in fig. 4 c.
3rd area image and described target area image being merged into an area image, namely described target area image has carried out the increase/expansion of image-region, the image area size of increase is the size of the image-region at described 3rd area image place;As shown in figure 4d.
Step 309: terminate this handling process.
nullThe above embodiment of the present invention forms two cross points for closed curve track and non-closed curvilinear path,Application above-described embodiment,Choose in process when user carries out image,User only needs first to draw a closed curve trace graphics on pending image to determine target image,Then draw a non-closed curvilinear path figure based on this target image again and intersect to form two cross points with described closed curve trace graphics,So,If not the curve between two cross points is positioned at outside described closed curve track on closed curve track,Just the increase to described object region can be directly realized by,If not the curve between two cross points is positioned at described closed curve track on closed curve track,Just an information is generated so that user determines the image-region deleted,Humanized,And user is without entering the pattern that special image-region increases or deducts,Improve Consumer's Experience.
Embodiment three
Fig. 5 be embodiment of the present invention image processing method realize schematic flow sheet, be applied to electronic equipment, as it is shown in figure 5, the flow process that realizes of embodiment of the present invention image processing method includes:
Step 501: load and show the first image.
Here, described first image is any image needing to carry out image-region process that user chooses, the first pending image schematic diagram loading for the embodiment of the present invention as shown in Figure 6 a and showing.
Step 502: the first operation forming closed curve track on described first image detected, using described closed curve track inner region image as target area image.
In one embodiment, described first operation can be any operation forming closed curve track on described first image, the closed curve track of the smooth curve formation of the arbitrary shape that described closed curve track can draw for user, as circular, oval etc.;It is the image schematic diagram of embodiment of the present invention closed curve track as shown in Figure 6 b.
Step 503: the second operation forming non-closed curvilinear path on described first image detected.
Here, there is at least two cross point in described non-closed curvilinear path and described closed curve track, described non-closed curvilinear path can be the curve with described closed curve track cross or straight line etc., accordingly, described second operation can be the operation of the curve with described closed curve track cross drawn on described first image of user or straight line;It is the image schematic diagram of embodiment of the present invention non-closed curvilinear path and three cross points of closed curve track existence as fig. 6 c.
Step 504: detect that non-closed curvilinear path exists three cross points with closed curve track, from non-closed curvilinear path, extract the curvilinear path between first cross point and second cross point as the 3rd curvilinear path, extract the curvilinear path between second cross point and the 3rd cross point as the 4th curvilinear path.
Need exist for illustrate be, if detecting there is N number of cross point in non-closed curvilinear path and closed curve track, N is the positive integer more than 2, from described non-closed curvilinear path, then extract the curvilinear path between first cross point and second cross point successively as the 3rd curvilinear path, extract curvilinear path between second cross point and the 3rd cross point as the 4th curvilinear path, until extracting the curvilinear path between N-1 cross point and n-th cross point as N+1 curvilinear path.
Step 505: detecting that the 3rd curvilinear path is positioned at closed curve track, the 4th curvilinear path is positioned at outside closed curve track.
When reality is implemented, if not there is N number of cross point in closed curve track and closed curve track, N is the positive integer more than 2, then need to judge respectively that described 3rd curvilinear path, described 4th curvilinear path are until the relative position relation of described N+1 curvilinear path and described closed curve track.
The position relationship corresponding described second that the curvilinear path of extraction is different from closed curve track non-closed curvilinear path operates different action types, if being positioned at described closed curve track, corresponding first action type of then corresponding curvilinear path, described target area image is carried out the reduction of image-region by instruction, if being positioned at outside described closed curve track, corresponding second action type of then corresponding curvilinear path, described target area image is carried out the expansion of image-region by instruction.3rd curvilinear path is positioned at closed curve track as shown in fig 6d, and the 4th curvilinear path is positioned at outside closed curve track, namely needs object region is carried out simultaneously the operation of image-region increase and minimizing.
Step 506: determine that the first image-region is less than the second image-region, deletes the first image-region, and merges the second image-region and the 3rd image-region is the 4th image-region.
Here, the first image-region and the second image-region are the first image-region of being divided into by object region of the 3rd curvilinear path and the second image-region;3rd image-region is the 4th curvilinear path is positioned at, with described closed curve track is formed, the image-region that object-image region is overseas.
In embodiments of the present invention, when performing the operation of image-region deletion, acquiescence deletes the image-region that region area is less, certainly also can generate one in actual applications for the information pointing out user to provide instruction first area image or second area image deleted from described target area image, user determine to delete which image-region.Fig. 6 e show the schematic diagram after object region is carried out region adjustment by the embodiment of the present invention.
Step 507: the 4th image-region is carried out background image information identification the transparency of the background image obtained according to the background transparent degree size adjustment identification preset.
Here, the background transparent degree size of area image can be set according to being actually needed, and is sized to 100% as set background transparent degree, so, when user is according to when being actually needed certain position inserting in another one image by the 4th area image, insert effect more desirable, as shown in Figure 6 f.
The above embodiment of the present invention forms three cross points for closed curve track and non-closed curvilinear path, application above-described embodiment, choose in process when user carries out image, user only needs first to draw a closed curve trace graphics on pending image to determine target image, then draw a non-closed curvilinear path figure based on this target image again to intersect with described closed curve trace graphics, so, can realize object region is carried out simultaneously increase and/or the minimizing of multiple image-region, and can automatically adjust the background transparent degree of the image after carrying out image-region adjustment, realize simple, Consumer's Experience is good.
Embodiment four
Fig. 7 is the composition structural representation of embodiment of the present invention electronic equipment, as it is shown in fig. 7, the composition of embodiment of the present invention electronic equipment includes: display unit 71, detection unit 72, determine unit 73 and adjustment unit 74;Wherein,
Described display unit 71, is used for loading and show the first image;
Described detection unit 72, for detecting the first operation forming closed curve track on described first image, using described closed curve track inner region image as target area image;
The second operation forming non-closed curvilinear path on described first image being detected, there is at least two cross point in described non-closed curvilinear path and described closed curve track;
Described determine unit 73, for the positional information based on the described non-closed curvilinear path relative position information with described closed curve track and described cross point, it is determined that the action type of described second operation;
Described adjustment unit 74, for carrying out image-region adjustment according to described action type to described target area image.
In one embodiment, described determine unit 73, be additionally operable to determine that described non-closed curvilinear path exists two cross points with described closed curve track;
The curvilinear path between said two cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path;
When described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the first action type;Described first action type is for indicating the reduction that described target area image carries out image-region;
When outside described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the second action type;Described second action type is for indicating the expansion that described target area image carries out image-region.
In one embodiment, described action type is the first action type, and described target area image is divided into first area image and second area image by described 3rd curvilinear path;
Described electronic equipment also includes Tip element 75, for identifying described first area image and second area image by different display effects;
Generate the first information;Described first information is for pointing out user to provide instruction first area image or second area image deleted from described target area image.
In one embodiment, described action type is the second action type;
Described adjustment unit 74, the image being positioned at outside described target area image being additionally operable to form curvilinear path between two intersection points in described closed curve track and described 3rd curvilinear path is as the 3rd area image, and merging described 3rd area image with described target area image is an area image.
In one embodiment, described adjustment unit 74, it is additionally operable to the target area image after carrying out described image-region adjustment is carried out background image information identification the transparency of the background image obtained according to the background transparent degree size adjustment identification preset.
In one embodiment, described determine unit 73, be additionally operable to determine that described non-closed curvilinear path and described closed curve track exist N number of cross point;N is the positive integer more than 2;
The curvilinear path between first cross point and second cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path, extract curvilinear path between second cross point and the 3rd cross point as the 4th curvilinear path, until extracting the curvilinear path between N-1 cross point and n-th cross point as N+1 curvilinear path;
Judge that described 3rd curvilinear path, described 4th curvilinear path are until the relative position relation of described N+1 curvilinear path and described closed curve track respectively, if being positioned at described closed curve track, described target area image is carried out the reduction of image-region by then corresponding curvilinear path instruction, if being positioned at outside described closed curve track, then described target area image is carried out the expansion of image-region by corresponding curvilinear path instruction.
It need to be noted that: above is referred to the description of electronic equipment, it is similar for describing with said method, describes with the beneficial effect of method, does not repeat.For the ins and outs not disclosed in mobile terminal embodiment of the present invention, refer to the description of the inventive method embodiment.
In embodiments of the present invention, display unit in described electronic equipment, detect unit, determine unit, adjustment unit and Tip element all can by the central processing unit (CPU in electronic equipment, or digital signal processor (DSP CentralProcessingUnit), or field programmable gate array (FPGA DigitalSignalProcessor), FieldProgrammableGateArray) or integrated circuit (ASIC, ApplicationSpecificIntegratedCircuit) realize.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage medium includes: movable storage device, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
Or, if the above-mentioned integrated unit of the present invention realizes using the form of SFU software functional unit and as independent production marketing or when using, it is also possible to be stored in a computer read/write memory medium.Based on such understanding, the part that prior art is contributed by the technical scheme of the embodiment of the present invention substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server or the network equipment etc.) performs all or part of of method described in each embodiment of the present invention.And aforesaid storage medium includes: the various media that can store program code such as movable storage device, ROM, RAM, magnetic disc or CDs.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with described scope of the claims.

Claims (12)

1. an image processing method, it is characterised in that being applied to electronic equipment, described method includes:
Load and show the first image;
The first operation forming closed curve track on described first image detected, using described closed curve track inner region image as target area image;
The second operation forming non-closed curvilinear path on described first image being detected, there is at least two cross point in described non-closed curvilinear path and described closed curve track;
Positional information based on the relative position information of described non-closed curvilinear path and described closed curve track and described cross point, it is determined that the action type of described second operation;
According to described action type, described target area image is carried out image-region adjustment.
2. method according to claim 1, it is characterised in that based on the positional information of the described non-closed curvilinear path relative position information with described closed curve track and described cross point, it is determined that the action type of described second operation, including:
Determine that described non-closed curvilinear path exists two cross points with described closed curve track;
The curvilinear path between said two cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path;
When described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the first action type;Described first action type is for indicating the reduction that described target area image carries out image-region;
When outside described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the second action type;Described second action type is for indicating the expansion that described target area image carries out image-region.
3. method according to claim 2, it is characterised in that described action type is the first action type, and described target area image is divided into first area image and second area image by described 3rd curvilinear path, and described method also includes:
With different display effect mark described first area images and second area image;
Generate the first information;Described first information is for pointing out user to provide instruction first area image or second area image deleted from described target area image.
4. method according to claim 2, it is characterised in that described action type is the second action type;Described according to described action type, described target area image is carried out image-region adjustment, including:
The image being positioned at outside described target area image curvilinear path between two intersection points in described closed curve track and described 3rd curvilinear path formed is as the 3rd area image, and merging described 3rd area image with described target area image is an area image.
5. method according to claim 1, it is characterised in that after according to described action type described target area image being carried out image-region adjustment, described method also includes:
Target area image after carrying out described image-region adjustment is carried out background image information identification the transparency of the background image obtained according to the background transparent degree size adjustment identification preset.
6. method according to claim 1, it is characterised in that based on the positional information of the relative position information of described non-closed curvilinear path and described closed curve track and described cross point, it is determined that the action type of described second operation, including:
Determine that described non-closed curvilinear path and described closed curve track exist N number of cross point;N is the positive integer more than 2;
The curvilinear path between first cross point and second cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path, extract curvilinear path between second cross point and the 3rd cross point as the 4th curvilinear path, until extracting the curvilinear path between N-1 cross point and n-th cross point as N+1 curvilinear path;
Judge that described 3rd curvilinear path, described 4th curvilinear path are until the relative position relation of described N+1 curvilinear path and described closed curve track respectively, if being positioned at described closed curve track, described target area image is carried out the reduction of image-region by then corresponding curvilinear path instruction, if being positioned at outside described closed curve track, then described target area image is carried out the expansion of image-region by corresponding curvilinear path instruction.
7. an electronic equipment, it is characterised in that described electronic equipment includes: display unit, detect unit, determine unit and adjustment unit;Wherein,
Described display unit, is used for loading and show the first image;
Described detection unit, for detecting the first operation forming closed curve track on described first image, using described closed curve track inner region image as target area image;
The second operation forming non-closed curvilinear path on described first image being detected, there is at least two cross point in described non-closed curvilinear path and described closed curve track;
Described determine unit, for the positional information based on the described non-closed curvilinear path relative position information with described closed curve track and described cross point, it is determined that the action type of described second operation;
Described adjustment unit, for carrying out image-region adjustment according to described action type to described target area image.
8. electronic equipment according to claim 7, it is characterised in that
Described determine unit, be additionally operable to determine that described non-closed curvilinear path exists two cross points with described closed curve track;
The curvilinear path between said two cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path;
When described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the first action type;Described first action type is for indicating the reduction that described target area image carries out image-region;
When outside described 3rd curvilinear path is positioned at described closed curve track, it is determined that described action type is the second action type;Described second action type is for indicating the expansion that described target area image carries out image-region.
9. electronic equipment according to claim 8, it is characterised in that described action type is the first action type, described target area image is divided into first area image and second area image by described 3rd curvilinear path;
Described electronic equipment also includes Tip element, for identifying described first area image and second area image by different display effects;
Generate the first information;Described first information is for pointing out user to provide instruction first area image or second area image deleted from described target area image.
10. electronic equipment according to claim 8, it is characterised in that described action type is the second action type;
Described adjustment unit, the image being positioned at outside described target area image being additionally operable to form curvilinear path between two intersection points in described closed curve track and described 3rd curvilinear path is as the 3rd area image, and merging described 3rd area image with described target area image is an area image.
11. electronic equipment according to claim 7, it is characterised in that
Described adjustment unit, is additionally operable to the target area image after carrying out described image-region adjustment is carried out background image information identification the transparency of the background image obtained according to the background transparent degree size adjustment identification preset.
12. electronic equipment according to claim 7, it is characterised in that
Described determine unit, be additionally operable to determine that described non-closed curvilinear path and described closed curve track exist N number of cross point;N is the positive integer more than 2;
The curvilinear path between first cross point and second cross point is extracted as the 3rd curvilinear path from described non-closed curvilinear path, extract curvilinear path between second cross point and the 3rd cross point as the 4th curvilinear path, until extracting the curvilinear path between N-1 cross point and n-th cross point as N+1 curvilinear path;
Judge that described 3rd curvilinear path, described 4th curvilinear path are until the relative position relation of described N+1 curvilinear path and described closed curve track respectively, if being positioned at described closed curve track, described target area image is carried out the reduction of image-region by then corresponding curvilinear path instruction, if being positioned at outside described closed curve track, then described target area image is carried out the expansion of image-region by corresponding curvilinear path instruction.
CN201610110037.9A 2016-02-26 2016-02-26 Image processing method and electronic equipment Active CN105808051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610110037.9A CN105808051B (en) 2016-02-26 2016-02-26 Image processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610110037.9A CN105808051B (en) 2016-02-26 2016-02-26 Image processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105808051A true CN105808051A (en) 2016-07-27
CN105808051B CN105808051B (en) 2019-12-24

Family

ID=56466173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610110037.9A Active CN105808051B (en) 2016-02-26 2016-02-26 Image processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105808051B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357979A (en) * 2016-09-19 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Photographing method, device and terminal
JP2022121448A (en) * 2018-01-12 2022-08-19 カシオ計算機株式会社 Display control device, display control method, and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103155534A (en) * 2010-09-27 2013-06-12 富士胶片株式会社 Image editing method and device, and image editing program
KR20130107868A (en) * 2012-03-23 2013-10-02 주식회사 인프라웨어 Method and apparatus for managing list using multi touch
CN104077784A (en) * 2013-03-29 2014-10-01 联想(北京)有限公司 Method for extracting target object and electronic device
CN104317520A (en) * 2014-10-23 2015-01-28 小米科技有限责任公司 Method and device for processing contents of display area
CN105005426A (en) * 2014-04-18 2015-10-28 深圳Tcl新技术有限公司 Screenshot method and system for touch screen terminal, and data sharing method and system for touch screen terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103155534A (en) * 2010-09-27 2013-06-12 富士胶片株式会社 Image editing method and device, and image editing program
KR20130107868A (en) * 2012-03-23 2013-10-02 주식회사 인프라웨어 Method and apparatus for managing list using multi touch
CN104077784A (en) * 2013-03-29 2014-10-01 联想(北京)有限公司 Method for extracting target object and electronic device
CN105005426A (en) * 2014-04-18 2015-10-28 深圳Tcl新技术有限公司 Screenshot method and system for touch screen terminal, and data sharing method and system for touch screen terminal
CN104317520A (en) * 2014-10-23 2015-01-28 小米科技有限责任公司 Method and device for processing contents of display area

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357979A (en) * 2016-09-19 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Photographing method, device and terminal
JP2022121448A (en) * 2018-01-12 2022-08-19 カシオ計算機株式会社 Display control device, display control method, and program
JP7388483B2 (en) 2018-01-12 2023-11-29 カシオ計算機株式会社 Display control device, display control method, and program

Also Published As

Publication number Publication date
CN105808051B (en) 2019-12-24

Similar Documents

Publication Publication Date Title
US9304668B2 (en) Method and apparatus for customizing a display screen of a user interface
US9218683B2 (en) Collection rearrangement animation
CN106575196B (en) Electronic device and method for displaying user interface thereof
CN104011629B (en) For enhanced target selecting method, equipment and the system of the user interface that can carry out the input based on touch
CN103049254B (en) DLL for semantic zoom
CN103597437B (en) Method and device using the display of the Interface Controller content of multimedia based on time shafts
CN102999274B (en) Semantic zoom animation
US9519369B2 (en) Touch screen selection
CN103713844B (en) The method of scaling screen-picture and electronic installation
US20150113428A1 (en) Widget Setting Method and Terminal Device
CN106168870A (en) A kind of split screen window display method and terminal
US20110283228A1 (en) Information processing apparatus and method, and program
CN109753641B (en) Method and device for changing object position, electronic equipment and storage medium
KR102368044B1 (en) User terminal device and method for controlling the user terminal device thereof
CN105511794A (en) Plotting system supporting multi-point touch gesture operation and method of system
CN106201234A (en) The inspection method of content of pages and device
CN112947923A (en) Object editing method and device and electronic equipment
CN107517312A (en) A kind of wallpaper switching method, device and terminal device
CN108153454B (en) Multi-touch switching method and device, storage medium and terminal equipment
CN105808051A (en) Image processing method and electronic equipment
CN104615764A (en) Display method and electronic equipment
US20140362090A1 (en) Movement of Position Indicator on Touchscreen
CN103809954B (en) Method and device for realizing interface element selection
CN108241460A (en) Picture suspension display methods, system and computer readable storage medium
CN106201399A (en) A kind of split screen window display method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant