CN109741415A - Figure layer method for sorting, device and terminal device - Google Patents
Figure layer method for sorting, device and terminal device Download PDFInfo
- Publication number
- CN109741415A CN109741415A CN201910002363.1A CN201910002363A CN109741415A CN 109741415 A CN109741415 A CN 109741415A CN 201910002363 A CN201910002363 A CN 201910002363A CN 109741415 A CN109741415 A CN 109741415A
- Authority
- CN
- China
- Prior art keywords
- layer
- similarity
- corresponding color
- equal
- group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Image Analysis (AREA)
Abstract
The embodiment of the present invention provides a kind of figure layer method for sorting, device and terminal device, this method comprises: receiving the figure layer collating order of input;It wherein, include the mark of figure layer to be arranged in figure layer collating order;According to figure layer collating order, it is determined whether there are M figure layer groups;M is the integer more than or equal to 1;M figure layer group if it exists then adjusts the position of figure layer to be arranged according to the corresponding color of figure layer to be arranged and the M corresponding color of figure layer group.Figure layer method for sorting, device and terminal device provided in an embodiment of the present invention improve the arrangement efficiency of figure layer.
Description
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of figure layer method for sorting, device and terminal to set
It is standby.
Background technique
It in the prior art, is by the people that works when needing to adjust the position of a certain figure layer in image rendering technologies field
Member drags image to be arranged manually, and image to be arranged is moved to the target position for needing to arrange.
But adopt manually, so that the arrangement of figure layer is inefficient.
Summary of the invention
The embodiment of the present invention provides a kind of figure layer method for sorting, device and terminal device, to improve the arrangement efficiency of figure layer.
In a first aspect, the embodiment of the present invention provides a kind of figure layer method for sorting, the figure layer method for sorting includes:
Receive the figure layer collating order of input;It wherein, include the mark of figure layer to be arranged in the figure layer collating order;
According to the figure layer collating order, it is determined whether there are M figure layer groups;Wherein, M is the integer more than or equal to 1;
The M figure layer group if it exists, then respectively according to the corresponding color of figure layer to be arranged and the M figure layer group
Corresponding color adjusts the position of the figure layer to be arranged.
In one possible implementation, the corresponding color of the figure layer to be arranged according to and the M figure layer
The corresponding color of group adjusts the position of the figure layer to be arranged, comprising:
The phase between the corresponding color of figure layer to be arranged and the corresponding color of M figure layer group is obtained respectively
Like degree, M similarity is obtained;
Judge whether the M similarity is greater than or equal to first threshold respectively;
If there is the similarity more than or equal to the first threshold in the M similarity, it is greater than described or wait
It is determined as target figure layer group in the corresponding figure layer group of the similarity of the first threshold;
The figure layer to be arranged is adjusted into the target figure layer group.
In one possible implementation, described that the similarity more than or equal to the first threshold is corresponding
Figure layer group is determined as target figure layer group, comprising:
Multiple similarities more than or equal to the first threshold if it exists are then greater than or equal to described for the multiple
In the similarity of one threshold value, the corresponding figure layer group of maximum similarity is determined as the target figure layer group.
In one possible implementation, described to obtain the corresponding color of figure layer to be arranged and the M respectively
Similarity between the corresponding color of figure layer group, comprising:
The corresponding color value of N number of figure layer for including in each figure layer group is obtained respectively;Wherein, N is more than or equal to 1
Integer;
By the average value of N number of corresponding color value of figure layer, it is determined as the corresponding color value of each figure layer group;
The corresponding color value of the figure layer to be arranged is compared with the corresponding color value of each figure layer group, is obtained
Similarity between the corresponding color of the figure layer to be arranged and the corresponding color of each figure layer group.
In one possible implementation, described to obtain the corresponding color of figure layer to be arranged and the M respectively
Similarity between the corresponding color of figure layer group, comprising:
The corresponding color value of N number of figure layer for including in each figure layer group is obtained respectively;Wherein, N is more than or equal to 1
Integer;
By the corresponding color value of the figure layer to be arranged, color value corresponding with N number of each figure layer of figure layer compares respectively
Compared with obtaining N number of similarity;
The average value of N number of similarity is determined in the corresponding color of figure layer to be arranged and the M figure layer group
Similarity between the corresponding color of each figure layer group.
In one possible implementation, the method also includes:
Figure layer group if it does not exist, alternatively, if there is no similar more than or equal to first threshold in the M similarity
Degree then obtains the corresponding color value of P figure layer respectively;Wherein, P is the integer more than or equal to 1;
The corresponding color value of the figure layer to be arranged color value corresponding with figure layer each in the P figure layer is carried out respectively
Compare, obtains P similarity;
By in the figure layer to be arranged and the P similarity, figure corresponding more than or equal to the similarity of second threshold
Layer merges, and generates new figure layer group.
In one possible implementation, described by the figure layer to be arranged and the P similarity, it is greater than or waits
It is merged in the corresponding figure layer of the similarity of second threshold, generates new figure layer group, comprising:
The figure layer to be arranged then is greater than by multiple similarities more than or equal to second threshold if it exists with the multiple
Or merged equal to the corresponding figure layer of maximum similarity in the similarity of second threshold, generate new figure layer group.
Second aspect, the embodiment of the present invention also provide a kind of figure layer collating unit, and the figure layer collating unit includes:
Receiving unit, figure layer collating order for receiving input;It wherein, include wait arrange in the figure layer collating order
The mark of figure layer;
Processing unit, for according to the figure layer collating order, it is determined whether there are M figure layer groups;Wherein, M be greater than
Integer equal to 1;
The processing unit is also used to the M figure layer group if it exists, then according to the corresponding color of the figure layer to be arranged
The position of the figure layer to be arranged is adjusted with the corresponding color of the M figure layer group.
In one possible implementation, the processing unit, specifically for obtaining the figure layer pair to be arranged respectively
The similarity between color and the corresponding color of M figure layer group answered, obtains M similarity;And institute is judged respectively
State whether M similarity is greater than or equal to first threshold;If existing in the M similarity and being greater than or equal to the first threshold
Similarity, then the corresponding figure layer group of the similarity more than or equal to the first threshold is determined as target figure layer group;
And the figure layer to be arranged is adjusted into the target figure layer group.
In one possible implementation, the processing unit is specifically used for multiple more than or equal to described if it exists
The similarity of first threshold, then by the multiple similarity more than or equal to the first threshold, maximum similarity pair
The figure layer group answered is determined as the target figure layer group.
In one possible implementation, the processing unit, specifically for obtaining the N for including in each figure layer group respectively
A corresponding color value of figure layer;Wherein, N is the integer more than or equal to 1;By N number of corresponding color of figure layer
The average value of value is determined as the corresponding color value of each figure layer group;And by the corresponding color value of the figure layer to be arranged and institute
The corresponding color value for stating each figure layer group is compared, and obtains the corresponding color of the figure layer to be arranged and each figure layer group
Similarity between corresponding color.
In one possible implementation, the processing unit, specifically for obtaining the N for including in each figure layer group respectively
A corresponding color value of figure layer;Wherein, N is the integer more than or equal to 1;And by the corresponding color of the figure layer to be arranged
Color value corresponding with N number of each figure layer of figure layer is compared value respectively, obtains N number of similarity;And by N number of similarity
Average value, determine between the corresponding color of the figure layer to be arranged color corresponding with figure layer group each in the M figure layer group
Similarity.
In one possible implementation, the processing unit is also used to figure layer group if it does not exist, alternatively, if the M
There is no the similarities more than or equal to first threshold in a similarity, then obtain the corresponding color value of P figure layer respectively;
Wherein, P is the integer more than or equal to 1;Respectively by each figure layer in the corresponding color value of figure layer to be arranged and the P figure layer
Corresponding color value is compared, and obtains P similarity;And will in the figure layer be arranged and the P similarity, be greater than or
Figure layer corresponding equal to the similarity of second threshold merges, and generates new figure layer group.
In one possible implementation, the processing unit is greater than or equal to second specifically for multiple if it exists
The similarity of threshold value, then it is the figure layer to be arranged is maximum similar to the multiple similarity more than or equal to second threshold
It spends corresponding figure layer to merge, generates new figure layer group.
The third aspect, the embodiment of the present invention also provide a kind of terminal device, and the terminal device includes processor and storage
Device, wherein
The memory is for storing program instruction;
The processor is used to read the program instruction in the memory, and according to the program instruction in the memory
Execute the described in any item figure layer method for sorting of above-mentioned first aspect.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, computer readable storage medium
On be stored with computer program, when the computer program is executed by processor, execute described in above-mentioned any one of first aspect
Figure layer method for sorting.
Figure layer method for sorting, device and terminal device provided in an embodiment of the present invention arrange life in the figure layer for receiving input
When enabling;According to figure layer collating order, it is determined whether there are M figure layer groups;It wherein, include figure layer to be arranged in figure layer collating order
Mark, M is integer more than or equal to 1;M figure layer group if it exists, then according to the corresponding color of figure layer to be arranged and M figure layer
The corresponding color of group adjusts the position of figure layer to be arranged.Compared with prior art, without manually mode adjust to
The position of figure layer is arranged, but is being determined there are when M figure layer group, is directly schemed according to the corresponding color of figure layer to be arranged and M
Layer organizes corresponding color and adjusts the position of figure layer to be arranged, to improve the arrangement efficiency of figure layer.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of figure layer method for sorting provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another figure layer method for sorting provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram for obtaining the corresponding color value of figure layer group provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of figure layer collating unit provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove
Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any
Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production
Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this
A little process, methods, the other step or units of product or equipment inherently.
It is to be dragged manually by staff wait arrange in the prior art when user adjusts the position wait arrange figure layer
Image to be arranged is moved to and the target position arranged is needed still to adopt manually, so that figure layer is whole by image
It manages inefficient.In order to improve the arrangement efficiency of figure layer, the embodiment of the invention provides a kind of figure layer method for sorting, defeated receiving
When the figure layer collating order entered;According to figure layer collating order, it is determined whether there are M figure layer groups;Wherein, in figure layer collating order
Mark including figure layer to be arranged, M are the integer more than or equal to 1;M figure layer group if it exists, then it is corresponding according to figure layer to be arranged
Color and the M corresponding color of figure layer group adjust the position of figure layer to be arranged.Compared with prior art, without hand
Dynamic mode adjusts the position of figure layer to be arranged, but is determining there are when M figure layer group, is directly corresponded to according to figure layer to be arranged
Color and the M corresponding color of figure layer group adjust the position of figure layer to be arranged, to improve the arrangement efficiency of figure layer.
How technical solution of the present invention and technical solution of the present invention are solved with specific embodiment below above-mentioned
Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept
Or process repeats no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 1 is a kind of flow diagram of figure layer method for sorting provided in an embodiment of the present invention, which can
To be executed by figure layer collating unit, which can be independently arranged, and also can integrate in the processor.It is exemplary,
Shown in Figure 1, which may include:
S101, the figure layer collating order for receiving input.
Wherein, include the mark of figure layer to be arranged in figure layer collating order, be somebody's turn to do the mark of figure layer to be arranged for uniquely marking
Knowing should figure layer be arranged.Exemplary, the mark for being somebody's turn to do figure layer to be arranged can be number, or letter, as long as can be unique
Mark should be wait arrange figure layer.
It should be noted that herein have a figure wait arrange to draw in figure layer, and should figure be arranged can be understood as using
The figure layer that family newly constructs, it is understood that the already existing figure layer for before.
It is exemplary, when receiving the figure layer collating order of input, input can be obtained by the microphone of terminal device
Figure layer collating order;The figure layer collating order of input can also be obtained by the entr screen of terminal device;It is of course also possible to logical
The figure layer collating order that the modes such as network or bluetooth receive other equipment input is crossed, certainly, the embodiment of the present invention is only with this
Three kinds of possible implementations are illustrated for obtaining the figure layer collating order inputted, but do not represent the embodiment of the present invention only
It is confined to this.
After the figure layer collating order for receiving input, following S102 can be executed:
S102, according to figure layer collating order, it is determined whether there are M figure layer groups.
Wherein, M is the integer more than or equal to 1.It is made of it should be noted that can be in figure layer group a figure layer,
It is also possible to be made of two or more figure layer.When figure layer group is made of a figure layer, the color of the figure layer
Value is the color value of figure layer group;When figure layer group is made of two or more figure layer, wherein each figure layer is each
The average value of self-corresponding color value, the as color value of figure layer group.
After receiving figure layer collating order, illustrates currently to need to be arranged figure layer to need to arrange, arranging figure layer to be arranged
When, need first to determine the target position that the figure layer to be arranged needs to adjust, to realize the arrangement treated and arrange figure layer.In determination
This can judge whether there is M figure layer group, first when arranging the target position that figure layer needs to adjust with true according to judging result
It is fixed how to adjust figure layer to be arranged.
S103, if it exists M figure layer group, then it is corresponding according to the corresponding color of figure layer to be arranged and M figure layer group
Color adjusts the position of figure layer to be arranged.
Wherein, the corresponding color of figure layer to be arranged can be understood as wait arrange the corresponding color of figure drawn in figure layer.
If there is currently M figure layer group, can directly according to the corresponding color of figure layer to be arranged and M figure layer group respectively
Corresponding color adjusts the position of figure layer to be arranged, to improve the arrangement efficiency of figure layer.
Figure layer method for sorting provided in an embodiment of the present invention, when receiving the figure layer collating order of input;It is whole according to figure layer
Reason order, it is determined whether there are M figure layer groups;Wherein, include the mark of figure layer to be arranged in figure layer collating order, M be greater than
Integer equal to 1;M figure layer group if it exists, then according to the corresponding color of figure layer to be arranged and the M corresponding face of figure layer group
The position of color adjustment figure layer to be arranged.Compared with prior art, the position of figure layer to be arranged is adjusted without manually mode,
But it is determining there are when M figure layer group, the direct basis corresponding color of figure layer to be arranged and the M corresponding face of figure layer group
The position of color adjustment figure layer to be arranged, to improve the arrangement efficiency of figure layer.
Based on embodiment shown in FIG. 1, the figure layer method for sorting provided in order to illustrate the embodiments of the present invention more clearly shows
Example, shown in Figure 2, Fig. 2 is the flow diagram of another figure layer method for sorting provided in an embodiment of the present invention, the figure
Layer method for sorting can also include:
S201, the figure layer collating order for receiving input.
It wherein, include the mark of figure layer to be arranged in figure layer collating order.
Explanation is also needed, figure layer to be arranged herein can be understood as the figure layer that user newly constructs, can also manage
Solution already existing figure layer for before.
It is understood that obtaining the mode of the figure layer collating order of input in the S201 can be found in above-mentioned SS101
Description, here, the embodiment of the present invention is no longer repeated.
After the figure layer collating order for receiving input, following S202 can be executed:
S202, according to figure layer collating order, judge whether there is M figure layer group.
Wherein, M is the integer more than or equal to 1.
S203, if it exists M figure layer group, then obtain the corresponding color of figure layer to be arranged respectively and M figure layer group is respectively right
The similarity between color answered, obtains M similarity.
After judging whether there is M figure layer group by S202, M figure layer group, then can be obtained respectively to whole if it exists
The similarity in the corresponding color of figure layer and M figure layer group between each corresponding color of figure layer group is managed, to obtain M
Similarity.Optionally, the phase between the corresponding color of figure layer to be arranged and the M corresponding color of figure layer group is being obtained respectively
When seemingly spending, it can be realized by following at least two possible modes:
In one possible implementation, it is corresponding that the N number of figure layer for including in each figure layer group can be obtained respectively
Color value (S301);The average value (S302) of the corresponding color value of N number of figure layer is calculated, and N number of figure layer is corresponding
The average value of color value is determined as the corresponding color value (S303) of each figure layer group;Again will the corresponding color value of figure layer be arranged with
The corresponding color value of each figure layer group is compared, and obtains the corresponding color of the corresponding color of figure layer to be arranged with each figure layer group
Between similarity.Wherein, N is the integer more than or equal to 1.
It is exemplary, in this kind of possible implementation, determine that the corresponding color value of each figure layer group may refer to Fig. 3 institute
Show, Fig. 3 is a kind of schematic diagram for obtaining the corresponding color value of figure layer group provided in an embodiment of the present invention, including above-mentioned S301-
S303.Optionally, in the average value for calculating the corresponding color value of each figure layer, and the average value of the color value is determined
When color value corresponding for each figure layer group, unified quantization (uniform quantization) algorithm, frequency sequence can be used
Arrange (popularity algorithm) algorithm, (mediano_cut algorithm) algorithm, octree quantization is cut in middle position
(octree algorithm) algorithm etc..
In alternatively possible implementation, the N number of figure layer for including in each figure layer group can be obtained respectively and is respectively corresponded to
Color value;And will the corresponding color value of figure layer be arranged color value corresponding with each figure layer of N number of figure layer is compared respectively, obtain
To N number of similarity;The average value of N number of similarity is calculated again, and by the average value of N number of similarity, determines that figure layer to be arranged is corresponding
Color color corresponding with figure layer group each in M figure layer group between similarity.Wherein, N is the integer more than or equal to 1.
It is obtained between the corresponding color of figure layer to be arranged and the M corresponding color of figure layer group respectively by S203
Similarity after obtaining M similarity, can execute following S204:
S204, judge whether M similarity is greater than or equal to first threshold respectively.
Wherein, first threshold can be 70, or 80%, it is of course also possible to be 90%, it specifically can be according to reality
It needs to be configured, here, specially how many for first threshold, the embodiment of the present invention is not done and further limited.
If there is the similarity more than or equal to first threshold in S205, M similarities, above or equal to the first threshold
The corresponding figure layer group of the similarity of value is determined as target figure layer group.
It should be noted that being determined as target figure layer in the corresponding figure layer group of similarity above or equal to first threshold
When group, multiple similarities more than or equal to first threshold if it exists, illustrate there are the corresponding color of multiple figure layer groups with to whole
The similarity for managing the corresponding color of figure layer is higher, then first determines in multiple similarities more than or equal to first threshold, maximum
Similarity, and by multiple similarities more than or equal to first threshold, the corresponding figure layer group of maximum similarity are determined as mesh
It marks on a map a layer group.
S206, figure layer to be arranged is adjusted into target figure layer group.
After determining target figure layer group by S205, so that it may figure layer to be arranged is adjusted into the target figure layer, from
And complete the arrangement of figure layer to be arranged.Compared with prior art, the position of figure layer to be arranged is adjusted without manually mode,
But determining that there are when M figure layer group, obtain the corresponding color of figure layer to be arranged and the M corresponding face of figure layer group respectively
Similarity between color obtains M similarity;And when there is the similarity more than or equal to first threshold in M similarity,
Be determined as target figure layer group above or equal to the corresponding figure layer group of similarity of first threshold, and will figure layer be arranged adjust to
In target figure layer group, to improve the arrangement efficiency of figure layer.
It should be noted that in S202 according to figure layer collating order, after judging whether there is M figure layer group, if currently
There is no figure layer groups, or after S204 judges whether M similarity is greater than or equal to first threshold respectively, if M similar
There is no the similarities more than or equal to first threshold in degree, illustrate every in the corresponding color of figure layer to be arranged and M figure layer group
Similarity between the corresponding color of one figure layer group is lower, at this point it is possible to execute following S207-S209:
S207, the corresponding color value of P figure layer is obtained respectively.
Wherein, P is the integer more than or equal to 1.
S208, the corresponding color value of figure layer to be arranged color value corresponding with figure layer each in P figure layer compared respectively
Compared with obtaining P similarity.
It, can be respectively by figure layer to be arranged in getting P figure layer after the corresponding color value of each figure layer
Corresponding color value color value corresponding with each figure layer in P figure layer is compared, to obtain P similarity.
S209, will in figure layer be arranged and P similarity, figure layer corresponding more than or equal to the similarity of second threshold into
Row merges, and generates new figure layer group.
Wherein, second threshold can be equal with first threshold, can also be unequal with first threshold.It is exemplary, the second threshold
Value can be 70, or 80%, it is of course also possible to be 90%, can specifically be configured according to actual needs, here,
Specially how many for second threshold, the embodiment of the present invention is not done and is further limited.
It should be noted that will figure layer be arranged in P similarity, more than or equal to the similarity pair of second threshold
The figure layer answered merges, and when generating new figure layer group, multiple similarities more than or equal to second threshold if it exists then will be to
It arranges figure layer figure layer corresponding with maximum similarity in multiple similarities more than or equal to second threshold to merge, generate new
Figure layer group, to complete the arrangement of figure layer to be arranged.Compared with prior art, it adjusts without manually mode wait arrange
The position of figure layer, but determining that there is no there is no be greater than or equal to first threshold in M figure layer group or M similarity
Similarity when, the corresponding color value of figure layer to be arranged color value corresponding with figure layer each in P figure layer is compared respectively,
Obtain P similarity, and will figure layer be arranged in P similarity, figure corresponding more than or equal to the similarity of second threshold
Layer merges, and new figure layer group is generated, to improve the arrangement efficiency of figure layer.
It in actual application, i.e., be to default for including default figure layer in the figure layer collating order received
Figure layer is arranged;After receiving the figure layer collating order, first judgement currently whether there is figure layer group, if there is currently three
A figure layer group, three figure layer groups are respectively the first figure layer group, the second figure layer group and third figure layer group, then first obtain respectively default
The corresponding color of figure layer color corresponding with the first figure layer group, the corresponding color of the second figure layer group and the corresponding face of third figure layer group
Similarity between color, and the first phase between the default corresponding color of figure layer color corresponding with the first figure layer group is judged respectively
Like degree, the second similarity and default figure layer between the default corresponding color of figure layer color corresponding with the second figure layer group are corresponding
Color color corresponding with third figure layer group between third similarity whether be greater than or equal to first threshold, if second is similar
Degree and third similarity are all larger than first threshold, then need further to judge big between the second similarity and third similarity
It is small, if the second similarity is greater than third similarity, the corresponding second figure layer group of the second similarity is determined as target figure layer group,
And adjust default figure layer into the target figure layer group, to complete the arrangement to default figure layer.
In addition, after judging whether there is M figure layer group, if there is currently no figure layer groups or above-mentioned first similar
When degree, the second similarity and third similarity are respectively less than first threshold, current single figure layer can be further obtained, if currently
There are three figure layers, which is respectively the first figure layer, the second figure layer and third figure layer, then first obtains default figure layer respectively
Phase between corresponding color color corresponding with the first figure layer, the corresponding color of the second figure layer and the corresponding color of third figure layer
Like degree, and the 4th similarity between the default corresponding color of figure layer color corresponding with the first figure layer is judged respectively, preset figure
The 5th similarity and the corresponding color of default figure layer and third figure between the corresponding color of layer color corresponding with the second figure layer
Color between the 6th similarity whether be greater than or equal to second threshold, if the 5th similarity and the 6th similarity are all larger than
Two threshold values then need further to judge the size between the 5th similarity and the 6th similarity, if the 5th similarity is greater than the 6th
Default figure layer the second figure layer corresponding with the 5th similarity is then merged, new figure layer group is generated, to complete by similarity
Arrangement to default figure layer.
Fig. 4 is a kind of structural schematic diagram of figure layer collating unit 40 provided in an embodiment of the present invention, exemplary, refers to figure
Shown in 4, which may include:
Receiving unit 401, figure layer collating order for receiving input;It wherein, include wait arrange in figure layer collating order
The mark of figure layer.
Processing unit 402, for according to figure layer collating order, it is determined whether there are M figure layer groups;Wherein, M be greater than etc.
In 1 integer.
Processing unit 402 is also used to M figure layer group if it exists, then according to the corresponding color of figure layer to be arranged and M figure layer
The corresponding color of group adjusts the position of figure layer to be arranged.
Optionally, processing unit 402, it is each specifically for obtaining the corresponding color of figure layer to be arranged and M figure layer group respectively
Similarity between self-corresponding color obtains M similarity;And judge whether M similarity is greater than or equal to first respectively
Threshold value;If there is the similarity more than or equal to first threshold in M similarity, above or equal to the similar of first threshold
It spends corresponding figure layer group and is determined as target figure layer group;And figure layer to be arranged is adjusted into target figure layer group.
Optionally, then will specifically for multiple similarities more than or equal to first threshold if it exists processing unit 402
In multiple similarities more than or equal to first threshold, the corresponding figure layer group of maximum similarity is determined as target figure layer group.
Optionally, processing unit 402, it is corresponding specifically for obtaining the N number of figure layer for including in each figure layer group respectively
Color value;Wherein, N is the integer more than or equal to 1;By the average value of the corresponding color value of N number of figure layer, it is determined as each figure
Layer organizes corresponding color value;And be compared the corresponding color value of figure layer to be arranged with the corresponding color value of each figure layer group,
Obtain the similarity between the corresponding color of figure layer to be arranged and the corresponding color of each figure layer group.
Optionally, processing unit 402, it is corresponding specifically for obtaining the N number of figure layer for including in each figure layer group respectively
Color value;Wherein, N is the integer more than or equal to 1;And the corresponding color value of figure layer to be arranged respectively is schemed with N number of figure layer respectively
The corresponding color value of layer is compared, and obtains N number of similarity;And by the average value of N number of similarity, determine that figure layer to be arranged is corresponding
Color color corresponding with figure layer group each in M figure layer group between similarity.
Optionally, processing unit 402 are also used to figure layer group if it does not exist, alternatively, if there is no be greater than in M similarity
Or the similarity equal to first threshold, then the corresponding color value of P figure layer is obtained respectively;Wherein, P is more than or equal to 1
Integer;The corresponding color value of figure layer to be arranged color value corresponding with figure layer each in P figure layer is compared respectively, obtains P
A similarity;And will figure layer be arranged in P similarity, figure layer progress corresponding more than or equal to the similarity of second threshold
Merge, generates new figure layer group.
Optionally, then will specifically for multiple similarities more than or equal to second threshold if it exists processing unit 402
Figure layer to be arranged figure layer corresponding with maximum similarity in multiple similarities more than or equal to second threshold merges, and generates
New figure layer group.
Figure layer collating unit 40 shown in the embodiment of the present invention can execute the arrangement of figure layer shown in any of the above-described embodiment
The realization principle and beneficial effect class of the technical solution of method, realization principle and beneficial effect and figure layer method for sorting
Seemingly, it is no longer repeated herein.
Fig. 5 is a kind of structural schematic diagram of terminal device 50 provided in an embodiment of the present invention, shown in Figure 5, the end
End equipment 50 may include processor 501 and memory 502, wherein
Memory 502 is for storing program instruction.
Processor 501 is used to read the program instruction in memory 502, and is held according to the program instruction in memory 502
Figure layer method for sorting shown in any of the above-described embodiment of row.
Terminal device 50 shown in the embodiment of the present invention can execute figure layer method for sorting shown in any of the above-described embodiment
Technical solution, realization principle and beneficial effect are similar with the realization principle of figure layer method for sorting and beneficial effect, this
Place is no longer repeated.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored on the computer readable storage medium
Computer program executes figure layer method for sorting shown in any of the above-described embodiment when computer program is executed by processor
Technical solution, realization principle and beneficial effect are similar with the realization principle of figure layer method for sorting and beneficial effect, herein
No longer repeated.
Processor can be general processor, digital signal processor (digital signal in above-described embodiment
Processor, DSP), it is specific integrated circuit (application specific integrated circuit, ASIC), existing
At programmable gate array (field programmable gate array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.It may be implemented or execute the disclosed each side in the embodiment of the present invention
Method, step and logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processing
Device etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processor and execute completion,
Or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory
(random access memory, RAM), flash memory, may be programmed read-only deposit at read-only memory (read-only memory, ROM)
In the storage medium of this fields such as reservoir or electrically erasable programmable memory, register maturation.The storage medium, which is located at, to be deposited
The step of reservoir, processor reads the instruction in memory, completes the above method in conjunction with its hardware.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.In addition, the functional units in various embodiments of the present invention may be integrated into one processing unit, it is also possible to each
Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used
To use formal implementation of hardware, can also be realized in the form of hardware adds SFU software functional unit.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claims are pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claims
System.
Claims (16)
1. a kind of figure layer method for sorting characterized by comprising
Receive the figure layer collating order of input;It wherein, include the mark of figure layer to be arranged in the figure layer collating order;
According to the figure layer collating order, it is determined whether there are M figure layer groups;Wherein, M is the integer more than or equal to 1;
The M figure layer group if it exists is then respectively corresponded to according to the corresponding color of figure layer to be arranged and the M figure layer group
Color adjust the position of the figure layer to be arranged.
2. the method according to claim 1, wherein the corresponding color of the figure layer to be arranged according to and institute
State the position that the corresponding color of M figure layer group adjusts the figure layer to be arranged, comprising:
It obtains respectively similar between the corresponding color of figure layer to be arranged and the corresponding color of M figure layer group
Degree, obtains M similarity;
Judge whether the M similarity is greater than or equal to first threshold respectively;
If there is the similarity more than or equal to the first threshold in the M similarity, described institute will be greater than or equal to
The corresponding figure layer group of similarity for stating first threshold is determined as target figure layer group;
The figure layer to be arranged is adjusted into the target figure layer group.
3. according to the method described in claim 2, it is characterized in that, described by the phase more than or equal to the first threshold
It is determined as target figure layer group like corresponding figure layer group is spent, comprising:
Multiple similarities more than or equal to the first threshold if it exists are then greater than or equal to first threshold for the multiple
In the similarity of value, the corresponding figure layer group of maximum similarity is determined as the target figure layer group.
4. according to the method in claim 2 or 3, which is characterized in that the figure layer to be arranged of acquisition respectively is corresponding
Similarity between color and the corresponding color of M figure layer group, comprising:
The corresponding color value of N number of figure layer for including in each figure layer group is obtained respectively;Wherein, N is whole more than or equal to 1
Number;
By the average value of N number of corresponding color value of figure layer, it is determined as the corresponding color value of each figure layer group;
The corresponding color value of the figure layer to be arranged is compared with the corresponding color value of each figure layer group, is obtained described
Similarity between the corresponding color of figure layer to be arranged and the corresponding color of each figure layer group.
5. according to the method in claim 2 or 3, which is characterized in that the figure layer to be arranged of acquisition respectively is corresponding
Similarity between color and the corresponding color of M figure layer group, comprising:
The corresponding color value of N number of figure layer for including in each figure layer group is obtained respectively;Wherein, N is whole more than or equal to 1
Number;
By the corresponding color value of the figure layer to be arranged, color value corresponding with N number of each figure layer of figure layer is compared respectively,
Obtain N number of similarity;
By the average value of N number of similarity, determines and respectively scheme in the corresponding color of figure layer to be arranged and the M figure layer group
Layer organizes the similarity between corresponding color.
6. according to the method described in claim 2, it is characterized by further comprising:
Figure layer group if it does not exist, alternatively, if the similarity more than or equal to first threshold is not present in the M similarity,
The corresponding color value of P figure layer is obtained respectively;Wherein, P is the integer more than or equal to 1;
The corresponding color value of the figure layer to be arranged color value corresponding with figure layer each in the P figure layer is compared respectively
Compared with obtaining P similarity;
By in the figure layer to be arranged and the P similarity, figure layer corresponding more than or equal to the similarity of second threshold into
Row merges, and generates new figure layer group.
7. according to the method described in claim 6, it is characterized in that, described by the figure layer to be arranged and the P similarity
In, figure layer corresponding more than or equal to the similarity of second threshold merges, and generates new figure layer group, comprising:
The figure layer to be arranged then is greater than or is waited with the multiple by multiple similarities more than or equal to second threshold if it exists
The corresponding figure layer of maximum similarity merges in the similarity of second threshold, generates new figure layer group.
8. a kind of figure layer collating unit characterized by comprising
Receiving unit, figure layer collating order for receiving input;It wherein, include figure layer to be arranged in the figure layer collating order
Mark;
Processing unit, for according to the figure layer collating order, it is determined whether there are M figure layer groups;Wherein, M is more than or equal to 1
Integer;
The processing unit is also used to the M figure layer group if it exists, then according to the corresponding color of the figure layer to be arranged and institute
State the position that the corresponding color of M figure layer group adjusts the figure layer to be arranged.
9. device according to claim 8, which is characterized in that
The processing unit, specifically for obtaining the corresponding color of the figure layer to be arranged respectively with the M figure layer group respectively
Similarity between corresponding color obtains M similarity;And judge whether the M similarity is greater than or equal to respectively
One threshold value;If there is the similarity more than or equal to the first threshold in the M similarity, it is greater than or equal to by described in
The corresponding figure layer group of the similarity of the first threshold is determined as target figure layer group;And the figure layer to be arranged is adjusted to described
In target figure layer group.
10. device according to claim 9, which is characterized in that
The processing unit then will be described more specifically for multiple similarities more than or equal to the first threshold if it exists
In a similarity more than or equal to the first threshold, the corresponding figure layer group of maximum similarity is determined as the target figure layer
Group.
11. device according to claim 9 or 10, which is characterized in that
The processing unit, specifically for obtaining the corresponding color value of N number of figure layer for including in each figure layer group respectively;Its
In, N is the integer more than or equal to 1;By the average value of N number of corresponding color value of figure layer, it is determined as each figure
Layer organizes corresponding color value;And by the corresponding color value of the figure layer to be arranged and the corresponding color value of each figure layer group into
Row compares, and obtains the similarity between the corresponding color of the figure layer to be arranged and the corresponding color of each figure layer group.
12. device according to claim 9 or 10, which is characterized in that
The processing unit, specifically for obtaining the corresponding color value of N number of figure layer for including in each figure layer group respectively;Its
In, N is the integer more than or equal to 1;And by the corresponding color value of the figure layer to be arranged respectively with N number of each figure layer of figure layer
Corresponding color value is compared, and obtains N number of similarity;And by the average value of N number of similarity, the figure to be arranged is determined
Similarity between the corresponding color of layer color corresponding with figure layer group each in the M figure layer group.
13. device according to claim 9, which is characterized in that
The processing unit is also used to figure layer group if it does not exist, alternatively, if there is no be greater than or equal in the M similarity
The similarity of first threshold then obtains the corresponding color value of P figure layer respectively;Wherein, P is the integer more than or equal to 1;Point
The corresponding color value of the figure layer to be arranged color value corresponding with figure layer each in the P figure layer is not compared, obtains P
A similarity;It is corresponding more than or equal to the similarity of second threshold and by the figure layer to be arranged and the P similarity
Figure layer merges, and generates new figure layer group.
14. device according to claim 13, which is characterized in that
The processing unit, specifically for multiple similarities more than or equal to second threshold if it exists, then by described wait arrange
Figure layer figure layer corresponding with maximum similarity in the multiple similarity more than or equal to second threshold merges, and generates new
Figure layer group.
15. a kind of terminal device, which is characterized in that including processor and memory, wherein
The memory is for storing program instruction;
The processor is used to read the program instruction in the memory, and is executed according to the program instruction in the memory
The described in any item figure layer method for sorting of claim 1~7.
16. a kind of computer readable storage medium, which is characterized in that
It is stored with computer program on computer readable storage medium, when the computer program is executed by processor, executes
The described in any item figure layer method for sorting of claim 1~7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002363.1A CN109741415B (en) | 2019-01-02 | 2019-01-02 | Picture layer arrangement method and device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002363.1A CN109741415B (en) | 2019-01-02 | 2019-01-02 | Picture layer arrangement method and device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109741415A true CN109741415A (en) | 2019-05-10 |
CN109741415B CN109741415B (en) | 2023-08-08 |
Family
ID=66363203
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910002363.1A Active CN109741415B (en) | 2019-01-02 | 2019-01-02 | Picture layer arrangement method and device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109741415B (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102164153A (en) * | 2010-02-22 | 2011-08-24 | 中国联合网络通信集团有限公司 | Method and system for generating electronic map of mobile terminal |
CN102957904A (en) * | 2011-08-24 | 2013-03-06 | 上海山景集成电路技术有限公司 | Method, system and device for compressed encoding of image information |
US20150015491A1 (en) * | 2013-07-12 | 2015-01-15 | Wen-Chieh Geoffrey Lee | High Resolution and High Sensitivity Three-Dimensional (3D) Cursor Maneuvering Reference Plane, and Methods of its Manufacture |
CN104469478A (en) * | 2014-12-31 | 2015-03-25 | 中科创达软件股份有限公司 | Information processing method and device and electronic devices |
TWI522886B (en) * | 2014-09-05 | 2016-02-21 | An image display method and system for mobile device APP | |
US20160094841A1 (en) * | 2014-09-30 | 2016-03-31 | NingBo Sunny Opotech Co.,Ltd. | 3D Test Chart, Adjusting Arrangement, Forming Method and Adjusting Method Thereof |
CN105809617A (en) * | 2014-12-31 | 2016-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Image adjusting method and device |
WO2016177290A1 (en) * | 2015-05-06 | 2016-11-10 | 北京蓝犀时空科技有限公司 | Method and system for generating and using expression for virtual image created through free combination |
US20160377893A1 (en) * | 2015-06-23 | 2016-12-29 | Beijing Lenovo Software Ltd. | Electronic device |
US20170148191A1 (en) * | 2015-11-20 | 2017-05-25 | Le Holdings (Beijing) Co., Ltd. | Display method and display device |
CN107203383A (en) * | 2017-05-25 | 2017-09-26 | 努比亚技术有限公司 | A kind of user interface method of adjustment and mobile terminal |
CN108010097A (en) * | 2017-11-30 | 2018-05-08 | 广州品唯软件有限公司 | Generation, verification method and the device of identifying code image |
CN108763511A (en) * | 2018-05-30 | 2018-11-06 | 腾讯科技(深圳)有限公司 | Figure layer composition method, device, electronic equipment and storage medium in the page |
CN108846881A (en) * | 2018-05-29 | 2018-11-20 | 珠海格力电器股份有限公司 | Expression image generation method and device |
CN109064390A (en) * | 2018-08-01 | 2018-12-21 | Oppo(重庆)智能科技有限公司 | A kind of image processing method, image processing apparatus and mobile terminal |
-
2019
- 2019-01-02 CN CN201910002363.1A patent/CN109741415B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102164153A (en) * | 2010-02-22 | 2011-08-24 | 中国联合网络通信集团有限公司 | Method and system for generating electronic map of mobile terminal |
CN102957904A (en) * | 2011-08-24 | 2013-03-06 | 上海山景集成电路技术有限公司 | Method, system and device for compressed encoding of image information |
US20150015491A1 (en) * | 2013-07-12 | 2015-01-15 | Wen-Chieh Geoffrey Lee | High Resolution and High Sensitivity Three-Dimensional (3D) Cursor Maneuvering Reference Plane, and Methods of its Manufacture |
TWI522886B (en) * | 2014-09-05 | 2016-02-21 | An image display method and system for mobile device APP | |
US20160094841A1 (en) * | 2014-09-30 | 2016-03-31 | NingBo Sunny Opotech Co.,Ltd. | 3D Test Chart, Adjusting Arrangement, Forming Method and Adjusting Method Thereof |
CN105809617A (en) * | 2014-12-31 | 2016-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Image adjusting method and device |
CN104469478A (en) * | 2014-12-31 | 2015-03-25 | 中科创达软件股份有限公司 | Information processing method and device and electronic devices |
WO2016177290A1 (en) * | 2015-05-06 | 2016-11-10 | 北京蓝犀时空科技有限公司 | Method and system for generating and using expression for virtual image created through free combination |
US20160377893A1 (en) * | 2015-06-23 | 2016-12-29 | Beijing Lenovo Software Ltd. | Electronic device |
US20170148191A1 (en) * | 2015-11-20 | 2017-05-25 | Le Holdings (Beijing) Co., Ltd. | Display method and display device |
CN107203383A (en) * | 2017-05-25 | 2017-09-26 | 努比亚技术有限公司 | A kind of user interface method of adjustment and mobile terminal |
CN108010097A (en) * | 2017-11-30 | 2018-05-08 | 广州品唯软件有限公司 | Generation, verification method and the device of identifying code image |
CN108846881A (en) * | 2018-05-29 | 2018-11-20 | 珠海格力电器股份有限公司 | Expression image generation method and device |
CN108763511A (en) * | 2018-05-30 | 2018-11-06 | 腾讯科技(深圳)有限公司 | Figure layer composition method, device, electronic equipment and storage medium in the page |
CN109064390A (en) * | 2018-08-01 | 2018-12-21 | Oppo(重庆)智能科技有限公司 | A kind of image processing method, image processing apparatus and mobile terminal |
Non-Patent Citations (2)
Title |
---|
HUANJING YUE: "Contrast Enhancement Based on Intrinsic Image Decomposition" * |
唐振: "图像与视频特效编辑关键技术研究" * |
Also Published As
Publication number | Publication date |
---|---|
CN109741415B (en) | 2023-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107578453B (en) | Compressed image processing method, apparatus, electronic equipment and computer-readable medium | |
CN110956202B (en) | Image training method, system, medium and intelligent device based on distributed learning | |
WO2020109891A1 (en) | Decentralized distributed deep learning | |
CN111598796B (en) | Image processing method and device, electronic equipment and storage medium | |
CN111931097A (en) | Information display method and device, electronic equipment and storage medium | |
CN111967964A (en) | Intelligent recommendation method and device for bank client website | |
CN109286758A (en) | A kind of generation method of high dynamic range images, mobile terminal and storage medium | |
CN112002021B (en) | Aggregation dotting visualization method and device based on unity3d | |
CN110503656A (en) | A kind of superpixel segmentation method and relevant device | |
JP2001298453A (en) | Network display device | |
CN107391540A (en) | A kind of small routine methods of exhibiting, device and grader | |
CN109741415A (en) | Figure layer method for sorting, device and terminal device | |
CN110489614A (en) | A kind of APP recommended method, device and equipment | |
CN106201551A (en) | A kind of application program exits method and device | |
CN109286558A (en) | Message distributing method, device, electronic equipment and storage medium | |
CN109961405B (en) | Image filtering method and device | |
CN106293649A (en) | Render the method and device of chart | |
CN106558023B (en) | Medical image adjusting method and device | |
CN109271706A (en) | Hair style generation method and device | |
CN104503672A (en) | Method for setting fuzzy wallpaper and mobileequipment | |
CN106155924B (en) | Picture merging method, device and smart machine | |
CN102694962A (en) | Noise reduction method and apparatus | |
CN118230136B (en) | Personalized federal learning training method and system supporting image dynamic tasks | |
Mohammed et al. | Analysis of parameterization value reduction of soft sets and its algorithm | |
CN110516795A (en) | A kind of method, apparatus and electronic equipment for model variable allocation processing 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |